<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.filipefonseca.pt/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://wiki.filipefonseca.pt/index.php?action=history&amp;feed=atom&amp;title=Template%3AP1%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://wiki.filipefonseca.pt/index.php?title=Template:P1/doc&amp;action=history"/>
	<updated>2026-04-21T08:21:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>http://wiki.filipefonseca.pt/index.php?title=Template:P1/doc&amp;diff=2852&amp;oldid=prev</id>
		<title>FilipeFonseca: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://wiki.filipefonseca.pt/index.php?title=Template:P1/doc&amp;diff=2852&amp;oldid=prev"/>
		<updated>2021-07-08T08:35:27Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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]] and [[Template:P2|P2]] simply return the first and second 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;
&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; or &amp;quot;2&amp;quot;:&lt;br /&gt;
* {{tlc|P{{&amp;lt;nowiki/&amp;gt;{1}}}|''output if 1''|''output if 2''}}&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''}}&lt;br /&gt;
except that the parser function strips whitespace between parameters whereas the templates don't.&lt;br /&gt;
&lt;br /&gt;
== See also==&lt;br /&gt;
&lt;br /&gt;
* {{tl|P-1}}, returns the last unnamed parameter&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories and interwikis go here: --&amp;gt;&lt;br /&gt;
[[Category:Parameter selection templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>FilipeFonseca</name></author>
	</entry>
</feed>