Switch

出自伪基文库
跳至導覽 跳至搜尋


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 "=".