<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.thinkwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=Template_talk%3AIf_defined</id>
	<title>Template talk:If defined - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.thinkwiki.org/w/index.php?action=history&amp;feed=atom&amp;title=Template_talk%3AIf_defined"/>
	<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Template_talk:If_defined&amp;action=history"/>
	<updated>2026-06-10T04:42:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.12</generator>
	<entry>
		<id>https://www.thinkwiki.org/w/index.php?title=Template_talk:If_defined&amp;diff=17407&amp;oldid=prev</id>
		<title>Thinker: copied from Wikipedia</title>
		<link rel="alternate" type="text/html" href="https://www.thinkwiki.org/w/index.php?title=Template_talk:If_defined&amp;diff=17407&amp;oldid=prev"/>
		<updated>2005-12-27T01:51:44Z</updated>

		<summary type="html">&lt;p&gt;copied from Wikipedia&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Documentation==&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
&lt;br /&gt;
&amp;amp;#123;&amp;amp;#123;[[template:if defined|if defined]]&amp;amp;#125;&amp;amp;#125; &amp;amp;mdash; If a parameter of variable is defined, call the specified template with specified arguments.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- explain what this template does; use it in a sentence --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{if defined&lt;br /&gt;
  |test=expression to test&lt;br /&gt;
  |call=template to call if test is not empty&lt;br /&gt;
  |1=parameter_1_name=parameter_1_value&lt;br /&gt;
  |2=parameter_2_name=parameter_2_value&lt;br /&gt;
  |...&lt;br /&gt;
  |150=parameter_150_name=parameter_150_value&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If called within another template, a typical usage is e.g. &lt;br /&gt;
