Description This template has to be use in parallel with toggling functions. It will only create the element that will be hidden/shown by the function.

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 . Or if given as free parameters: Valore di default. The switch element must have this class (you can use a tag like this): Change.

Parameters 1=/default= default text - optional. 2=/sost= alternative text - optional. 3=/var= element ID - avoid giving the same ID two different not-related switch elements.

Samples Change a text with another through a link: Default and

Change! give: Default Change! If the second parameter is null, then the text will be hidden: and

Hide give: This text will be hidden Hide To change the contents with different links: text 1 (as first parameter is the default text) 

link var1 link var2 text 1

link var1 | link var2

Other The "toggling classes" used by this template are: - "_toggle NAMEVAR": element NAMEVAR, the ID. - "_toggler_hide-NAMEVAR": clicking on this element, NAMEVAR will be hidden. - "_toggler_show-NAMEVAR": clicking on this element, NAMEVAR will be shown. An element can have multiple classes.

See also Source. A | B No picture available

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