The module returns one value from its list of unnamed parameters.
The named parameter is the index of the parameter that is to be returned.
Negative indices count backward from the end of the list.
A wrapper template may be used to simplify usage.
For accessing both named and unnamed parameters, see .
<nowiki>{{#invoke:Pn |getVal | idx=1}}</nowiki>
→<nowiki>{{#invoke:Pn |getVal | idx= | a | b | c | d | e | f }}</nowiki>
→<nowiki>{{#invoke:Pn |getVal | idx=0 | a | b | c | d | e | f }}</nowiki>
→<nowiki>{{#invoke:Pn |getVal | idx=1 | a | b | c | d | e | f }}</nowiki>
→<nowiki>{{#invoke:Pn |getVal | idx=2 | a | b | c | d | e | f }}</nowiki>
→<nowiki>{{#invoke:Pn |getVal | idx=-1 | a | b | c | d | e | f }}</nowiki>
→<nowiki>{{#invoke:Pn |getVal | idx=99 | a | b | c | d | e | f }}</nowiki>
→Using a wrapper template, :
<nowiki>{{p-1 | a | b | c | d | e | f }}</nowiki>
→<nowiki>{{wdib|ps=1|P8011|qid=Q84055514}}</nowiki>
→<nowiki>{{wdib|ps=1|P8011|qid=Q84055514|list=p-1}}</nowiki>
→