Difference between revisions of "Template:If-Then-Else"
m |
|||
Line 1: | Line 1: | ||
− | {{ |
+ | {{#if:{{{if}}}|{{{then}}}|{{{else}}}}}<includeonly>[[Category:Uses deprecated templates]]</includeonly><noinclude> |
<span style="color:red">This template is deprecated. For logic-related functions, please use [[metawm:ParserFunctions|ParserFunctions]].</span> |
<span style="color:red">This template is deprecated. For logic-related functions, please use [[metawm:ParserFunctions|ParserFunctions]].</span> |
||
Revision as of 12:21, 3 May 2008
{{{then}}} This template is deprecated. For logic-related functions, please use ParserFunctions.
Usage
{{If-Then-Else|if=if condition|then=Then text|else=else text}}
Notes
- to check if a parameter exists, use a null replacement syntax. for instance, to see if parameter 1 was passed from the calling page, set "{{{1|}}}" as the if condition.
- for evaluations, use {{equals}}.