Template Documentation (sometimes hidden or invisible)
Template tools: purge • what links here • what transclude this • subpages |
- 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 {{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:
{{Hide|1=Text with the equal sign "="}}
results in:
{{hide|mode=start}} {| class=wikitable | tata || titi |} {{hide|mode=end}}
results in
tata | titi |
{{Hide|showbutton=+|hidebutton=-|Text to be hidden}}
results in:
- Models
- http://openwetware.org/wiki/Template:Hide openwetware.org
Visit Template:Hide/doc to edit this text! (How does this work?) (Refresh this text - why?)