FANDOM


Description

This template hide a text or an element, like another template.

Syntax

Type {{T|spoiler2|text}} where you want to show/hide the text. If the text to be hidden is a table, it is advisable to use the two-part version of the template:

{{spoiler2|mode=start}}
…some complex text, e.g. a table…
{{spoiler2|mode=end}}
Parameters
  • text: the text to be hidden - free.
  • 1= text to be hidden, if contains the equal sign "=" - free.
  • mode= can be equal to start or end.
  • showbutton= the text on which one must click to show. Defaults to [show].
  • hidebutton= the text on which one must click to hide. Defaults to [hide]
Samples

{{Spoiler2|Text to be hidden}} results in:

Spoiler Alert! [show]
Text to be hidden

{{Spoiler2|1=Text with the equal sign "="}} results in:

Spoiler Alert! [show]
Text with the equal sign "="
{{spoiler2|mode=start}}
{| class=wikitable
| tata || titi
|}
{{spoiler2|mode=end}}
results in
Spoiler Alert! [show]
{{{1}}}
tata titi
Spoiler Alert! [show]
{{{1}}}

{{Hide|showbutton=+|hidebutton=-|Text to be hidden}} results in:

[+]
Text to be hidden
Models

- http://openwetware.org/wiki/Template:Hide openwetware.org


Community content is available under CC-BY-SA unless otherwise noted.