Template:Hide

From Zelda Dungeon Wiki
Revision as of 08:48, January 16, 2012 by Emma (talk | contribs)
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.

{{{1}}}

Purpose

This template handles switching between two displayed items.

Usage

To use this template, use either the standard format     {{Hide| content }} or the named parameter format:

{{Switch
|show=
|hide=
|content=
}}
  • show — This specifies the text of the link that shows the content that is initially hidden. (Optional - [show])
  • hide — This specifies the text of the link that switches the content back to what was initially displayed. (Optional - [hide])
  • content — This specifies the content you want to be able to switch (Optional )

Example

To use this to set up a traditional show-type template that has nothing initially displayed, use something like the following:

{{switch|content=This is hidden text.}}

This results in:

This is hidden text.

Alternatively:

{{switch|This is hidden text.}}

This results in:

This is hidden text.

To make the opposite effect, use the following:

{{switch|id=exampleB|show=[hide]|hide=[show]|content=This text can be hidden.}}

This results in:

This text can be hidden.