Template:Param/doc: Difference between revisions
Jump to navigation
Jump to search
Examples involving
Deprecated (talk | contribs) (Wikipedia import, documentation subpage for Template:Param) |
Deprecated (talk | contribs) (Updated docs with Para usage) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{Wikipedia port|documentation=1}} | {{Wikipedia port|documentation=1}} | ||
{{Distinguish|Template:Para}} | |||
<!-- Categories go at the bottom of this page. --> | <!-- Categories go at the bottom of this page. --> | ||
Line 11: | Line 12: | ||
:<code><nowiki>{{param|foo|{{param|bar|nested=yes}}}}</nowiki></code> → {{param|foo|{{param|bar|nested=yes}}}} | :<code><nowiki>{{param|foo|{{param|bar|nested=yes}}}}</nowiki></code> → {{param|foo|{{param|bar|nested=yes}}}} | ||
:<code><nowiki>{{param|foo|{{param|bar|{{param|baz|derp|nested=yes}}|nested=yes}}}}</nowiki></code> → {{param|foo|{{param|bar|{{param|baz|derp|nested=yes}}|nested=yes}}}} | :<code><nowiki>{{param|foo|{{param|bar|{{param|baz|derp|nested=yes}}|nested=yes}}}}</nowiki></code> → {{param|foo|{{param|bar|{{param|baz|derp|nested=yes}}|nested=yes}}}} | ||
====Examples involving {{tl|para}}==== | |||
:<code><nowiki>{{para|foo|{{param|bar}}}}</nowiki></code> → {{para|foo|{{param|bar}}}} | |||
:<code><nowiki>{{para|foo|{{param|bar|nested=yes}}}}</nowiki></code> → {{para|foo|{{param|bar|nested=yes}}}} | |||
:<code><nowiki>{{para|foo}}{{param|bar}}</nowiki></code> → {{para|foo}}{{param|bar}} | |||
:<code><nowiki>{{para|foo|{{var|bar}}}}</nowiki></code> → {{para|foo|{{var|bar}}}} | |||
===See also=== | |||
* {{tl|para}} | |||
<includeonly> | <includeonly> |
Revision as of 15:17, 25 February 2020

This is a documentation subpage for Template:Param.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
This template was ported from a template from Wikipedia. It was originally at Template:Param/doc. The original authors of this template are shown on the template's edit history page.
This template's documentation was also ported from Wikipedia, originally from Template:Param/doc/doc. The original authors of the documentation are shown on the documentation's edit history page.
Wikipedia's text is available under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
This template's documentation was also ported from Wikipedia, originally from Template:Param/doc/doc. The original authors of the documentation are shown on the documentation's edit history page.
Wikipedia's text is available under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
Not to be confused with Template:Para.
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}}}}}}}}}
Examples involving {{para}}
{{para|foo|{{param|bar}}}}
→|foo={{{bar}}}
{{para|foo|{{param|bar|nested=yes}}}}
→|foo={{{bar}}}
{{para|foo}}{{param|bar}}
→|foo=
{{{bar}}}{{para|foo|{{var|bar}}}}
→|foo=bar
See also
{{para}}