|
|
(6 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <div {{#switch: lc:{{{expanded}}}|yes=class="mw-collapsible"|#default=class="mw-collapsible mw-collapsed"> }}
| |
| {{{nohide}}}
| |
| <div class="mw-collapsible-content">{{{1|{{{hide}}} }}}</div>
| |
| </div><noinclude>
| |
|
| |
|
| ==Documentation==
| |
| Makes part of page hidden and expandable.
| |
|
| |
|
| ===Examples===
| | {{expand|This is hidden sometimes.}} |
| Simple no parameters.
| | <br /> |
| | | {{expand|hide=This is hidden sometimes.|nohide='''Bold'''|expanded=Yes}} |
| :<code><nowiki>{{expand|This is hidden.}}</nowiki></code>
| |
| | |
| :{{expand|This is hidden.}}
| |
| | |
| Expanded with parameters.
| |
| | |
| :<code><nowiki>{{expand|This is hidden.|nohide=This can be.|expanded=yes}}</nowiki></code>
| |
| | |
| :{{expand|This is hidden.|nohide=This can be.|expanded=yes}}
| |
| | |
| ===Parameters===
| |
| ;hide
| |
| :Part of page to hide. Also works as first parameter unnamed.
| |
| ;nohide
| |
| :Part of page not hidden (goes first, good for titles).
| |
| ;expanded
| |
| :Defaults to hidden, to default to expanded use 'expanded=yes'
| |
| | |
| [[Category:Utility Templates]]
| |
| </noinclude>
| |
This is hidden sometimes.
BoldThis is hidden sometimes.