Template:Ifeq: Difference between revisions

From Alpine Linux
(Create template)
 
(Use empty tag instead of {{{1}}})
Line 5: Line 5:
<nowiki>{{</nowiki>ifeq|<var>value</var>|<var>test</var>|<var>then</var>|<var>else</var>}} yields <var>then</var> if <var>value</var> equals <var>test</var>; otherwise it yields <var>else</var>.
<nowiki>{{</nowiki>ifeq|<var>value</var>|<var>test</var>|<var>then</var>|<var>else</var>}} yields <var>then</var> if <var>value</var> equals <var>test</var>; otherwise it yields <var>else</var>.


</noinclude><includeonly>{{Deref|{{{2}}}|{{{2}}}={{{4|}}}|{{{1}}}={{{3|}}}}}</includeonly>
</noinclude><includeonly>{{Deref|={{{2}}}|{{{2}}}={{{4|}}}|{{{1}}}={{{3|}}}}}</includeonly>

Revision as of 04:35, 24 March 2012

Template Documentation for Ifeq

This page is a template and should only be used as part of other articles. For more information, read Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to voice your opinion regarding this template.

Template branching without Extension:ParserFunctions

Template Documentation

{{ifeq|value|test|then|else}} yields then if value equals test; otherwise it yields else.