Template:KV TeamNum/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (oops, wrong case for the case sensitive template (Template:EP2 --> Template:Ep2))
m (Various adjustments to the docs)
Line 4: Line 4:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page.) -->
<!-- Please place categories where indicated at the bottom of this page.) -->
Display information for the<code>TeamNum</code>key in a a consistent and easy to use manner. This key exists for all entities inheriting the{{ent|CBaseEntity}}class, 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.
Display information for the<code style="color:#E5E5E5; background-color: #202020;">TeamNum</code>or<code style="color:#E5E5E5; background-color: #202020;">teamnumber</code>key in a a consistent and easy to use manner. This key exists for all entities inheriting the{{ent|CBaseEntity}}class, 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==
==Usage==
Parameters of this must be used for all pages to display information properly. They are as follow:
These must be used in a specific syntax! - ALL parameters must be given a value of 1, like:<code>tf2=1</code>. ''Only one'' game parameter can be used at once.
*<code>base</code> - Shows only information relevant to when it was initially added for the first time
<pre>
*<code>tf2</code> - Include info specific to {{tf2}}
{{KV TeamNum|tf2=1}}
*<code>l4d</code> - Include info specific to {{l4d}}
</pre>
*<code>l4d2</code> - Include info specific to {{l4d2}}
 
*<code>css</code> - Include info specific to {{css}}
=== Parameters ===
*<code>csgo</code> - Include info specific to {{csgo}}
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:
*<code>base</code>- No game specific information are displayed, and base engine features only. (The {{src13}} / {{src13mp}} iteration engine)
*<code>tf2</code> - Set template KVs specific to {{tf2}}
*<code>l4d</code> - Set template KVs specific to {{l4d}}
*<code>l4d2</code> - Set template KVs specific to {{l4d2}}
*<code>css</code> - Set template KVs specific to {{css}}
*<code>csgo</code> - Set template KVs specific to {{csgo}}


These must be used in a specific syntax; All the parameters must be given a value of 1, like for example:<code>tf2=1</code>for {{tf2}} specific info. Refer to the [[#Examples|Examples]] section.
These must be used in a specific syntax; All the parameters must be given a value of 1, like for example:<code>tf2=1</code>for {{tf2}} specific info. Refer to the [[#Examples|Examples]] section.
Line 22: Line 31:
{{KV TeamNum|l4d=1}}
{{KV TeamNum|l4d=1}}
<h3>Show info for its base</h3>
<h3>Show info for its base</h3>
Information relevant only to this key at / before {{Ep2}} is displayed.
Information relevant only to base engine are displayed. ({{src13}} / {{src13mp}})
<pre>{{KV TeamNum|base=1}}</pre>
<pre>{{KV TeamNum|base=1}}</pre>
{{KV TeamNum|base=1}}
{{KV TeamNum|base=1}}

Revision as of 04:16, 27 June 2021

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 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 2013 / Source 2013 Multiplayer 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

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

{{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}}