Template:Toggler

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

[show]

Purpose

This template creates a button used to toggle elements which may be hidden with {{Toggle}}.

Usage

Depending on the requirements, it may be easier to use {{Hide}}, or it may be necessary to manually define classes (view this page's source). As for this template:

{{Toggler| show text | hide text | class | default=hide }}

  • show text — Text to display on the 'show' button (Optional. Default: [show])
  • hide text — Text to display on the 'hide' button (Optional. Default: [hide])
  • class — If specified, the button will toggle elements with this class. Otherwise it toggles elements with the "_toggle" class within its toggle group. (Optional.)
  • default — Change which button to use by default. Alternatively, one can simply switch the first two parameters. (Optional. Default: hide)