<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AIfnoteq_then_show%2Fdoc</id>
	<title>Template:Ifnoteq then show/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AIfnoteq_then_show%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Ifnoteq_then_show/doc&amp;action=history"/>
	<updated>2026-04-14T08:56:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Template:Ifnoteq_then_show/doc&amp;diff=19187&amp;oldid=prev</id>
		<title>Wikipedia&gt;Dinoguy1000: missed one</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Template:Ifnoteq_then_show/doc&amp;diff=19187&amp;oldid=prev"/>
		<updated>2021-11-25T16:41:54Z</updated>

		<summary type="html">&lt;p&gt;missed one&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 place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
This template tests whether the first unnamed parameter is equal to the second unnamed parameter and returns the third unnamed parameter if it does. Otherwise it returns the first unnamed parameter.&lt;br /&gt;
&lt;br /&gt;
This is useful when the first parameter is a &amp;lt;nowiki&amp;gt;{{#invoke: }}&amp;lt;/nowiki&amp;gt; of a Lua module that returns a value for which a specific exception is required. Because it uses the &amp;lt;nowiki&amp;gt;{{#invoke: }}&amp;lt;/nowiki&amp;gt; just once, it simplifies the coding of infoboxes, for example.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
An infobox field may return the {{q|P17}} for an article about a city. We may wish to use the abbreviation &amp;quot;USA&amp;quot; in place of &amp;quot;[[United States]]&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
; {{q|P17}} for {{q|Q42462}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:WikidataIB |getValue |P17 |qid=Q42462 |fwd=ALL |osd=no |rank=best |noicon=true}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#invoke:WikidataIB |getValue |P17 |qid=Q42462 |fwd=ALL |osd=no |rank=best |noicon=true}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Ifnoteq then show|{{#invoke:WikidataIB |getValue |P17 |qid=Q42462 |fwd=ALL |osd=no |rank=best |noicon=true}}|United Kingdom|UK}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Ifnoteq then show|{{#invoke:WikidataIB |getValue |P17 |qid=Q42462 |fwd=ALL |osd=no |rank=best |noicon=true}}|United Kingdom|UK}}&lt;br /&gt;
&lt;br /&gt;
; {{q|P17}} for {{q|Q60}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:WikidataIB |getValue |P17 |qid=Q60 |fwd=ALL |osd=no |rank=best |noicon=true}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#invoke:WikidataIB |getValue |P17 |qid=Q60 |fwd=ALL |osd=no |rank=best |noicon=true}}&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{Ifnoteq then show|{{#invoke:WikidataIB |getValue |P17 |qid=Q60 |fwd=ALL |osd=no |rank=best |noicon=true}}|United States|USA}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{Ifnoteq then show|{{#invoke:WikidataIB |getValue |P17 |qid=Q60 |fwd=ALL |osd=no |rank=best |noicon=true}}|United States|USA}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:If-then-else templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Dinoguy1000</name></author>
	</entry>
</feed>