<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://www.mansun.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AP1%2Fdoc</id>
		<title>Template:P1/doc - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.mansun.wiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AP1%2Fdoc"/>
		<link rel="alternate" type="text/html" href="http://www.mansun.wiki/index.php?title=Template:P1/doc&amp;action=history"/>
		<updated>2026-04-30T01:28:47Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://www.mansun.wiki/index.php?title=Template:P1/doc&amp;diff=2376&amp;oldid=prev</id>
		<title>DarkMavis: Created page with &quot;{{Documentation subpage}} &lt;!-- Categories and interwikis go at the bottom of this page. --&gt;  The templates P1, P2 and P3 simply...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.mansun.wiki/index.php?title=Template:P1/doc&amp;diff=2376&amp;oldid=prev"/>
				<updated>2015-07-16T10:59:57Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} &amp;lt;!-- Categories and interwikis go at the bottom of this page. --&amp;gt;  The templates &lt;a href=&quot;/index.php?title=Template:P1&quot; title=&quot;Template:P1&quot;&gt;P1&lt;/a&gt;, &lt;a href=&quot;/index.php?title=Template:P2&quot; title=&quot;Template:P2&quot;&gt;P2&lt;/a&gt; and &lt;a href=&quot;/index.php?title=Template:P3&quot; title=&quot;Template:P3&quot;&gt;P3&lt;/a&gt; simply...&amp;quot;&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;!-- Categories and interwikis go at the bottom of this page. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The templates [[Template:P1|P1]], [[Template:P2|P2]] and [[Template:P3|P3]] simply return the first, second and third unnamed input parameter respectively. For example:&lt;br /&gt;
* {{tlc|P1|foo|bar|baz}} returns {{P1|foo|bar|baz}}&lt;br /&gt;
* {{tlc|P2|foo|bar|baz}} returns {{P2|foo|bar|baz}}&lt;br /&gt;
* {{tlc|P3|foo|bar|baz}} returns {{P3|foo|bar|baz}}&lt;br /&gt;
&lt;br /&gt;
These templates can be used inside other templates as an alternative to the {{pf|switch}} parser function, to switch between outputs based on whether the input is &amp;quot;1&amp;quot;, &amp;quot;2&amp;quot; or &amp;quot;3&amp;quot;:&lt;br /&gt;
* {{tlc|P{{&amp;lt;nowiki/&amp;gt;{1}}}|''output if 1''|''output if 2''|''output if 3''}}&lt;br /&gt;
&lt;br /&gt;
Using &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#switch}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, this syntax is equivalent to&lt;br /&gt;
* {{tlc|{{hash}}switch:{{&amp;lt;nowiki/&amp;gt;{1}}}|1{{=}}''output if 1''|2{{=}}''output if 2''|3{{=}}''output if 3''}}&lt;br /&gt;
except that the parser function strips whitespace between parameters whereas the templates don't.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Categories and interwikis go here: --&amp;gt;&lt;br /&gt;
[[Category:Parameter selection templates]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>DarkMavis</name></author>	</entry>

	</feed>