Template:KV BaseEntity/doc: Difference between revisions
Jump to navigation
Jump to search
Note:If you want to edit something on this template, please make sure you edit it in both places. Per-game keyvalues are duplicated, for technical reasons. Also see FGD Template Prototype.
Note:Some
Show info specific to a game
(Page makeover, can't be summarized here) |
m (see also, and formatting fix for code tag) |
||
Line 5: | Line 5: | ||
== Usage == | == Usage == | ||
All parameters for this template: | All parameters for this template: | ||
*<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>l4d2</code> - Include info specific to {{l4d2}} ([[VScript|VScripts]]) | *<code>l4d2</code>- Include info specific to {{l4d2}} ([[VScript|VScripts]]) | ||
*<code>csgo</code> - Include info specific to {{csgo}} (Auto-aim targets) | *<code>csgo</code>- Include info specific to {{csgo}} (Auto-aim targets) | ||
*<code>brush</code> - Include info specific to all sorts of brushes. For extra keys applicable ''only'' to visible brushes, use [[:Template:KV visiblebrush]] in conjunction. | *<code>brush</code>- Include info specific to all sorts of brushes. For extra keys applicable ''only'' to visible brushes, use [[:Template:KV visiblebrush]] in conjunction. | ||
{{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> | ||
*<code>l4d</code> - <strike>(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.)</strike> | *<code>l4d</code>- <strike>(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.)</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> | *<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: }} | ||
These must be used in a specific syntax; All the parameters must be given a value of 1, like for example:<code> | These must be used in a specific syntax; All the parameters must be given a value of 1, like for example:<code>l4d2=1</code>for {{l4d2}} specific info. Refer to the [[#Examples|Examples]] section. | ||
== Examples == | == Examples == | ||
=== Show info specific to a game {{csgo}} === | === Show info specific to a game {{csgo}} === | ||
Line 41: | Line 41: | ||
{{KV BaseEntity}} | {{KV BaseEntity}} | ||
|will:}} | |will:}} | ||
==See Also== | |||
* {{tl|KV BaseAnimating}} | |||
* {{tl|I BaseEntity}} | |||
* {{tl|I BaseAnimating}} | |||
---- | ---- | ||
{{KV BaseEntity}} | {{KV BaseEntity}} |
Revision as of 12:14, 27 April 2021

This is a documentation subpage for Template:KV BaseEntity.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Info holder for all keyvalues that inherit theCBaseEntity class. Parameters are vital to display the appropiate info, because new games have added new features throughout the years. See Help:Templates for more info on named parameters.


CBaseEntity
keyvalues are not covered here. See the talk page.Usage
All parameters for this template:
base
- Shows only information relevant to when it was initially added for the first timel4d2
- Include info specific to(VScripts)
csgo
- Include info specific to(Auto-aim targets)
brush
- Include info specific to all sorts of brushes. For extra keys applicable only to visible brushes, use Template:KV visiblebrush in conjunction.
Show Deprecated:
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.)
These must be used in a specific syntax; All the parameters must be given a value of 1, like for example:l4d2=1
for specific info. Refer to the Examples section.
Examples
Show info specific to a game 
This makes information relevant only to be displayed.
{{KV BaseEntity|csgo=1}}
will:
Show info for its base
Information relevant only to this key at / before is displayed.
{{KV BaseEntity|base=1}}
will:
Extra brush related keyvalues are displayed with this.
{{KV BaseEntity|brush=1}}
will:
Show information for all games
Shows every game information for this key that this template can display. (Except for brush related)
{{KV BaseEntity}}
will:
See Also
{{KV BaseAnimating}}
{{I BaseEntity}}
{{I BaseAnimating}}