Template:Hidden begin

From Wikipedia, the free encyclopedia

[edit] Template documentation

[edit] Parameters

Parameter Description
toggle Set to "left" (without speechmarks) to move [show/hide] button to titlebar's lefthand side.
title Text shown in titlebar.
titlestyle CSS styles to apply to title, e.g. "border:1px solid lightgrey;" to produce a border around the titlebar, "background:color;" to change the titlebar's background color from transparent to color, "text-align:[center/right];" to change the titlebar text's alignment from left to center or right, etc.
bodystyle CSS styles to apply to the hidden material, e.g. background and text-align per titlestyle.
Deprecated parameters 
border (per border example in table above), bg1 (titlebar background color), ta1 (titlebar text alignment), extra1 (any other CSS styling for titlebar), bg2 (body background color), ta2 (body text alignment), extra2 (any other CSS styling for body).

[edit] Examples

Code Result
{{hidden begin
|title = abc
|titlestyle = background:pink; text-align:center;
}}
*def
*ghi
{{hidden end}}
{{hidden begin
|toggle = left
|title  = abc
|titlestyle = background:palegreen;
}}
*def
*ghi
{{hidden end}}

[edit] See also