Template:Param/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Cpiral document tag=kbd |
m 15 revisions imported |
||
| (6 intermediate revisions by 6 users not shown) | |||
| Line 6: | Line 6: | ||
===Usage=== | ===Usage=== | ||
:<nowiki>{{param|foo}}</nowiki> → {{param|foo}} | :<code><nowiki>{{param|foo}}</nowiki></code> → {{param|foo}} | ||
:<nowiki>{{param|foo|tag=kbd}}</nowiki> → {{param|foo|tag=kbd}} | :<code><nowiki>{{param|foo|tag=kbd}}</nowiki></code> → {{param|foo|tag=kbd}} | ||
:<nowiki>{{param|foo|bar}}</nowiki> → {{param|foo|bar}} | :<code><nowiki>{{param|foo|bar}}</nowiki></code> → {{param|foo|bar}} | ||
:<nowiki>{{param|foo|{{param|bar|nested=yes}}}}</nowiki> → {{param|foo|{{param|bar|nested=yes}}}} | :<code><nowiki>{{param|foo|{{param|bar|nested=yes}}}}</nowiki></code> → {{param|foo|{{param|bar|nested=yes}}}} | ||
:<nowiki>{{param|foo|{{param|bar|{{param|baz|derp|nested=yes}}|nested=yes}}}}</nowiki> → {{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}}==== | ====Examples involving {{tl|para}}==== | ||
:<nowiki>{{para|foo|{{param|bar}}}}</nowiki> → {{para|foo|{{param|bar}}}} | :<code><nowiki>{{para|foo|{{param|bar}}}}</nowiki></code> → {{para|foo|{{param|bar}}}} | ||
:<nowiki>{{para|foo}}{{param|bar}}</nowiki> → {{para|foo}}{{param|bar}} | :<code><nowiki>{{para|foo|{{param|bar|nested=yes}}}}</nowiki></code> → {{para|foo|{{param|bar|nested=yes}}}} | ||
:<nowiki>{{para|foo| | :<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=== | ===See also=== | ||
| Line 23: | Line 24: | ||
{{Semantic markup templates}} | {{Semantic markup templates}} | ||
<includeonly> | <includeonly>{{Sandbox other|| | ||
<!-- Categories below this line, please: --> | <!-- Categories below this line, please: --> | ||
[[Category:Semantic markup templates]] | [[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}}