Template:Param: Difference between revisions
(Created page with "{{SAFESUBST:<noinclude />#ifeq:{{SAFESUBST:<noinclude />Yesno|{{{nested|no}}}}}|yes||<{{{tag|code}}}>}}{{{{{{1<noinclude>|foo</noinclude>}}}{{SAFESUBST:<noinclude />#ifeq:{{{2}}}|{{{2|}}} ||}}{{{2|}}}}}}{{SAFESUBST:<noinclude />#ifeq:{{SAFESUBST:<noinclude />Yesno|{{{nested|no}}}}}|yes||</{{{tag|code}}}>}}<noinclude> {{Documentation}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude>") |
m (1 revision imported) |
Latest revision as of 20:10, 19 June 2023
{{{foo}}}
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 |tag=kbd}} → {{{foo}}} - {{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
|
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.