Template:If

From BoyWiki
Revision as of 05:19, 7 December 2021 by Etenne (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)
  1. if replacement.

Usage:

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