Template:Tpl error/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
Line 8: Line 8:
! Description
! Description
! Example
! Example
! Preview
|-
|-
| style="text-align:center" | {{Code|preset=1|{{param|1}}}}
| style="text-align:center" | {{Code|preset=1|{{param|1}}}}

Latest revision as of 22:08, 21 September 2023

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.