Template:If

From QBWiki
Revision as of 12:35, 27 January 2014 by Zachary Yan (talk | contribs) (Created page with "{{{else{{{test|}}}|{{{test{{{test|}}}|{{{then|}}}}}}}}}<noinclude>#if replacement. Usage:<pre>{{if |test=VARIABLE_OR_PARAMETER_TO_TEST |then=code if 'test' is not empty ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
  1. if replacement.

Usage:

{{if
  |test=VARIABLE_OR_PARAMETER_TO_TEST
  |then=code if 'test' is not empty
  |else=code if 'test' is empty
}}

Parameter else is optional.