Template:KV TeamNum/doc: Difference between revisions
| m (→Usage:  Docs re-update #2, and using the {{code}} template instead of <code>) | m (accidental duplicate copy-paste) | ||
| Line 1: | Line 1: | ||
| <!--{{otherlang2 | <!--{{otherlang2 | ||
| |title= | |title= | ||
| Line 14: | Line 7: | ||
| ==Usage== | ==Usage== | ||
| These must be used in a specific syntax! - ALL parameters must be given a value of 1, like:{{code| | These must be used in a specific syntax! - ALL parameters must be given a value of 1, like:{{code|tf2=1|style=background-color:#202020; color:white; font-family:"Courier New";}}. ''Only one'' game parameter can be used at once. | ||
| <pre> | <pre> | ||
| {{KV TeamNum|tf2=1}} | {{KV TeamNum|tf2=1}} | ||
| Line 32: | Line 25: | ||
| Refer to the [[#Examples|Examples]] section for samples. | Refer to the [[#Examples|Examples]] section for samples. | ||
| ==Examples== | ==Examples== | ||
Revision as of 04:29, 27 June 2021

Don't forget to purge the contents of the base page upon creating or editing this subpage.
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:. 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 / / iteration engine) iteration engine)
- tf2- Set template KVs specific to 
- l4d- Set template KVs specific to 
- l4d2- Set template KVs specific to 
- css- Set template KVs specific to 
- csgo- Set template KVs specific to 
Refer to the Examples section for samples.
Examples
Show info specific to a game 
This makes information specific to  be displayed.
 be displayed.
{{KV TeamNum|l4d=1}}
- Initial Team (TeamNum) <integer choices>
- Which Team the entity belongs / is assigned to on spawn
Show info for its base
Information relevant only to base engine are displayed. ( /
 /  )
)
{{KV TeamNum|base=1}}
- Initial Team (TeamNum) <integer 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:
- Initial Team (TeamNum, or teamnumber  )  <integer choices> )  <integer choices>
- Which Team the entity belongs / is assigned to on spawn
- 0: None
- 1: Spectator, Spectator/Halloween Souls  
- 2: RED  , Survivors , Survivors  , Terrorists , Terrorists   , Marines (Team-based game modes only) , Marines (Team-based game modes only) 
- 3: BLU/Robots  , Infected , Infected  , Counter-Terrorists , Counter-Terrorists   , Scientists (Team-based game modes only) , Scientists (Team-based game modes only) 
- 5: Halloween Bosses (only in  ) !FGD ) !FGD
 
See Also
- {{KV BaseEntity}}
- {{I BaseEntity}}