Template:Qif: Difference between revisions
From The Urban Dead Wiki
Jump to navigationJump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{{else{{{test|}}}|{{{test{{{test|}}}|{{{then|}}}}}}}}}<noinclude>This template enables display of content based on the outcome of a conditional test. It is used as follows, with both the ''then'' and the ''else'' parameters being optional although one must be used: | {{{else{{{test|}}}|{{{test{{{test|}}}|{{{then|}}}}}}}}}<noinclude>This template enables display of content based on the outcome of a conditional test. It is used as follows, with both the ''then'' and the ''else'' parameters being optional although one must be used: | ||
<pre>{{qif | <pre>{{qif |
Latest revision as of 22:19, 12 December 2009
This template enables display of content based on the outcome of a conditional test. It is used as follows, with both the then and the else parameters being optional although one must be used:
{{qif |test={{{parameter_to_test|}}} |then=What to display if test is not empty |else=What to display if test is empty }}