Template:Altnames

From Valve Developer Community
Jump to navigation Jump to search
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)
Template Documentation



Icon-translate.pngDocumentation language
...
Inline note templates ViewDiscuss
Template Pages using it
(As of 11 April 2026)
{{note}} 6,621+
{{warning}} 1,492+
{{BugNotice}} 1,299+
{{tip}} 1,728
{{todo}} 1,990
{{inline note}} 3,641
{{confirm}} 801
{{question}} 18
{{fix}} 202
{{important}} 1,390
{{clarify}} 208
{{elaborate}} 26
{{main}} 191
{{distinguish}} 97
{{workaround}} 217
{{seealso}} 1,540
{{when}} 2
{{where}} 4
2 (excl. user & template pages)
{{which}} 10
{{why}} 38
{{idea}} 25
{{placementTip}} 54
{{codenote}} 77
{{altnames}} 60
{{deprecated}} 126
{{how}} 83
{{example}} 89
{{confusion}} 121
{{thanks}} 7
{{code Fix}} 29 + 36 (65)
{{vote}} 4
{{wikinote}} 30
{{BasedEnt}} 4
Approximately based on "Pages transcluded on"
in Page information. May include template and user pages.
It may not be accurate and might be quickly outdated.

This template is intended to be used when multiple entity classnames are tied to single C++ class and they are also usable interchangeably with no or very little side effects, especially those that do not appear to serve any purpose other than deprecation.

Best example of this is prop_physics and physics_prop because physics_prop's classname keyvalue is also fixed-up to prop_physics immediately as it spawns before any classname checks can happen. But prop_physics_override which is also fixed-up shortly after spawning to prop_physics would not be marked as altname because the usage of the entity differs and there are checks in code that allowed it to spawn despite the model not having prop data.

Usage

Parameters

  • {{{name1}}} to {{{name8}}} - The alternate classnames.
  • {{{misc}}} - Optional: Use to display additional text in the same note.

Examples

{{altnames|name1=x|name2=y|name3=z}} would return as:

AltNames.pngAltNames: This entity is also tied to xy, and z.

{{altnames|name1=x|game={{portal|2}}}} would return as:

AltNames.pngAltNames: In Portal Portal, this entity is also tied to x.