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