Template:Param
来自Valve Developer Community
跳转到导航
跳转到搜索
文档页面 Template:Param/doc/zh 不存在。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
This template is for giving examples of template parameter source code which is useful in template documentation and talk page discussions of template code.
Parameters and Examples
| Parameters | 描述 | 示例 | 预览 |
|---|---|---|---|
{{{1}}}
|
Parameter name. Displays the number 1 by default, and also if the parameter is empty. The parameter name is highlighted in white, and also uses the CSS property |
{{Param}} {{Param|}} {{Param|type}} |
{{{1}}} {{{1}}} {{{type}}}
|
{{{2}}}
|
The text to be inserted after the parameter name and the pipe symbol (|). Leave blank to display only the pipe symbol.
|
{{Param||}} {{Param|color|}} {{Param|color|initial}} |
{{{1|}}} {{{color|}}} {{{color|initial}}}
|
Other Examples
{{Param||}}→ {{{1|}}}{{Param|2=}}→ {{{1|}}}
{{Param||text}}→ {{{1|text}}}{{Param|2=text}}→ {{{1|text}}}
{{Param|foo}}→ {{{foo}}}{{Param|foo|bar}}→ {{{foo|bar}}}{{Param|foo|{{Param|bar}}}}→ {{{foo|{{{bar}}}}}}{{Param|foo|{{Param|bar|{{Param|baz|derp}}}}}}→ {{{foo|{{{bar|{{{baz|derp}}}}}}}}}