
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.eiwiki.ro/skins/common/feed.css?195"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.eiwiki.ro/index.php?feed=atom&amp;target=67.177.186.240&amp;title=Special%3AContributions</id>
		<title>EiWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.eiwiki.ro/index.php?feed=atom&amp;target=67.177.186.240&amp;title=Special%3AContributions"/>
		<link rel="alternate" type="text/html" href="http://www.eiwiki.ro/wiki/Special:Contributions"/>
		<updated>2026-04-14T11:02:53Z</updated>
		<subtitle>From EiWiki</subtitle>
		<generator>MediaWiki 1.14.0</generator>

	<entry>
		<id>http://www.eiwiki.ro/wiki/Help:Parser_functions_in_templates</id>
		<title>Help:Parser functions in templates</title>
		<link rel="alternate" type="text/html" href="http://www.eiwiki.ro/wiki/Help:Parser_functions_in_templates"/>
				<updated>2009-07-12T14:27:37Z</updated>
		
		<summary type="html">&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;</summary>
		<author><name>67.177.186.240</name></author>	</entry>

	</feed>