Template:Tpl error: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{doc}}
{{doc}}
<includeonly><onlyinclude><code style="background-color:rgb(130 60 60 / 16%); border-radius:.3em; white-space:nowrap; color:rgb(255 100 100); padding:.15em .3em">{{#switch:{{{type|}}}
<includeonly><onlyinclude><code style="background-color:rgb(130 60 60 / 16%) !important; border-radius:.3em; white-space:nowrap; color:rgb(255 100 100) !important; padding:.15em .3em">{{#switch:{{{type|}}}


| #default = <nowiki>{{</nowiki>{{{1|}}}<nowiki>}}</nowiki>
| #default = <nowiki>{{</nowiki>{{{1|}}}<nowiki>}}</nowiki>

Revision as of 04:50, 17 September 2025

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.

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.