Template:If

From Red Faction Wiki
Revision as of 20:47, 19 August 2009 by DavidJCobb (talk | contribs) (Created.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Allows for if-defined statements in templates -- that is, you can test if a particular variable is empty or not. It is the functional equivalent of the ParserFunction #if.

Usage

{{if|CONDITION|NOT EMPTY|EMPTY}} outputs NOT EMPTY

{{if||NOT EMPTY|EMPTY}} outputs EMPTY