From Valve Developer Community
Jump to navigation
Jump to search

Available doc translations
…
English
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
|
Description
|
Examples
|
Preview
|
{{{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 user-select: all, to quickly copy the parameter name.
|
|
{{{1}}} {{{}}} {{{type}}}
|
{{{2}}}
|
The text to be inserted after the parameter name and the pipe symbol (|). Leave blank to display only the pipe symbol.
|
|
{{{}}} {{{color}}} {{{colorinitial}}}
|
Other Examples
- {{Param||}} → {{{}}}
- {{Param|2=}} → {{{1}}}
- {{Param||text}} → {{{text}}}
- {{Param|2=text}} → {{{1text}}}
- {{Param|foo}} → {{{foo}}}
- {{Param|foo|bar}} → {{{foobar}}}
- {{Param|foo|{{Param|bar}}}} → {{{foo{{{bar}}}}}}
- {{Param|foo|{{Param|bar|{{Param|baz|derp}}}}}} → {{{foo{{{bar{{{bazderp}}}}}}}}}