Template:Param/doc: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Sardanaphalus (→See also: {{Semantic templates see also}}) |
m (15 revisions imported) |
||
(9 intermediate revisions by 9 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. --> | ||
Line 5: | Line 6: | ||
===Usage=== | ===Usage=== | ||
:<nowiki>{{param|foo}}</nowiki> → {{param|foo}} | :<code><nowiki>{{param|foo}}</nowiki></code> → {{param|foo}} | ||
:<nowiki>{{param|foo|bar}}</nowiki> → {{param|foo|bar}} | :<code><nowiki>{{param|foo|tag=kbd}}</nowiki></code> → {{param|foo|tag=kbd}} | ||
:<nowiki>{{param|foo|{{param|bar|nested=yes}}}}</nowiki> → {{param|foo|{{param|bar|nested=yes}}}} | :<code><nowiki>{{param|foo|bar}}</nowiki></code> → {{param|foo|bar}} | ||
:<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|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}}==== | ====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=== | ||
* {{tl|para}} | * {{tl|para}} | ||
<includeonly> | {{Semantic markup templates}} | ||
<!-- Categories | |||
<includeonly>{{Sandbox other|| | |||
<!-- 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}}