Template:Param/doc
From Bonkipedia
< Template:Param
Revision as of 07:48, 24 June 2021 by [[mw:]]>ExE Boss (Create documentation subpage for {{param}} (copied from w:Template:Param/doc))
This is a documentation subpage for Template:Param. It contains usage information, categories and other content that is not part of the original Template page. |
<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