Template:Expand: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
|#default=<div class="mw-collapsible mw-collapsed"> | |#default=<div class="mw-collapsible mw-collapsed"> | ||
}} | }} | ||
{{#if: {{{nohide|}}}|{{{nohide}}} }} | {{#if: {{{nohide|}}}|{{{nohide}}} }} | ||
<div class="mw-collapsible-content">{{{1|{{{hide}}} }}}</div> | <div class="mw-collapsible-content">{{{1|{{{hide}}} }}}</div> |
Revision as of 12:18, 27 February 2019
{{{hide}}}
Documentation
Makes part of page hidden and expandable.
Examples
Simple no parameters.
{{expand|This can be hidden.}}
Expanded with parameters.
{{expand|This can be hidden.|nohide=This is not hidden.|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'