Template:param

Definition from Wiktionary, the free dictionary
Jump to: navigation, search

{{{}}}


This template simply displays a parameter surrounded by {{{triple braces}}}, as usual in MediaWiki template code.

Usage[edit]

This template may be added anywhere outside of the main (dictionary) namespace to display a parameter as it would appear inside of template code.

To display a parameter between a vertical line and an equal sign, as it would appear in a template call (e.g., |parameter=), use {{para}}.

To display a parameter name in order to explain its usage on a template documentation subpage, use {{docparam}}.

Parameters[edit]

This template uses one or two unnamed (positional) parameters.

  • |1= (required) The parameter name to be shown.
  • |2= (optional) The text that appears after the parameter name and a pipe. If this parameter is "!" (an exclamation point), only the pipe will be shown after the parameter name.

Examples[edit]

  • {{param|abc}} returns:
    {{{abc}}}
  • {{param|abc|!}} returns:
    {{{abc|}}}
  • {{param|abc|def}} returns:
    {{{abc|def}}}
  • {{param|1}} returns:
    {{{1}}}
  • {{param|salt|pepper}} returns:
    {{{salt|pepper}}}

See also[edit]