Template:Expand: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
No edit summary
Line 11: Line 11:


===Examples===
===Examples===
Simple no parameters.
Simple.
 
:<code><nowiki>{{expand|This can be hidden.}}</nowiki></code>
:<code><nowiki>{{expand|This can be hidden.}}</nowiki></code>


Line 18: Line 17:


:<code><nowiki>{{expand|This can be hidden.|nohide=This is not hidden.|expanded=yes}}</nowiki></code>
:<code><nowiki>{{expand|This can be hidden.|nohide=This is not hidden.|expanded=yes}}</nowiki></code>


===Parameters===
===Parameters===

Revision as of 12:20, 27 February 2019

{{{hide}}}

Documentation

Makes part of page hidden and expandable.

Examples

Simple.

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