<?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%3AIfeqall%2Fdoc</id>
	<title>Template:Ifeqall/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%3AIfeqall%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Ifeqall/doc&amp;action=history"/>
	<updated>2026-04-10T12:21:46Z</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:Ifeqall/doc&amp;diff=14192&amp;oldid=prev</id>
		<title>Caleb Cooper: Created page with &quot;{{Documentation subpage}} &lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&gt;  The &#039;&#039;&#039;{{tf|ifeqall}}&#039;&#039;&#039; template extends the mw:Help:Extension:ParserFun...&quot;</title>
		<link rel="alternate" type="text/html" href="https://pool.calebcooper.ie/index.php?title=Template:Ifeqall/doc&amp;diff=14192&amp;oldid=prev"/>
		<updated>2020-10-26T16:05:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} &amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;  The &amp;#039;&amp;#039;&amp;#039;{{tf|ifeqall}}&amp;#039;&amp;#039;&amp;#039; template extends the mw:Help:Extension:ParserFun...&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;
&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|ifeqall}}&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 a single &amp;#039;&amp;#039;comparison string&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
This meta-template compares if the &amp;#039;&amp;#039;comparison string&amp;#039;&amp;#039; (parameter &amp;#039;&amp;#039;compare&amp;#039;&amp;#039;) equals &amp;#039;&amp;#039;case string 1&amp;#039;&amp;#039; and &amp;#039;&amp;#039;case string 2&amp;#039;&amp;#039; and &amp;#039;&amp;#039;case string 3&amp;#039;&amp;#039; (up to 10 unnamed [[mw:Help:Template#Example: numeric parameter substitution|numeric parameters]]) then returns a single &amp;#039;&amp;#039;result string&amp;#039;&amp;#039; (parameter &amp;#039;&amp;#039;output&amp;#039;&amp;#039;) if equal or returns a single optional &amp;#039;&amp;#039;default result string&amp;#039;&amp;#039; (parameter &amp;#039;&amp;#039;default&amp;#039;&amp;#039;) if not equal.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
;compare:&amp;#039;&amp;#039;Required parameter.&amp;#039;&amp;#039; The &amp;#039;&amp;#039;comparison string&amp;#039;&amp;#039; against which all (up to 10) &amp;#039;&amp;#039;case strings&amp;#039;&amp;#039; will be compared with.&lt;br /&gt;
&lt;br /&gt;
;output:&amp;#039;&amp;#039;Required parameter.&amp;#039;&amp;#039; The &amp;#039;&amp;#039;result string&amp;#039;&amp;#039; which is outputted if the &amp;#039;&amp;#039;comparison string&amp;#039;&amp;#039; equals all of the inputted &amp;#039;&amp;#039;case strings&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
;default:The &amp;#039;&amp;#039;default result string&amp;#039;&amp;#039; which is outputted if the &amp;#039;&amp;#039;comparison string&amp;#039;&amp;#039; does not equal all of the inputted &amp;#039;&amp;#039;case strings&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&lt;br /&gt;
Assume there is a WikiProject banner that should make sure all B-Class criteria on the checklist are checked before assigning the article as B-Class.  By using...&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;overflow:auto;&amp;quot;&amp;gt;&lt;br /&gt;
{{ ifeqall | compare = yes | {{{B-Class-1|}}} | {{{B-Class-2|}}} | {{{B-Class-3|}}} | {{{B-Class-4|}}} | {{{B-Class-5|}}} |&lt;br /&gt;
output = B-Class | default = C-Class }}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
...this template will check the compare value (i.e., yes) against all the case strings (i.e., &amp;lt;nowiki&amp;gt;{{{&amp;lt;/nowiki&amp;gt;B-Class-1&amp;lt;nowiki&amp;gt;|}}}&amp;lt;/nowiki&amp;gt;, &amp;lt;nowiki&amp;gt;{{{&amp;lt;/nowiki&amp;gt;B-Class-2&amp;lt;nowiki&amp;gt;|}}}&amp;lt;/nowiki&amp;gt;, &amp;lt;nowiki&amp;gt;{{{&amp;lt;/nowiki&amp;gt;B-Class-3&amp;lt;nowiki&amp;gt;|}}}&amp;lt;/nowiki&amp;gt;, &amp;lt;nowiki&amp;gt;{{{&amp;lt;/nowiki&amp;gt;B-Class-4&amp;lt;nowiki&amp;gt;|}}}&amp;lt;/nowiki&amp;gt;, &amp;lt;nowiki&amp;gt;{{{&amp;lt;/nowiki&amp;gt;B-Class-5&amp;lt;nowiki&amp;gt;|}}}&amp;lt;/nowiki&amp;gt;) and, if they are all equal, will return the output value (i.e., B-Class).  If the compare value is not the same as all of the case strings, then it will return the default value (i.e., C-Class).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Please note:&amp;#039;&amp;#039;&amp;#039; The &amp;#039;&amp;#039;comparison string&amp;#039;&amp;#039; and &amp;#039;&amp;#039;case strings&amp;#039;&amp;#039; are not case-sensitive, meaning it treats uppercase and lowercase letters as the same.  The &amp;#039;&amp;#039;result string&amp;#039;&amp;#039; and &amp;#039;&amp;#039;default result string&amp;#039;&amp;#039; are case-sensitive and will be returned exactly as inputted.&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;
{{ifeqall&lt;br /&gt;
| compare = &lt;br /&gt;
| output  = &lt;br /&gt;
| default = &lt;br /&gt;
&amp;lt;!-- place up to 10 case strings beneath this line with a pipeline (|) before each --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&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|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;
;{{tl|ifor}}:Compares up to 30 &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; 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;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- CATEGORIES AND INTERWIKIS BELOW THIS LINE PLEASE --&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>