Template:Param
Revision as of 23:00, 24 July 2023 by Penguinplushie (talk | contribs) (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}} <!-- Add categories to the /doc subpage, not here! --> </noinclude>")
{{{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.
Usage
- {{param
|foo}} → {{{foo}}}
- {{param
|foo |tag=kbd}} → {{{foo}}} - {{param
|foo |bar}} → {{{foo|bar}}}
{{param|foo|{{param|bar|nested=yes}}}}
→{{{foo|
{{{bar}}}
}}}{{param|foo|{{param|bar|{{param|baz|derp|nested=yes}}|nested=yes}}}}
→{{{foo|
{{{bar|
}}}{{{baz|derp}}}
}}}