Module:Pn/doc
MyWikiBiz, Author Your Legacy — Friday November 15, 2024
Jump to navigationJump to searchThis is the documentation page for Module:Pn
The module returns one value from its list of unnamed parameters.
The named parameter Template:Para 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.
Examples
{{#invoke:Pn |getVal | idx=1}}
→{{#invoke:Pn |getVal | idx= | a | b | c | d | e | f }}
→ a{{#invoke:Pn |getVal | idx=0 | a | b | c | d | e | f }}
→{{#invoke:Pn |getVal | idx=1 | a | b | c | d | e | f }}
→ a{{#invoke:Pn |getVal | idx=2 | a | b | c | d | e | f }}
→ b{{#invoke:Pn |getVal | idx=-1 | a | b | c | d | e | f }}
→ f{{#invoke:Pn |getVal | idx=99 | a | b | c | d | e | f }}
→
Using a wrapper template, {{P-1}}:
{{p-1 | a | b | c | d | e | f }}
→ Template:P-1{{wdib|ps=1|P8011|qid=Q84055514}}
→ Template:Wdib{{wdib|ps=1|P8011|qid=Q84055514|list=p-1}}
→ Template:Wdib