FANDOM


{{{1}}}
Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.
Description

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

Dependencies

This template uses the following JavaScript codes: MediaWiki:Common.js/elementClass.js and MediaWiki:Common.js/togglers.js. The codes must be placed or imported in MediaWiki:Common.js.

Syntax

Type {{T|Hide|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:

{{hide|mode=start}}
…some complex text, e.g. a table…
{{hide|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

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

Text to be hidden

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

Text with the equal sign "="
{{hide|mode=start}}
{| class=wikitable
| tata || titi
|}
{{hide|mode=end}}

results in

tata titi

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