Template:Hide: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
No edit summary
(No difference)

Revision as of 09:00, January 16, 2012

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