Template:Param
{{{foo}}}
Not to be confused with Template:Para or Template:Parameter.
This template is for giving examples of template parameter source code which is useful in template documentation and talk page discussions of template code.
Usage
edit{{param|foo}}
→{{{foo}}}
{{param|foo|tag=kbd}}
→ {{{foo}}}{{param|foo|bar}}
→{{{foo|bar}}}
{{param|foo|{{param|bar|nested=1}}}}
→{{{foo|{{{bar}}}}}}
{{param|foo|{{param|bar|{{param|baz|derp|nested=1}}|nested=1}}}}
→{{{foo|{{{bar|{{{baz|derp}}}}}}}}}
{{para|foo|{{param|bar}}}}
→|foo=
{{{bar}}}
{{para|foo|{{param|bar|nested=1}}}}
→|foo={{{bar}}}
{{para|foo}}{{param|bar}}
→|foo=
{{{bar}}}
{{para|foo|{{var|bar}}}}
→|foo=bar
TemplateData
editThis is the TemplateData documentation for this template used by VisualEditor and other tools.
Param
This template is for giving examples of template parameter source code which is useful in template documentation and talk page discussions of template code.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | 1 | The parameter name | String | required |
Value | 2 | The parameter value | String | optional |
Nested? | nested | Whether to not wrap in <{{{tag|code}}}> tags.
| Boolean | optional |
Nested Tag Name | tag | The name of the tag to wrap in. Used only when “nested” is falsy.
| String | optional |
See also
edit- {{para|foo|bar}} →
|foo=bar