Template:If/Doc

Based on http://meta.wikimedia.org/wiki/Template:If

Usage

 * 4 parameters:
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * 5 parameters:
 * gives ""
 * gives ""

Compare:
 * 3 parameters:
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * gives ""
 * 4 parameters:
 * gives ""

Note that, unlike parser functions, templates require writing equals signs in values of unnamed parameters as

For full substitution, simply use or. If the condition contains a parser function, template, or variable, that should be substituted too. Optionally the "then" or "else" part can also be substituted.

Error messages (examples):


 * gives
 * gives