Template:Par/doc
This is a documentation subpage for Template:Par. It contains usage information, categories, and other content that is not part of the original template page. |
Usage
editTest 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}}}