Template:Param
From Bonkipedia
Revision as of 18:01, 12 November 2022 by ManfredoDo (talk | contribs) (1 revision imported: Formatting templates)
{{{foo}}}
<translate> Not to be confused with</translate> Template:Para<translate> or</translate> 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
{{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}}}}}}}}}
Examples involving {{para}}
{{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
This 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
- {{para|foo|bar}} →
|foo=bar