Template:Param/doc: Difference between revisions
From Bonkipedia
[[mw:]]>ExE Boss (Create documentation subpage for {{param}} (copied from w:Template:Param/doc)) |
ManfredoDo (talk | contribs) m (1 revision imported: Formatting templates) |
(No difference)
|
Latest revision as of 18:01, 12 November 2022
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