Difference between revisions of "Template:Expand"

From Nottinghack Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<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><noinclude>
 
{{clear}}
 
 
<div class="mw-collapsible mw-collapsed">
 
<div class="mw-collapsible mw-collapsed">
 
r{{#if: {{{nohide|}}}|{{{nohide}}} }}  
 
r{{#if: {{{nohide|}}}|{{{nohide}}} }}  

Revision as of 12:11, 27 February 2019

r

This is hidden.

Documentation

Makes part of page hidden and expandable.

Examples

Simple no parameters.

{{expand|This is hidden.}}

r

This is hidden.

Documentation

Makes part of page hidden and expandable.

Examples

Simple no parameters.

{{expand|This is hidden.}}
Template loop detected: Template:Expand

Expanded with parameters.

{{expand|This is hidden.|nohide=This can be.|expanded=yes}}
Template loop detected: Template:Expand

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'

</noinclude>

Expanded with parameters.

{{expand|This is hidden.|nohide=This can be.|expanded=yes}}

rThis can be.

This is hidden.

Documentation

Makes part of page hidden and expandable.

Examples

Simple no parameters.

{{expand|This is hidden.}}
Template loop detected: Template:Expand

Expanded with parameters.

{{expand|This is hidden.|nohide=This can be.|expanded=yes}}
Template loop detected: Template:Expand

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'

</noinclude>

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'