:&amp;lt;nowiki&amp;gt;test={{{music|}}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
The result is empty both if the parameter music is undefined, and if it is empty.&lt;br /&gt;
&lt;br /&gt;
Note that if the parameter music is undefined, the text &amp;quot;{{{music}}}&amp;quot; (without &amp;quot;|&amp;quot;) is a non-empty text, so in this case the call template is called.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- explain what this template's parameters do -- if no params, delete the definition --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Code&lt;br /&gt;
! Result&lt;br /&gt;
|- style=&amp;quot;vertical-align:top;&amp;quot;&lt;br /&gt;
| &amp;lt;pre&amp;gt;&lt;br /&gt;
{{if defined&lt;br /&gt;
  |test=hello&lt;br /&gt;
  |call=foreach&lt;br /&gt;
  |1=call=show1&lt;br /&gt;
  |2=separator=,&amp;amp;amp;#32;&lt;br /&gt;
  |3=1=this&lt;br /&gt;
  |4=2=is&lt;br /&gt;
  |5=3=a&lt;br /&gt;
  |6=4=test&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
||{{if defined&lt;br /&gt;
  |test=hello&lt;br /&gt;
  |call=foreach&lt;br /&gt;
  |1=call=show1&lt;br /&gt;
  |2=separator=,&amp;amp;#32;&lt;br /&gt;
  |3=1=this&lt;br /&gt;
  |4=2=is&lt;br /&gt;
  |5=3=a&lt;br /&gt;
  |6=4=test&lt;br /&gt;
}}&lt;br /&gt;
|- style=&amp;quot;vertical-align:top;&amp;quot;&lt;br /&gt;
| &amp;lt;pre&amp;gt;&lt;br /&gt;
{{if defined&lt;br /&gt;
  |test=&lt;br /&gt;
  |call=foreach&lt;br /&gt;
  |1=call=show1&lt;br /&gt;
  |2=separator=,&amp;amp;amp;#32;&lt;br /&gt;
  |3=1=this&lt;br /&gt;
  |4=2=is&lt;br /&gt;
  |5=3=a&lt;br /&gt;
  |6=4=test&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
||{{if defined&lt;br /&gt;
  |test=&lt;br /&gt;
  |call=foreach&lt;br /&gt;
  |1=call=show1&lt;br /&gt;
  |2=separator=,&amp;amp;#32;&lt;br /&gt;
  |3=1=this&lt;br /&gt;
  |4=2=is&lt;br /&gt;
  |5=3=a&lt;br /&gt;
  |6=4=test&lt;br /&gt;
}}&lt;br /&gt;
|- style=&amp;quot;vertical-align:top;&amp;quot;&lt;br /&gt;
| &amp;lt;pre&amp;gt;&lt;br /&gt;
{{if defined&lt;br /&gt;
  |call=foreach&lt;br /&gt;
  |1=call=show1&lt;br /&gt;
  |2=separator=,&amp;amp;amp;#32;&lt;br /&gt;
  |3=1=this&lt;br /&gt;
  |4=2=is&lt;br /&gt;
  |5=3=a&lt;br /&gt;
  |6=4=test&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
||{{if defined&lt;br /&gt;
  |call=foreach&lt;br /&gt;
  |1=call=show1&lt;br /&gt;
  |2=separator=,&amp;amp;#32;&lt;br /&gt;
  |3=1=this&lt;br /&gt;
  |4=2=is&lt;br /&gt;
  |5=3=a&lt;br /&gt;
  |6=4=test&lt;br /&gt;
}}&lt;br /&gt;
|- style=&amp;quot;vertical-align:top;&amp;quot;&lt;br /&gt;
| &amp;lt;pre&amp;gt;&lt;br /&gt;
{{if defined&lt;br /&gt;
  |test=hello&lt;br /&gt;
  |1=call=show1&lt;br /&gt;
  |2=separator=,&amp;amp;amp;#32;&lt;br /&gt;
  |3=1=this&lt;br /&gt;
  |4=2=is&lt;br /&gt;
  |5=3=a&lt;br /&gt;
  |6=4=test&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
||{{if defined&lt;br /&gt;
  |test=hello&lt;br /&gt;
  |1=call=show1&lt;br /&gt;
  |2=separator=,&amp;amp;#32;&lt;br /&gt;
  |3=1=this&lt;br /&gt;
  |4=2=is&lt;br /&gt;
  |5=3=a&lt;br /&gt;
  |6=4=test&lt;br /&gt;
}}&lt;br /&gt;
|- style=&amp;quot;vertical-align:top;&amp;quot;&lt;br /&gt;
| &amp;lt;pre&amp;gt;&lt;br /&gt;
{{if defined&lt;br /&gt;
  |test={{{hello}}}&lt;br /&gt;
  |call=foreach&lt;br /&gt;
  |1=call=show1&lt;br /&gt;
  |2=separator=,&amp;amp;amp;#32;&lt;br /&gt;
  |3=1=this&lt;br /&gt;
  |4=2=is&lt;br /&gt;
  |5=3=a&lt;br /&gt;
  |6=4=test&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
||{{if defined&lt;br /&gt;
  |test={{{hello}}}&lt;br /&gt;
  |call=foreach&lt;br /&gt;
  |1=call=show1&lt;br /&gt;
  |2=separator=,&amp;amp;#32;&lt;br /&gt;
  |3=1=this&lt;br /&gt;
  |4=2=is&lt;br /&gt;
  |5=3=a&lt;br /&gt;
  |6=4=test&lt;br /&gt;
}}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;!-- customize if needed to illustrate parameter use --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
* [[Template:Unless defined]]&lt;br /&gt;
* {{tiw|Infobox_Film}} - applies &amp;quot;If defined&amp;quot;&lt;br /&gt;
* [[:Category:If Templates]]&lt;br /&gt;
&lt;br /&gt;
=== History ===&lt;br /&gt;
; Created : &amp;lt;sub&amp;gt;â†’&amp;lt;font style=&amp;quot;color:#975612&amp;quot;&amp;gt;[[User:AzaToth|Aza]]&amp;lt;/font&amp;gt;&amp;lt;font style=&amp;quot;color:#325596&amp;quot;&amp;gt;[[User_talk:AzaToth|Toth]]&amp;lt;/font&amp;gt;&amp;lt;/sub&amp;gt; 20:43, 4 December 2005 (UTC)&lt;br /&gt;
&lt;br /&gt;
Copied form Wikipedia: http://en.wikipedia.org/wiki/Template:If_defined&lt;br /&gt;
== Discussion ==&lt;/div&gt;</summary>
		<author><name>Thinker</name></author>
		
	</entry>
</feed>