Difference between revisions of "User:Jon/Expandbox"

From Nottinghack Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
{{{nohide}}}
 
{{{nohide}}}
 
<div class="mw-collapsible-content">{{{1|{{{hide}}} }}}</div>
 
<div class="mw-collapsible-content">{{{1|{{{hide}}} }}}</div>
</div>
+
</div><noinclude>
 +
 
 +
==Documentation==
 +
Makes part of page hidden and expandable.
 +
 
 +
===Examples===
 +
Simple no parameters.
 +
 
 +
:<code><nowiki>{{expand|This is hidden.}}</nowiki></code>
 +
 
 +
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>

Revision as of 11:49, 27 February 2019

{{{nohide}}}

{{{hide}}}

Documentation

Makes part of page hidden and expandable.

Examples

Simple no parameters.

{{expand|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'