Difference between revisions of "Template:Collapsible"
From HeRO Wiki
(added functionality to have a non-collapsed state and also improved documentation) |
m |
||
Line 28: | Line 28: | ||
| {{{collapsed}}} | | {{{collapsed}}} | ||
| Any data input here will cause it to not default to collapsed. | | Any data input here will cause it to not default to collapsed. | ||
− | '''Example''': <nowiki>{{collapsible|collapsed=}}</nowiki> | + | '''Example''': <nowiki>{{collapsible|collapsed=a}}</nowiki> |
− | {{collapsible|collapsed=}} | + | {{collapsible|collapsed=a}} |
|} | |} | ||
[[Category:Template]] | [[Category:Template]] | ||
</noinclude> | </noinclude> |
Latest revision as of 08:19, 20 October 2019
Usage
This template is preferably used for long content that stretches the page. This template is collapsed by default.
Parameter | Usage |
---|---|
{{{text}}} | Any data input here is always shown regardless of whether it is collapsed or not. Defaults to show "text" when there is no input.
Example: {{collapsible|text=Hello}} Hello
content
|
{{{content}}} | Any data input here can be hidden when collapsed. Defaults to show "content" when there is no input.
Example: {{collapsible|content=Hello}} text
Hello
|
{{{collapsed}}} | Any data input here will cause it to not default to collapsed.
Example: {{collapsible|collapsed=a}} text
content
|