<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.dsp-wiki.com/Template:If_empty/doc/history?feed=atom</id>
	<title>Template:If empty/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev.dsp-wiki.com/Template:If_empty/doc/history?feed=atom"/>
	<link rel="alternate" type="text/html" href="https://dev.dsp-wiki.com/Template:If_empty/doc/history"/>
	<updated>2026-05-05T08:59:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://dev.dsp-wiki.com/index.php?title=Template:If_empty/doc&amp;diff=16794&amp;oldid=prev</id>
		<title>Antt1995: 1 revision imported: New Files</title>
		<link rel="alternate" type="text/html" href="https://dev.dsp-wiki.com/index.php?title=Template:If_empty/doc&amp;diff=16794&amp;oldid=prev"/>
		<updated>2024-03-24T11:54:41Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: New Files&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:54, 24 March 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Antt1995</name></author>
	</entry>
	<entry>
		<id>https://dev.dsp-wiki.com/index.php?title=Template:If_empty/doc&amp;diff=16790&amp;oldid=prev</id>
		<title>Antt1995: Created page with &quot;{{Documentation}} {{Wikipedia template}}  This template is used inside other templates. It takes any number of parameters and returns the first found to be defined and non-empty. If none is found, nothing is returned. By writing &lt;code&gt;&lt;nowiki&gt;{{if empty|a|b|c}}&lt;/nowiki&gt;&lt;/code&gt; instead of &lt;code&gt;&lt;nowiki&gt;{{#if:a|a|{{#if:b|b|c}}}}&lt;/nowiki&gt;&lt;/code&gt;, expression a and b do not have to be repeated and evaluated twice. The template provides a fallback order, similar to a try catch...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dev.dsp-wiki.com/index.php?title=Template:If_empty/doc&amp;diff=16790&amp;oldid=prev"/>
		<updated>2023-05-24T05:39:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation}} {{Wikipedia template}}  This template is used inside other templates. It takes any number of parameters and returns the first found to be defined and non-empty. If none is found, nothing is returned. By writing &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{if empty|a|b|c}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#if:a|a|{{#if:b|b|c}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, expression a and b do not have to be repeated and evaluated twice. The template provides a fallback order, similar to a try catch...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation}}&lt;br /&gt;
{{Wikipedia template}}&lt;br /&gt;
&lt;br /&gt;
This template is used inside other templates. It takes any number of parameters and returns the first found to be defined and non-empty. If none is found, nothing is returned. By writing &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{if empty|a|b|c}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; instead of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#if:a|a|{{#if:b|b|c}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, expression a and b do not have to be repeated and evaluated twice. The template provides a fallback order, similar to a try catch based &amp;quot;It is easier to ask for forgiveness than permission&amp;quot; (EAFP) programming style.&lt;br /&gt;
&lt;br /&gt;
Typical usage is like this:&lt;br /&gt;
: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{If empty |{{{logo|}}} |{{{image|}}} |{{{picture|}}} |default.svg}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
: &amp;lt;nowiki&amp;gt;(&amp;quot;Return {{{logo|}}} if it has a value; else {{{image|}}} if it has a value; else {{{picture|}}} if it has a value; else return &amp;quot;default.svg&amp;quot;.&amp;quot;)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
This returns the first of the parameters &amp;#039;&amp;#039;logo&amp;#039;&amp;#039;, &amp;#039;&amp;#039;image&amp;#039;&amp;#039; and &amp;#039;&amp;#039;picture&amp;#039;&amp;#039; that is defined and non-empty, otherwise &amp;quot;default.svg&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:Formatting and function templates]]&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Antt1995</name></author>
	</entry>
</feed>