<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3AIfor%2Fdoc</id>
	<title>Template:Ifor/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://pool.calebcooper.ie/index.php?action=history&amp;feed=atom&amp;title=Template%3AIfor%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Ifor/doc&amp;action=history"/>
	<updated>2026-04-08T05:48:30Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://pool.calebcooper.ie/index.php?title=Template:Ifor/doc&amp;diff=14210&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;{{Documentation subpage}} {{Commons Import}} &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;  The &#039;&#039;&#039;{{tf|ifor}}&#039;&#039;&#039; template extends the mw:Help:Ext...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Ifor/doc&amp;diff=14210&amp;oldid=prev"/>
		<updated>2020-10-26T16:15:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{Commons Import}} &amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;  The &amp;#039;&amp;#039;&amp;#039;{{tf|ifor}}&amp;#039;&amp;#039;&amp;#039; template extends the mw:Help:Ext...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{Commons Import}}&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;{{tf|ifor}}&amp;#039;&amp;#039;&amp;#039; template extends the [[mw:Help:Extension:ParserFunctions##ifeq|#ifeq:]] [[mw:Help:Extension:ParserFunctions|parser function]], allowing it to pass multiple &amp;#039;&amp;#039;case strings&amp;#039;&amp;#039; against the same number of &amp;#039;&amp;#039;comparison strings&amp;#039;&amp;#039;.  It returns a &amp;#039;&amp;#039;true&amp;#039;&amp;#039; result if any single &amp;#039;&amp;#039;case string&amp;#039;&amp;#039; is equal to any single &amp;#039;&amp;#039;comparison string&amp;#039;&amp;#039;, returning a &amp;#039;&amp;#039;false&amp;#039;&amp;#039; result otherwise.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
This template compares if any &amp;#039;&amp;#039;comparison string&amp;#039;&amp;#039; (up to 30 unnamed [[mw:Help:Template#Example: numeric parameter substitution|numeric parameters]]; &amp;#039;&amp;#039;test1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;test2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;test3&amp;#039;&amp;#039;, etc.) equals its matching &amp;#039;&amp;#039;case string&amp;#039;&amp;#039; (up to 30 unnamed numeric parameters; &amp;#039;&amp;#039;val1&amp;#039;&amp;#039;, &amp;#039;&amp;#039;val2&amp;#039;&amp;#039;, &amp;#039;&amp;#039;val3&amp;#039;&amp;#039;, etc.) then returns a single &amp;#039;&amp;#039;result string&amp;#039;&amp;#039; (parameter &amp;#039;&amp;#039;then&amp;#039;&amp;#039;) if any are equal or returns a single optional &amp;#039;&amp;#039;default result string&amp;#039;&amp;#039; (parameter &amp;#039;&amp;#039;else&amp;#039;&amp;#039;) if none are equal.&lt;br /&gt;
&lt;br /&gt;
The test and val parameters ignore case sensitivity (treat lower- and upper-case as equal inputs) and also ignore pre-integer zeros (e.g., 02 is equal to 2, 002 is equal to 2).&lt;br /&gt;
&lt;br /&gt;
=== Full blank syntax ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{ifor&lt;br /&gt;
| test1 = &lt;br /&gt;
| val1  =&lt;br /&gt;
| test2 =&lt;br /&gt;
| val2  =&lt;br /&gt;
| test3 =&lt;br /&gt;
| val3  =&lt;br /&gt;
&amp;lt;!-- up to 30 test and var parameters can be inputted, using the same method as shown above --&amp;gt;&lt;br /&gt;
| then  = &lt;br /&gt;
| else  = &lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
&lt;br /&gt;
;{{tl|ifeqall}}:Compares one &amp;#039;&amp;#039;comparison string&amp;#039;&amp;#039; against up to 10 &amp;#039;&amp;#039;case strings&amp;#039;&amp;#039; with optional &amp;#039;&amp;#039;result string&amp;#039;&amp;#039; and &amp;#039;&amp;#039;default result string&amp;#039;&amp;#039; outputs.&lt;br /&gt;
&lt;br /&gt;
;{{tl|ifeqany}}:Compares up to 24 &amp;#039;&amp;#039;case strings&amp;#039;&amp;#039; against each other with &amp;#039;&amp;#039;result string&amp;#039;&amp;#039; and &amp;#039;&amp;#039;default result string&amp;#039;&amp;#039; outputs.&lt;br /&gt;
&lt;br /&gt;
;{{tl|ifequal}}:Compares up to 16 &amp;#039;&amp;#039;comparison strings&amp;#039;&amp;#039; against an equal number of &amp;#039;&amp;#039;case strings&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS HERE, THANKS --&amp;gt;&lt;br /&gt;
[[Category:If-then-else templates|{{PAGENAME}}]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Caleb Cooper</name></author>
	</entry>
</feed>