Template:Toggler

From Zelda Dungeon Wiki
Jump to: navigation, search

[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)