<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki2print.hackersanddesigners.nl/wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AP2%2Fdoc</id>
	<title>Template:P2/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki2print.hackersanddesigners.nl/wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AP2%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki2print.hackersanddesigners.nl/wiki/mediawiki/index.php?title=Template:P2/doc&amp;action=history"/>
	<updated>2026-05-09T12:53:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki2print.hackersanddesigners.nl/wiki/mediawiki/index.php?title=Template:P2/doc&amp;diff=286&amp;oldid=prev</id>
		<title>Karl: Created page with &quot;The templates P1, P2 and P3 simply return the first, second and third unnamed input parameter respectively. For example: * {{tlc|P1|foo|bar|baz}} returns {{P1|foo|bar|baz}} * {{tlc|P2|foo|bar|baz}} returns {{P2|foo|bar|baz}} * {{tlc|P3|foo|bar|baz}} returns {{P3|foo|bar|baz}}  These templates can be used inside other templates as an alternative to the &lt;code&gt;#switch&lt;/code&gt; parser function, t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki2print.hackersanddesigners.nl/wiki/mediawiki/index.php?title=Template:P2/doc&amp;diff=286&amp;oldid=prev"/>
		<updated>2022-03-02T09:50:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;The templates &lt;a href=&quot;/wiki/Template:P1&quot; title=&quot;Template:P1&quot;&gt;P1&lt;/a&gt;, &lt;a href=&quot;/wiki/Template:P2&quot; title=&quot;Template:P2&quot;&gt;P2&lt;/a&gt; and &lt;a href=&quot;/wiki/Template:P3&quot; title=&quot;Template:P3&quot;&gt;P3&lt;/a&gt; simply return the first, second and third unnamed input parameter respectively. For example: * {{tlc|P1|foo|bar|baz}} returns {{P1|foo|bar|baz}} * {{tlc|P2|foo|bar|baz}} returns {{P2|foo|bar|baz}} * {{tlc|P3|foo|bar|baz}} returns {{P3|foo|bar|baz}}  These templates can be used inside other templates as an alternative to the &amp;lt;code&amp;gt;&lt;a href=&quot;/wiki/mediawiki/index.php?title=Help:Parser_functions&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Help:Parser functions (page does not exist)&quot;&gt;#switch&lt;/a&gt;&amp;lt;/code&amp;gt; parser function, t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&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 &amp;lt;code&amp;gt;[[Help:Parser functions##switch|#switch]]&amp;lt;/code&amp;gt; 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}}}|&amp;#039;&amp;#039;output if 1&amp;#039;&amp;#039;|&amp;#039;&amp;#039;output if 2&amp;#039;&amp;#039;|&amp;#039;&amp;#039;output if 3&amp;#039;&amp;#039;}}&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|{&amp;lt;nowiki/&amp;gt;#switch:{{&amp;lt;nowiki/&amp;gt;{1}}}|1{{=}}&amp;#039;&amp;#039;output if 1&amp;#039;&amp;#039;|2{{=}}&amp;#039;&amp;#039;output if 2&amp;#039;&amp;#039;|3{{=}}&amp;#039;&amp;#039;output if 3&amp;#039;&amp;#039;}}&lt;br /&gt;
except that the parser function strips whitespace between parameters whereas the templates don&amp;#039;t.&lt;/div&gt;</summary>
		<author><name>Karl</name></author>
	</entry>
</feed>