<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/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://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3APn%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Pn/doc&amp;action=history"/>
	<updated>2026-06-15T20:29:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:Pn/doc&amp;diff=478941&amp;oldid=prev</id>
		<title>Zoran: Pywikibot 6.4.0</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Pn/doc&amp;diff=478941&amp;oldid=prev"/>
		<updated>2021-07-16T05:18:25Z</updated>

		<summary type="html">&lt;p&gt;Pywikibot 6.4.0&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>Zoran</name></author>
	</entry>
</feed>