Open main menu

Template:Switch

Revision as of 15:27, 5 March 2009 by Jvprat (talk | contribs) (Add default functionality)

Usage

Use the "switch" argument to select which argument to show:

  • {{{Switch|yes=yay|no=nay|switch=yes}}} will show "yay"
  • {{{Switch|yes=yay|no=nay|switch=no}}} will show "nay"

The "default" argument will be used when the "switch" value doesn't match any of the options or that's empty:

  • {{{Switch|yes=yay|no=nay|default=maybe|switch=err}}} will show "maybe"