แม่แบบ:param
{{{}}}
- The following documentation is located at แม่แบบ:param/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox
This template simply displays a parameter surrounded by {{{triple braces}}}, as usual in MediaWiki template code.
Usage
แก้ไข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
แก้ไข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
แก้ไข{{param|abc}}
returns:{{{abc}}}
{{param|abc|!}}
returns:{{{abc|}}}
{{param|abc|def}}
returns:{{{abc|def}}}
{{param|1}}
returns:{{{1}}}
{{param|salt|pepper}}
returns:{{{salt|pepper}}}