
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.eiwiki.ro/skins/common/feed.css?195"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>EiWiki - User contributions [en]</title>
		<link>http://www.eiwiki.ro/wiki/Special:Contributions</link>
		<description>From EiWiki</description>
		<language>en</language>
		<generator>MediaWiki 1.14.0</generator>
		<lastBuildDate>Sun, 12 Apr 2026 15:47:33 GMT</lastBuildDate>
		<item>
			<title>Help:Parser functions in templates</title>
			<link>http://www.eiwiki.ro/wiki/Help:Parser_functions_in_templates</link>
			<description>&lt;p&gt;67.177.186.240: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When applying [[Help:Extension:ParserFunctions|ParserFunctions]] to [[Help:Template|template]] parameters, a pipe symbol (&amp;quot;|&amp;quot;) may be used to provide the empty string as default value, in order to indicate how to handle things if a parameter is or is not passed in.&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{{1}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:;Sample A: &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{#if: {{{1}}} | Parameter 1 is not defined, or is defined and non-null/non-empty. | Parameter 1 is null. It contains only empty string(s) or breaking space(s) etc.}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:;Result: &amp;lt;tt&amp;gt;{{#if: {{{1}}} | Parameter 1 is not defined, or is defined and non-null/non-empty. | Parameter 1 is null. It contains only empty string(s) or breaking space(s) etc.}}&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{{1|}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:;Sample B: &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{#if: {{{1|}}} | Parameter 1 is defined and non-null/non-empty. | Parameter 1 is not defined, or is defined but null. It contains only empty string(s) or breaking space(s) etc.}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:;Result: &amp;lt;tt&amp;gt;{{#if: {{{1|}}} | Parameter 1 is defined and non-null/non-empty. | Parameter 1 is not defined, or is defined but null. It contains only empty string(s) or breaking space(s) etc.}}&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Comparison&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Condition of parameter 1&lt;br /&gt;
! Sample A: &amp;lt;nowiki&amp;gt;{{{1}}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
! Sample B: &amp;lt;nowiki&amp;gt;{{{1|}}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|not defined||'''TRUE'''||''FALSE''&lt;br /&gt;
|-&lt;br /&gt;
|defined but null/empty||''FALSE''||''FALSE''&lt;br /&gt;
|-&lt;br /&gt;
|defined and NOT null/empty||'''TRUE'''||'''TRUE'''&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The second usage (&amp;lt;nowiki&amp;gt;{{{1|}}}&amp;lt;/nowiki&amp;gt;) is often the desired way to handle situations where a parameter exists, but is comprised only of empty space.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Help:Extension:ParserFunctions]]&lt;br /&gt;
*[[Help:Template]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Help|Parser functions in templates]]&lt;/div&gt;</description>
			<pubDate>Sun, 12 Jul 2009 14:27:37 GMT</pubDate>			<dc:creator>67.177.186.240</dc:creator>			<comments>http://www.eiwiki.ro/wiki/Help_talk:Parser_functions_in_templates</comments>		</item>
	</channel>
</rss>