Template:Pstp
Jump to navigation
Jump to search
{{{{{{p}}}}}}
[edit] [history] [ ] File:Template-info.png Template documentation
This is a parameter selection template. It returns the value of the parameter whose name is the value of parameter p.
Usage
{{pstp|p=a|a=fa|b=fb}}
→ fa{{pstp|p=b|a=fa|b=fb}}
→ fb
Thus {{pstp|p={{{1}}}|a=fa|b=fb|..}}
can represent any function f given by a set of pairs (a,fa), (b,fb), .. , except that these cannot include a pair (p,fp). To allow the latter also, we can use {{pstp|p=q{{{1}}}|qa=fa|qb=fb|..}}
.
m:Template:Ppp is identical.
The above documentation is transcluded from Template:Pstp/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |