Template:Par

{{Par|?}}

Template documentation

UsageEdit

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.

ExamplesEdit

  • {{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}}}