Difference between revisions of "Template:If"
Jump to navigation
Jump to search
m |
m (Template:Wikipedia Templates + Usage) |
||
Line 1: | Line 1: | ||
− | {{{else{{{test|}}}|{{{test{{{test|}}}|{{{then|}}}}}}}}}<noinclude> | + | {{{else{{{test|}}}|{{{test{{{test|}}}|{{{then|}}}}}}}}}<noinclude>#if replacement. |
+ | |||
+ | Usage:<pre>{{qif | ||
+ | |test=VARIABLE_OR_PARAMETER_TO_TEST | ||
+ | |then=code if 'test' is not empty | ||
+ | |else=code if 'test' is empty | ||
+ | }}</pre> | ||
+ | |||
+ | Parameter else is optional. | ||
+ | |||
+ | [[Template:Wikipedia Templates]]</noinclude> |
Revision as of 14:20, 20 September 2008
- if replacement.
Usage:
{{qif |test=VARIABLE_OR_PARAMETER_TO_TEST |then=code if 'test' is not empty |else=code if 'test' is empty }}
Parameter else is optional.