Difference between revisions of "Template:If-Then-Else"

From GuildWiki
Jump to: navigation, search
m
Line 1: Line 1:
{{{else{{{if|}}}|{{{if{{{if|}}}|{{{then|}}}}}}}}}<includeonly>[[Category:Uses deprecated templates]]</includeonly><noinclude>
+
{{#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}}.