Jump to content

ទំព័រគំរូ:param/doc

ពីWiktionary

This template simply displays a parameter surrounded by six braces, as usual in MediaWiki.

To display a parameter between a vertical line and an equal sign, use {{para}}.

ការប្រើប្រាស់

[កែប្រែ]

This template may be added anywhere to display the parameter.

Parameters

[កែប្រែ]

This template uses one or two unnamed parameters.

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

ឧទាហរណ៍

[កែប្រែ]
  • {{param|abc}} returns:
    {{{abc}}}
  • {{param|abc|!}} returns:
    {{{abc|}}}
  • {{param|abc|def}} returns:
    {{{abc|def}}}
  • {{param|1}} returns:
    {{{1}}}
  • {{param|salt|pepper}} returns:
    {{{salt|pepper}}}

មើលផងដែរ

[កែប្រែ]