Пређи на садржај

Шаблон:paramref

{{{}}}


This template displays a parameter name surrounded by {{{triple braces}}}, as one would see in MediaWiki template code. Note that this is useful when discussing the coding of templates (e.g., on template talk pages), but not so much when discussing how to use templates (e.g., in template documentation or on entry talk pages). For the latter usage, please see {{para}}.

Usage

[уреди]

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

Parameters

[уреди]

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

[уреди]
  • {{paramref|abc}} returns:
    {{{abc}}}
  • {{paramref|abc|!}} returns:
    {{{abc|}}}
  • {{paramref|abc|def}} returns:
    {{{abc|def}}}
  • {{paramref|1}} returns:
    {{{1}}}
  • {{paramref|salt|pepper}} returns:
    {{{salt|pepper}}}

See also

[уреди]