Template:Param/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Pinky sl m sl:Predloga:Param |
m 15 revisions imported |
||
| (12 intermediate revisions by 10 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{Distinguish|Template:Para}} | |||
<!-- Categories and interwikis go at the bottom of this page. --> | <!-- Categories and interwikis 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 === | ===Usage=== | ||
:<code><nowiki>{{param|foo}}</nowiki></code> → {{param|foo}} | :<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|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}}}} | |||
====Examples involving {{tl|para}}==== | |||
:<code><nowiki>{{para|foo|{{param|bar}}}}</nowiki></code> → {{para|foo|{{param|bar}}}} | :<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}}{{param|bar}}</nowiki></code> → {{para|foo}}{{param|bar}} | ||
:<code><nowiki>{{para|foo|{{var|bar}}}}</nowiki></code> → {{para|foo|{{var|bar}}}} | |||
===See also=== | |||
* {{tl|para}} | |||
{{Semantic markup templates}} | |||
<includeonly> | <includeonly>{{Sandbox other|| | ||
<!-- Categories | <!-- Categories below this line, please: --> | ||
[[Category:Semantic markup templates]] | |||
[[Category:Typing-aid templates]] | [[Category:Typing-aid templates]] | ||
}}</includeonly> | |||
</includeonly> | |||
Latest revision as of 04:50, 3 September 2020
| 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.
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}}