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 edit summary
Line 20: Line 20:
==Example==
==Example==
To hide some text, use the following:
To hide some text, use the following:
<pre>
{{Hide|This is hidden text.}}
</pre>
This results in:
{{Hide|This is hidden text.}}
Alternatively:
<pre>
<pre>
{{Hide|content=This is hidden text.}}
{{Hide|content=This is hidden text.}}
Line 26: Line 33:
{{Hide|content=This is hidden text.}}
{{Hide|content=This is hidden text.}}


Alternatively:
To change what the buttons say:
<pre>
<pre>
{{Hide|This is hidden text.}}
{{Hide|show=[Unearth hidden secrets]|hide=[I'm done looking]|content=This is hidden text.}}
</pre>
</pre>
This results in:
This results in:
{{Hide|This is hidden text.}}
{{Hide|show=[Unearth hidden secrets]|hide=[I'm done looking]|content=This is hidden text.}}


{{Cat|Formatting Templates}}</noinclude>
{{Cat|Formatting Templates}}</noinclude>

Revision as of 09:04, January 16, 2012

{{{1}}}

Purpose

This template allows easy hiding of text and other content.

Usage

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

{{Hide
|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 being hidden. (Optional - [hide])
  • content — This specifies the content you want to be able to hide (Optional )

Example

To hide some text, use the following:

{{Hide|This is hidden text.}}

This results in:

This is hidden text.

Alternatively:

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

This results in:

This is hidden text.

To change what the buttons say:

{{Hide|show=[Unearth hidden secrets]|hide=[I'm done looking]|content=This is hidden text.}}

This results in:

This is hidden text.