Difference between revisions of "Template:Switch"
Jump to navigation
Jump to search
m (Template:QueryArgument moved to Template:Switch: Shorter and more concise name) |
(Document the usage) |
||
Line 1: | Line 1: | ||
{{{ {{{ | <includeonly>{{{ {{{switch}}} }}}</includeonly><noinclude> | ||
=Usage= | |||
Use the "switch" argument to select which argument to show: | |||
*<nowiki>{{{Switch|yes=yay|no=nay|switch=yes}}}</nowiki> will show "yay" | |||
*<nowiki>{{{Switch|yes=yay|no=nay|switch=no}}}</nowiki> will show "nay" | |||
</noinclude> |
Revision as of 15:16, 5 March 2009
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"