Template:Switch

From Uncyclopedia, the content-free encyclopedia

Revision as of 03:31, April 11, 2006 by Algorithm (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Usage

{{switch
 |VALUE-TO-BE-TESTED
 |case foo=hello
 |case bar=world
 |default=Neither ''foo'' nor ''bar''
}}

where VALUE-TO-BE-TESTED is a parameter or a variable.

Caution: The tested value must not contain "|" or "=".

Personal tools
projects