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