Template:If both/doc

From blackwiki
< Template:If both
Revision as of 21:17, 31 July 2010 by imported>Droll (update)
Jump to navigation Jump to search


This helper template is designed to be used in other templates. It can help editors create templates that or self documenting templates.

Usage

If a and b then x.

If a nor b then y.

If a or b then y.

It can be used to replace the construct: {{#if: a | {{#if: b | x | y }}

Examples

{{if both | a | b | x }} → x

{{if both | a | | x | y }} → y

{{if both | | b | x | y }} → y

See also=