<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AIf_then_show%2Fdoc</id>
	<title>Template:If then show/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://battleint.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AIf_then_show%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:If_then_show/doc&amp;action=history"/>
	<updated>2026-04-26T03:25:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://battleint.net/index.php?title=Template:If_then_show/doc&amp;diff=168712&amp;oldid=prev</id>
		<title>imported&gt;Deadfire: creation</title>
		<link rel="alternate" type="text/html" href="https://battleint.net/index.php?title=Template:If_then_show/doc&amp;diff=168712&amp;oldid=prev"/>
		<updated>2024-11-10T00:56:54Z</updated>

		<summary type="html">&lt;p&gt;creation&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 not an empty string and returns it if it is not empty. Otherwise it returns the second 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 may return a value or nothing. 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;
The optional third and fourth unnamed parameters provide a prefix and a suffix for the first parameter when returned. This enables the designer to construct more complex templates that still only use one invoke of a Lua module.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* {{mfl|params|value_of}}&lt;br /&gt;
; [[Template:Ifnoteq then show]] : 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. This is useful when the first parameter is a &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; of a Lua module that returns a value for which a specific exception is required.&lt;br /&gt;
; [[Template:If then wikilink]] : tests whether the first unnamed parameter is not an empty string and if it isn&amp;#039;t, it returns the parameter formatted as piped wiki-link using an optional namespace prefix.&lt;br /&gt;
; [[Template:Formatter link]] : takes an external identifier code as {{para|code}} and uses a formatter url as {{para|url}} to construct a link to the external resource, which uses the code as display.&lt;br /&gt;
; [[Template:Emptyor]] : tests a piece of text to ascertain whether it&amp;#039;s effectively empty or contains some text. If the unnamed parameter consists only of html tags, punctuation (e.g. Wiki-markup) and whitespace, then Emptyor returns nothing; otherwise it returns the parameter unchanged. Wrapper for p.emptyor function.&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>imported&gt;Deadfire</name></author>
	</entry>
</feed>