Template:Tpl error/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
Line 10: Line 10:
! Preview
! Preview
|-
|-
| style="text-align:center" | {{Code|preset=1|{{param|1}}}}
| style="text-align:center" | <code>{{param|1}}</code>
| Name of the current template.
| Name of the current template.
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{tpl error|Gordon Freeman}}</nowiki>}}
| style="padding:.2em .5em" | <pre style="margin:0">{{tpl error|Gordon Freeman}}</pre>
| style="text-align:center; padding:.2em .5em" | {{Capsule|{{tpl error|Gordon Freeman}}}}
| style="background-color:#262626; text-align:center; padding:.2em .5em" | {{tpl error|Gordon Freeman}}
|-
|-
| style="text-align:center" | {{Code|preset=1|{{param|2}}}}
| style="text-align:center" | <code>{{param|2}}</code>
| Name of another template. Used in different types of errors.
| Name of another template. Used in different types of errors.
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{tpl error|Gordon Freeman|Alyx Vance}}</nowiki>}}
| style="padding:.2em .5em" | <pre style="margin:0">{{tpl error|Gordon Freeman|Alyx Vance}}</pre>
| style="text-align:center" | See [[#Type]].
| style="background-color:#262626; text-align:center" | See [[#Type]].
|-
|-
| id="Type" style="text-align:center" | {{Code|preset=1|{{param|type}}}}
| id="Type" style="text-align:center" | <code>{{param|type}}</code>
| Error type. List of available types:
| Error type. List of available types:
* deprecated - for cases when the template is deprecated but has not been deleted;
* deprecated - for cases when the template is deprecated but has not been deleted;
* Default - for cases where no value was specified in the template.
* Default - for cases where no value was specified in the template.
| style="padding:.2em .5em" | {{CodeBlock|<nowiki>{{tpl error|type = deprecated|Gordon Freeman|Alyx Vance}}</nowiki>}}
| style="padding:.2em .5em" | <pre style="margin:0">{{tpl error|type = deprecated|Gordon Freeman|Alyx Vance}}</pre>
| style="text-align:center; padding:.2em .5em" | {{Capsule|{{tpl error|type = deprecated|Gordon Freeman|Alyx Vance}}}}
| style="background-color:#262626; text-align:center; padding:.2em .5em" | {{Capsule|{{tpl error|type = deprecated|Gordon Freeman|Alyx Vance}}}}
|}
|}

Latest revision as of 04:53, 17 September 2025

Edit-copy.png
This is a documentation subpage for Template:Tpl error.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

A message indicating an error in the template.

Parameters and Examples

Parameter Description Example Preview
{{{1}}} Name of the current template.
{{tpl error|Gordon Freeman}}
{{Gordon Freeman}}
{{{2}}} Name of another template. Used in different types of errors.
{{tpl error|Gordon Freeman|Alyx Vance}}
See #Type.
{{{type}}} Error type. List of available types:
  • deprecated - for cases when the template is deprecated but has not been deleted;
  • Default - for cases where no value was specified in the template.
{{tpl error|type = deprecated|Gordon Freeman|Alyx Vance}}
{{Gordon Freeman}} is deprecated. Use {{Alyx Vance}} instead.