Template:Param/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Restore revision 230179 by Deprecated (talk): see revision 301898 of Template:Param) |
||
Line 1: | Line 1: | ||
{{ | {{Documentation subpage}} | ||
{{Wikipedia port|documentation=1}} | |||
<!-- Categories go at the bottom of this 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. | 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=== | ||
:<code><nowiki>{{param|foo}}</nowiki></code> → {{param|foo}} | |||
:<code><nowiki>{{param|foo|tag=kbd}}</nowiki></code> → {{param|foo|tag=kbd}} | |||
:<code><nowiki>{{param|foo|bar}}</nowiki></code> → {{param|foo|bar}} | |||
:<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}}}} | |||
<includeonly> | |||
<!-- Categories below this line, please: --> | |||
[[Category:Semantic markup templates]] | |||
[[Category:Typing-aid templates]] | |||
</includeonly> |
Revision as of 07:36, 29 April 2023

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.
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}}}}}}}}}