No edit summary |
m (5 revisions imported: Imported from https://en.wikipedia.org/w/) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Documentation subpage}} | |||
{{lua|Module:Pn}} | {{lua|Module:Pn}} | ||
Returns the last unnamed parameter. | Returns the last unnamed parameter. | ||
Line 12: | Line 13: | ||
* {{tl|P1}}, returns the first unnamed parameter | * {{tl|P1}}, returns the first unnamed parameter | ||
<includeonly>{{sandbox other|| | |||
<!-- Template categories below this line --> | |||
[[Category:Parameter selection templates]] | |||
}}</includeonly> |
Latest revision as of 10:54, 17 November 2023
{{#invoke:Message box|mbox}}
This template uses Lua: |
Returns the last unnamed parameter.
Wrapper for Module:Pn setting index to -1 (last value).
Examples[edit source]
{{p-1 | a | b | c | d | e | f }}
→ {{#invoke:Pn |getVal | idx=-1}}{{wdib|ps=1|P8011|qid=Q84055514|list=p-1}}
→ Template:Wdib
See also[edit source]
- {{P1}}, returns the first unnamed parameter