Template:Par
Appearance
{{Par|?}}
Usage
[edit]Test if the parameter (whose name is given in parameter 1) is set:
- if so return the value of parameter whose name is in parameter 2;
- otherwise return the value of parameter whose name is in parameter 3.
Examples
[edit]- {{par|p|q}} gives q
- {{par|p|q|p=r}} gives r
- {{par/demo}} gives <par p> - q - {{{p}}} - {{{q}}}
- {{par/demo|p=r}} gives <par p> - q - r - {{{q}}}