(Creating Template:P-1/doc) |
(Added a simpler description in the beginning. Added a link to {{P1}}.) |
||
Line 1: | Line 1: | ||
Wrapper for [[Module:Pn]] setting index to -1 (last value) | Returns the last unnamed parameter. | ||
Wrapper for [[Module:Pn]] setting index to -1 (last value). | |||
== Examples == | == Examples == | ||
Line 5: | Line 7: | ||
* <code><nowiki>{{p-1 | a | b | c | d | e | f }}</nowiki></code> → {{p-1 | a | b | c | d | e | f }} | * <code><nowiki>{{p-1 | a | b | c | d | e | f }}</nowiki></code> → {{p-1 | a | b | c | d | e | f }} | ||
* <code><nowiki>{{wdib|ps=1|P8011|qid=Q84055514|list=p-1}}</nowiki></code> → {{wdib|ps=1|P8011|qid=Q84055514|list=p-1}} | * <code><nowiki>{{wdib|ps=1|P8011|qid=Q84055514|list=p-1}}</nowiki></code> → {{wdib|ps=1|P8011|qid=Q84055514|list=p-1}} | ||
== See also== | |||
* {{tl|P1}}, returns the first unnamed parameter |
Revision as of 20:42, 15 May 2020
Returns the last unnamed parameter.
Wrapper for Module:Pn setting index to -1 (last value).
Examples
{{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
- {{P1}}, returns the first unnamed parameter