Template:Ifeq: Difference between revisions

From Alpine Linux
(Create template)
 
m (Protected "Template:Ifeq": Template ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(One intermediate revision by the same user not shown)
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>

Latest revision as of 08:22, 30 May 2017

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.