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

From GuildWiki
Jump to: navigation, search
 
Line 4: Line 4:
 
==Usage==
 
==Usage==
 
<nowiki>{{If-Then-Else|if=if condition|then=Then text|else=else text}}</nowiki>
 
<nowiki>{{If-Then-Else|if=if condition|then=Then text|else=else text}}</nowiki>
  +
==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 <nowiki>"{{{1|}}}"</nowiki> as the if condition.
 
*for evaluations, use [[template:equals|<nowiki>{{equals}}</nowiki>]].
 
 
[[Category:Templates/Deprecated]]</noinclude>
 
[[Category:Templates/Deprecated]]</noinclude>

Latest revision as of 12:50, 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}}