Template:KV TeamNum/doc: Difference between revisions
m (fixed formatting) |
(Changed the method of showing Examples, along with the parameters document method) |
||
Line 9: | Line 9: | ||
*<code>base</code> - Shows only information relevant to when it was initially added for the first time | *<code>base</code> - Shows only information relevant to when it was initially added for the first time | ||
*<code>tf2</code> - Include info specific to {{tf2}} | *<code>tf2</code> - Include info specific to {{tf2}} | ||
*<code>l4d</code> | *<code>l4d</code> - Include info specific to {{l4d}} | ||
*<code>css</code> | *<code>l4d2</code> - Include info specific to {{l4d2}} | ||
*<code>css</code> - Include info specific to {{css}} | |||
*<code>csgo</code> - Include info 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. | ||
==Examples== | ==Examples== | ||
< | <h3>Show info specific to a game {{l4d}}</h3> | ||
This makes information specific to {{l4d}} be displayed. | |||
<pre>{{KV TeamNum|l4d=1}}</pre> | |||
{{KV TeamNum|l4d=1}} | {{KV TeamNum|l4d=1}} | ||
< | <h3>Show info for its base</h3> | ||
Information relevant only to this key at / before {{EP2}} is displayed. | |||
<pre>{{KV TeamNum|base=1}}</pre> | |||
{{KV TeamNum|base=1}} | {{KV TeamNum|base=1}} | ||
< | <h3>Show information for '''all''' games</h3> | ||
Shows every game information for this key that this template can display. | |||
<pre>{{KV TeamNum}}</pre>will: | |||
{{KV TeamNum}} | {{KV TeamNum}} | ||
Revision as of 06:52, 19 April 2021

Don't forget to purge the contents of the base page upon creating or editing this subpage.
Display information for theTeamNum
key 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 timetf2
- Include info specific tol4d
- Include info specific tol4d2
- Include info specific tocss
- Include info specific tocsgo
- Include info specific to
These must be used in a specific syntax; All the parameters must be given a value of 1, like for example:tf2=1
for specific info. Refer to the Examples section.
Examples
Show info specific to a game 
This makes information specific to be displayed.
{{KV TeamNum|l4d=1}}
Show info for its base
Information relevant only to this key at / before Template:EP2 is displayed.
{{KV TeamNum|base=1}}
- 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:
- Initial Team (TeamNum, or teamnumber
) <choices>
- Which Team the entity belongs / is assigned to on spawn
- 0: None
- 1: Spectator, Spectator/Halloween Souls
- 2: RED
, Survivors
, Terrorists
, Marines (Team-based game modes only)
- 3: BLU/Robots
, Infected
, Counter-Terrorists
, Scientists (Team-based game modes only)
- 5: Halloween Bosses (only in
) !FGD
See Also
{{KV BaseEntity}}
{{I BaseEntity}}