User:Deprecated/Template:DeprecatedTest: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Test)
(Test2)
Line 32: Line 32:


<hr>
<hr>
</noinclude>; {{#if: {{{deprecated|}}} | <del> }}{{{1}}} {{#if: {{{int|}}} | &nbsp;<span style="font-weight: normal;"><code>({{{int}}})</code></span> }} {{#if: {{{to|}}} | <span style="font-weight: normal;">to</span> {{{to}}} }} {{#if: {{{2|}}} | {{KV Type|{{{2}}}}} }}{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{since|}}} | &nbsp;{{{{{since}}} add}} }}{{#if: {{{only|}}} | &nbsp;{{{{{only}}} only}} }}{{#if: {{{also|}}} | &nbsp;{{{{{also}}} also}} }}{{#if: {{{nofgd|}}} | &nbsp;{{Not in FGD}} }}{{#if: {{{deprecated|}}} | &nbsp;{{obs}} }}
</noinclude>; {{#if: {{{deprecated|}}} | <del> }}{{{1}}} {{#if: {{{int|}}} | <span style="font-weight: normal;"><code>{{Hover info|dotted=no|The internal name for this keyvalue; this is what the engine knows this keyvalue as. These display in Hammer for keyvalues when SmartEdit is disabled, or for keyvalues not in the FGD.|({{{int}}})}}</code></span> }} {{#if: {{{to|}}} | <span style="font-weight: normal;">to</span> {{{to}}} }} {{#if: {{{2|}}} | {{KV Type|{{{2}}}}} }}{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{since|}}} | &nbsp;{{{{{since}}} add}} }}{{#if: {{{only|}}} | &nbsp;{{{{{only}}} only}} }}{{#if: {{{also|}}} | &nbsp;{{{{{also}}} also}} }}{{#if: {{{nofgd|}}} | &nbsp;{{Not in FGD}} }}{{#if: {{{deprecated|}}} | &nbsp;{{obs}} }}
: {{#if: {{{deprecated|}}} | Deprecated.&nbsp; }}{{#if: {{{3|}}} | {{{3}}}}}<noinclude>
: {{#if: {{{deprecated|}}} | Deprecated.&nbsp; }}{{#if: {{{3|}}} | {{{3}}}}}<noinclude>
[[Category:FGD Templates]]
[[Category:FGD Templates]]
</noinclude>
</noinclude>

Revision as of 16:10, 14 January 2020

English (en)

This template is used to generate Keyvalue definitions on entity pages.

Basic usage

{{KV|<name>|<variable type>|<description>}}

Note.pngNote:Don't forget to use Template:= to escape any "=" characters in the text.

Named parameters

Parameter Description Example Preview
deprecated This Keyvalue is deprecated and should no longer be used. {{KV|I'm deprecated|string|Really, don't use me anymore!|deprecated=1}}
I'm deprecated ([todo internal name (i)]) <string> Obsolete
Deprecated.
Really, don't use me anymore!
nofgd This Keyvalue isn't available in the official FGD. {{KV|Add me to the FGD|boolean|Because I'm not there!|nofgd=1}}
Add me to the FGD ([todo internal name (i)]) <boolean> !FGD
Because I'm not there!
int The internal/engine name for this Keyvalue. {{KV|Name|string|The name that other entities refer to this entity by.|int=targetname}}
Name ([todo internal name (i)]) <string>
The name that other entities refer to this entity by.
since This Keyvalue is available since this game. Uses the template {{<game> add}}. {{KV|I like Alien Swarm|bool|I'm available in Portal 2, too!|since=AS}}
I like Alien Swarm ([todo internal name (i)]) <boolean> (in all games since Alien Swarm)
I'm available in Portal 2, too!
also This Keyvalue is also available in this game. Uses the template {{<game> also}}. {{KV|I like Alien Swarm|bool|I'm also available in Garry's Mod!|since=AS|also=GMOD}}
I like Alien Swarm ([todo internal name (i)]) <boolean> (in all games since Alien Swarm) (also in Garry's Mod)
I'm also available in Garry's Mod!
only This Keyvalue is available only in this game. Uses the template {{<game> only}}. {{KV|I love Alien Swarm|integer|I'm only available in Alien Swarm!|only=AS}}
I love Alien Swarm ([todo internal name (i)]) <integer> (only in Alien Swarm)
I'm only available in Alien Swarm!
to Use this to define a set of Keyvalues with very similar names. {{KV|Sound 01|to=Sound 24|string|There are many of us...}}
Sound 01 ([todo internal name (i)]) to Sound 24 <string>
There are many of us...

See also


{{{1}}}