Template:Param/doc
![]() | This is a documentation subpage for Template:Param. It may contain usage information, categories and other content that is not part of the original template page. |
This template is for giving examples of template parameter source code which is useful in template documentation and talk page discussions of template code.
Contents
Usage
- {{param
|foo}} →{{{foo}}}
- {{param
|foo → {{{foo}}}|tag=kbd}} - {{param
|foo →|bar}} {{{foo|bar}}}
- <syntaxhighlight lang="wikitext" inline>
{{{foo|{{{bar}}}}}}
</syntaxhighlight> →{{{foo|{{{bar}}}}}}
- <syntaxhighlight lang="wikitext" inline>
{{{foo|{{{bar|{{{baz|derp}}}}}}}}}
</syntaxhighlight> →{{{foo|{{{bar|{{{baz|derp}}}}}}}}}
Examples involving {{para}}
- <syntaxhighlight lang="wikitext" inline>
|foo=
</syntaxhighlight> →{{{bar}}}
|foo=
{{{bar}}}
- <syntaxhighlight lang="wikitext" inline>
|foo={{{bar}}}
</syntaxhighlight> →|foo={{{bar}}}
- {{para
|foo}} {{param|bar}} →|foo=
{{{bar}}}
- <syntaxhighlight lang="wikitext" inline>
|foo=bar
</syntaxhighlight> →|foo=bar
See also
{{para|foo|bar}}
→|foo=bar
{{param value|baz quux|space=·}}
→baz··quux
Collapse | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|