Difference between revisions of "Template:Expand"

From Nottinghack Wiki
Jump to navigation Jump to search
(→‎Parameters: dden by default)
(:Default show mode is to hide whatever is past to hidden, to show expanded use 'expanded=yes'.)
 
Line 24: Line 24:
 
:Part of page not hidden (unhidden part appears before the hidden; good for titles).
 
:Part of page not hidden (unhidden part appears before the hidden; good for titles).
 
;expanded
 
;expanded
:Defaults to hidden, to default to expanded use 'expanded=yes'
+
:Default show mode is to hide whatever is past to hidden, to show expanded use 'expanded=yes'.
  
 
[[Category:Utility Templates]]
 
[[Category:Utility Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 12:43, 27 February 2019

{{{hide}}}

Documentation

Makes part of page hidden and expandable.

Examples

Simple.

{{expand|This is hidden by default.}}

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 (unhidden part appears before the hidden; good for titles).
expanded
Default show mode is to hide whatever is past to hidden, to show expanded use 'expanded=yes'.