<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3APn%2Fdoc</id>
	<title>Module:Pn/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3APn%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Pn/doc&amp;action=history"/>
	<updated>2026-05-24T19:01:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Pn/doc&amp;diff=144312&amp;oldid=prev</id>
		<title>imported&gt;RexxS: /* Examples */ add examples of wrapper template</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Pn/doc&amp;diff=144312&amp;oldid=prev"/>
		<updated>2020-05-15T18:14:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Examples: &lt;/span&gt; add examples of wrapper template&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The module returns one value from its list of unnamed parameters.&lt;br /&gt;
&lt;br /&gt;
The named parameter {{para|idx}} is the index of the parameter that is to be returned.&lt;br /&gt;
&lt;br /&gt;
Negative indices count backward from the end of the list.&lt;br /&gt;
&lt;br /&gt;
A wrapper template may be used to simplify usage.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Pn |getVal | idx=1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#invoke:Pn |getVal | idx=1}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Pn |getVal | idx= | a | b | c | d | e | f }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#invoke:Pn |getVal | idx= | a | b | c | d | e | f }}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Pn |getVal | idx=0 | a | b | c | d | e | f }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#invoke:Pn |getVal | idx=0 | a | b | c | d | e | f }}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Pn |getVal | idx=1 | a | b | c | d | e | f }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#invoke:Pn |getVal | idx=1 | a | b | c | d | e | f }}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Pn |getVal | idx=2 | a | b | c | d | e | f }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#invoke:Pn |getVal | idx=2 | a | b | c | d | e | f }}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Pn |getVal | idx=-1 | a | b | c | d | e | f }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#invoke:Pn |getVal | idx=-1 | a | b | c | d | e | f }}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Pn |getVal | idx=99 | a | b | c | d | e | f }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{#invoke:Pn |getVal | idx=99 | a | b | c | d | e | f }}&lt;br /&gt;
&lt;br /&gt;
Using a wrapper template, {{tl|P-1}}:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{p-1 | a | b | c | d | e | f }}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{p-1 | a | b | c | d | e | f }}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{wdib|ps=1|P8011|qid=Q84055514}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{wdib|ps=1|P8011|qid=Q84055514}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{wdib|ps=1|P8011|qid=Q84055514|list=p-1}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; → {{wdib|ps=1|P8011|qid=Q84055514|list=p-1}}&lt;/div&gt;</summary>
		<author><name>imported&gt;RexxS</name></author>
	</entry>
</feed>