Template:KV TeamNum

From Valve Developer Community
Jump to: navigation, search


Template icon Template documentation[view] [edit] [history] [purge]

Display information for theTeamNumorteamnumberkey 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

These must be used in a specific syntax! - ALL parameters must be given a value of 1, like:tf2=1. Only one game parameter can be used at once.

{{KV TeamNum|tf2=1}}

Parameters

If you leave the parameter field empty (using no arguments), the template will automatically fallback to displaying information from ALL games.

All parameters for this template:

  • base- No game specific information are displayed, and base engine features only. (The Source 2013Source 2013 / <Source><Source><Source> iteration engine)
  • tf2 - Set template KVs specific to Team Fortress 2
  • l4d - Set template KVs specific to Left 4 Dead
  • l4d2 - Set template KVs specific to Left 4 Dead 2
  • css - Set template KVs specific to Counter-Strike: Source
  • csgo - Set template KVs specific to Counter-Strike: Global Offensive


Refer to the Examples section for samples.

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 base engine are displayed. (Source 2013Source 2013 / <Source><Source><Source>)

{{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
  • 2: Red Team Fortress 2, Survivors Left 4 Dead Left 4 Dead 2, Terrorists Counter-Strike: Source Counter-Strike: Global Offensive
  • 3: Blue Team Fortress 2, Infected Left 4 Dead Left 4 Dead 2, Counter-Terrorists Counter-Strike: Source Counter-Strike: Global Offensive

See Also