Templet:Hidden
Appearance
{{{1}}}
Usage
[edit source]This template displays the first parameter (the header) with a ▼ (show) link on the right. If ▼ is clicked by the user, the second parameter (the content) is also displayed.
Optional parameters
[edit source]style- add CSS to the main divheaderstyle- add CSS to the headercontentstyle- add CSS to the contenttoggle- set to 'left' to move [show/hide] button and the title to the lefthand side
Restrictions
[edit source]Do not prefix the template with colon ":", otherwise the second parameter will not be hidden.
Examples
[edit source]{{Hidden|1=parameter one|2=parameter two}}
produces
parameter one
{{Hidden|toggle=left|1=toggle=left, parameter one|2=parameter two}}
produces
toggle=left, parameter one
:{{Hidden|1=prefixed with colon parameter one|2=prefixed with colon parameter two}}
produces
- prefixed with colon parameter one
prefixed with colon parameter two
{{Hidden|style=background:yellow|1=parameter one|2=parameter two}}
produces
parameter one
{{Hidden|style=width: 50%;|headerstyle=background:#d0ffd0;|contentstyle=background:#ffe0e0;color:blue;|1=parameter one|2=parameter two}}
produces
parameter one