Template talk:Iftrue

From Wikipedia, the free encyclopedia

You can use this template to implement boolean parameters in other templates. For example, suppose that in Template:Foo, parameter "bar" can be either "true" or "false", and you want to generate different content depending on that value. You use {{iftrue|{{{bar}}}|content if true|content if false}}.

Testing: this should be an 'a': a. And this should be a 'b': b. dbenbenn | talk 05:54, 1 October 2005 (UTC)

Input for test 'b': {{iftrue|false|a|b}}

Nowiki of test 'b': {{#ifeq:{{{1|}}}|true|{{{2|}}}|{{{3|}}}}}<noinclude> {{tdeprecated|Iftrue|new={{[[m:ParserFunctions|#ifeq:]]}}}} [[Category:Templates using ParserFunctions|{{PAGENAME}}]] </noinclude>

Template:Iftrue (edit talk links history)