Template:KV BaseEntity/doc: Difference between revisions
m (Base parameter's description corrected) |
(Rephrases of an amount of Documentation sentences; Link to the talk page's contents) |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
Info holder | Info holder of all relevant [[keyvalues]] inheriting the{{ent|CBaseEntity}} [[File:Cpp.png|link=Wikipedia:C++|alt=C++]] class. Template parameters are vital in displaying the appropiate info, because new games have added new features throughout the years. See [[Help:Templates]] for more info on named parameters. | ||
{{note| | |||
Not all{{ent|CBaseEntity}}keyvalues are not covered here. But you can see them all at the [[/Uncovered_Keyvalues|Uncovered Keyvalues]] page. | |||
{{note|After you edit this template, please make sure you also edit the targetted entity's page. ''Per-game'' keyvalues may be duplicated, for technical reasons. See also [[FGD Template Prototype]].}} | |||
== Usage == | == Usage == | ||
These must be used in a specific syntax! - ALL parameters must be given a value of 1, like:<code>l4d2=1</code>. ''Only one'' game parameter can be used at once. | |||
<pre> | |||
{{KV BaseEntity|l4d2=1}} | |||
</pre> | |||
=== Parameters === | |||
If you leave the parameter field empty (using no arguments), the template will automatically fallback to displaying keyvalues from '''ALL''' games. | |||
All parameters for this template: | All parameters for this template: | ||
*<code>base</code>- No game specific information, and base engine features only. | *<code>base</code>- No game specific information, and base engine features only. Usually relevant to the {{src13}} / {{src13mp}} iteration engine. | ||
*<code>l4d2</code>- | *<code>l4d2</code>- Set template KVs specific to {{l4d2}} ([[VScript|VScripts]]) | ||
*<code>csgo</code>- | *<code>csgo</code>- Set template KVs specific to {{csgo}} (Auto-aim targets) | ||
*<code>brush</code>- | *<code>brush</code>- Additionaly includes info specific to all sorts of brushes. For extra keys applicable ''only'' to visible brushes, use [[:Template:KV visiblebrush]] in conjunction. Can be used along a game parameter. | ||
{{ExpandBox|nostarterlinebreak=1| | {{ExpandBox|nostarterlinebreak=1| | ||
*<code>css</code>- <strike>(DEPRECATED 10/1/18: Previously used for a notice that was ''thought'' to apply to all entities in CS:S. The purpose of this now exists in [[Template:PreservedEnt]]. This is completely removed from the template and won't affect anything.) (DEPRECATED 24/3/2021 was brought back for info specific to the<code>teamnum</code>key. Use {{tl|KV TeamNum}} instead.)</strike> | *<code>css</code>- <strike>(DEPRECATED 10/1/18: Previously used for a notice that was ''thought'' to apply to all entities in CS:S. The purpose of this now exists in [[Template:PreservedEnt]]. This is completely removed from the template and won't affect anything.) (DEPRECATED 24/3/2021 was brought back for info specific to the<code>teamnum</code>key. Use {{tl|KV TeamNum}} instead.)</strike> | ||
Line 14: | Line 25: | ||
*<code>tf2</code>- <strike>(DEPRECATED 20/4/2021: Was only used to show<code>TeamNum</code>keyvalue's TF2 specific information. Use {{tl|KV TeamNum}} instead.)</strike> | *<code>tf2</code>- <strike>(DEPRECATED 20/4/2021: Was only used to show<code>TeamNum</code>keyvalue's TF2 specific information. Use {{tl|KV TeamNum}} instead.)</strike> | ||
| Show Deprecated: }} | | Show Deprecated: }} | ||
Refer to the [[#Examples|Examples]] section for samples. | Refer to the [[#Examples|Examples]] section for samples. |
Revision as of 19:23, 25 May 2021

Don't forget to purge the contents of the base page upon creating or editing this subpage.
Info holder of all relevant keyvalues inheriting theCBaseEntity class. Template parameters are vital in displaying the appropiate info, because new games have added new features throughout the years. See Help:Templates for more info on named parameters.
Not allCBaseEntitykeyvalues are not covered here. But you can see them all at the Uncovered Keyvalues page.

Usage
These must be used in a specific syntax! - ALL parameters must be given a value of 1, like:l4d2=1
. Only one game parameter can be used at once.
{{KV BaseEntity|l4d2=1}}
Parameters
If you leave the parameter field empty (using no arguments), the template will automatically fallback to displaying keyvalues from ALL games.
All parameters for this template:
base
- No game specific information, and base engine features only. Usually relevant to the/
iteration engine.
l4d2
- Set template KVs specific to(VScripts)
csgo
- Set template KVs specific to(Auto-aim targets)
brush
- Additionaly includes info specific to all sorts of brushes. For extra keys applicable only to visible brushes, use Template:KV visiblebrush in conjunction. Can be used along a game parameter.
css
-(DEPRECATED 10/1/18: Previously used for a notice that was thought to apply to all entities in CS:S. The purpose of this now exists in Template:PreservedEnt. This is completely removed from the template and won't affect anything.) (DEPRECATED 24/3/2021 was brought back for info specific to theteamnum
key. Use{{KV TeamNum}}
instead.)l4d
-(DEPRECATED 9/21/18: Found out these keyvalues only work with renderable things (cpu / gpu level). They have been migrated to visiblebrush and BaseAnimating KV templates. This is completely removed from the template and won't affect anything.)tf2
-(DEPRECATED 20/4/2021: Was only used to showTeamNum
keyvalue's TF2 specific information. Use{{KV TeamNum}}
instead.)
Refer to the Examples section for samples.
Examples
Show info specific to a game 
This makes information relevant only to be displayed.
{{KV BaseEntity|csgo=1}}
Show info for its base
Information relevant only to the entity's defaults are displayed. ( /
)
{{KV BaseEntity|base=1}}
Extra brush related keyvalues are displayed with this.
{{KV BaseEntity|brush=1}}
Show information for all games
Shows every game information for this key that this template can display. (Except for brush related)
{{KV BaseEntity}}
See Also
{{KV BaseAnimating}}
{{I BaseEntity}}
{{I BaseAnimating}}