Template:KV TeamNum/doc

From Valve Developer Community
< Template:KV TeamNum
Revision as of 06:52, 19 April 2021 by Orinuse (talk | contribs) (Changed the method of showing Examples, along with the parameters document method)
Jump to navigation Jump to search
Edit-copy.png
This is a documentation subpage for Template:KV TeamNum.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

Display information for theTeamNumkey in a a consistent and easy to use manner. This key exists for all entities inheriting theCBaseEntityclass, but since quite a considerable amount of entities aren't affected by it at all, or in a meaningful enough manner, the information for this key will be documented with this template.

Usage

Parameters of this must be used for all pages to display information properly. They are as follow:

  • base - Shows only information relevant to when it was initially added for the first time
  • tf2 - Include info specific to Team Fortress 2
  • l4d - Include info specific to Left 4 Dead
  • l4d2 - Include info specific to Left 4 Dead 2
  • css - Include info specific to Counter-Strike: Source
  • csgo - Include info specific to Counter-Strike: Global Offensive

These must be used in a specific syntax; All the parameters must be given a value of 1, like for example:tf2=1for Team Fortress 2 specific info. Refer to the Examples section.

Examples

Show info specific to a game Left 4 Dead

This makes information specific to Left 4 Dead be displayed.

{{KV TeamNum|l4d=1}}
TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator
  • 2: Survivors Left 4 Dead
  • 3: Infected Left 4 Dead

Show info for its base

Information relevant only to this key at / before Template:EP2 is displayed.

{{KV TeamNum|base=1}}
TeamNum:
Initial Team (TeamNum) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator

Show information for all games

Shows every game information for this key that this template can display.

{{KV TeamNum}}

will:

TeamNum:
Initial Team (TeamNum, or teamnumber Counter-Strike: Global Offensive) <choices>
Which Team the entity belongs / is assigned to on spawn
  • 0: None
  • 1: Spectator, Spectator/Halloween Souls Team Fortress 2
  • 2: RED Team Fortress 2, Survivors Left 4 Dead seriesLeft 4 Dead series, Terrorists Counter-Strike: Source Counter-Strike: Global Offensive, Marines (Team-based game modes only) Black Mesa
  • 3: BLU/Robots Team Fortress 2, Infected Left 4 Dead seriesLeft 4 Dead series, Counter-Terrorists Counter-Strike: Source Counter-Strike: Global Offensive, Scientists (Team-based game modes only) Black Mesa
  • 5: Halloween Bosses (only in Team Fortress 2) !FGD

See Also

  • {{KV BaseEntity}}
  • {{I BaseEntity}}