模板:Param/doc

来自决策链云智库
< 模板:Param
Zeroclanzhang(讨论 | 贡献)2024年1月21日 (日) 22:19的版本 (创建页面,内容为“{{Documentation subpage}} {{Distinguish|Template:Para}} <!-- 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. ===Usage=== :{{tji|param|foo}} → {{param|foo}} :{{tji|param|foo|tag: kbd}} → {{param|foo|tag=kbd}} :{{tji|param|foo|bar}} → {{param|foo|bar}} :<syntaxhighlight lang="wikitext"…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

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|<foo>|<bar>|<>|<>|<>|<>}} → |foo=bar
  • {{param value|baz quux|space=·}} → baz··quux