Usage өңдеу

Syntax өңдеу

{{Hidden
|header=
|content=
|style=
|headerstyle=
|contentstyle=
|fw1=
|fw2=
|bg1=
|bg2=
|ta1=
|ta2=
}}

Parameters өңдеу

Only two parameters are required for this template:

header
text for header (or title); alternative to using unnamed parameter {{{1}}}
content
text for content (or body); alternative to using unnamed parameter {{{2}}}

Optional өңдеу

style
add CSS to the main div.
headerstyle
add CSS to the header.
contentstyle
add CSS to the content box.
expanded
any nonblank value will cause the template to be initially expanded by default.

Note: This template will not respect the user preference "justify paragraphs".

Examples өңдеу

Basic өңдеу

In this example only the two required parameters are specified.

Code
{{hidden|Title text here|Body text line 1<br/>Body text line 2}}
Result

Header background өңдеу

Code
{{hidden
|Title text here
|Body text line 1<br/>Body text line 2
|headerstyle=background:#ccccff
|style=text-align:center;
}}
Result

CSS өңдеу

Code
{{hidden
| style = border:1px dashed red; width: 50%;
| headerstyle = background: #ccccff; font-size: 110%;
| contentstyle = text-align: center; color:green;
| header = Title text here
| content = Body text line 1<br />Body text line 2<br />Body text line 3
}}
Result