Template:KeyValue/sandbox
From Valve Developer Community
< Template:KeyValue
Jump to navigation
Jump to search
Revision as of 12:11, 28 August 2025 by BetweenReality (talk | contribs) (Fix Default Value formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This template is used to generate Keyvalue definitions on entity pages.
Usage
{{KeyValue/sandbox|<name>|<variable type>|<description>}}

Examples and Parameters
Parameter | Description | Example | Preview |
---|---|---|---|
deprecated |
This Keyvalue is deprecated and should no longer be used. | {{KeyValue/sandbox|I'm deprecated|intn=deprecated|string|Really, don't use me anymore!|deprecated=1}} |
|
nofgd |
This Keyvalue isn't available in the official FGD. | {{KeyValue/sandbox|Add me to the FGD|intn=addfgd|boolean|Because I'm not there!|nofgd=1}} |
|
intn |
The internal/engine name for this Keyvalue. Required; if absent, the page will display green todo text and applies Category:Pages with undefined internal keyvalue names. You can look for internal names in fgds. If internal name doesn't need to be specified use intn=0.
|
{{KeyValue/sandbox|Name|intn=targetname|string|The name that other entities refer to this entity by.}}
|
|
since |
This Keyvalue is available since this game. Can use either {{<game> add}} or {{Since}} templates. |
{{KeyValue/sandbox|I like Alien Swarm|intn=likealienswarm|bool|I'm available in Portal 2, too!|since=AS}} |
|
also |
This Keyvalue is also available in this game. Can use either {{<game> also}} or {{Also}} templates. |
{{KeyValue/sandbox|I like Alien Swarm|intn=likealienswarm|bool|I'm also available in Garry's Mod!|since=AS|also=GMOD}} |
|
only |
This Keyvalue is available only in this game. Can use either {{<game> only}} or {{Only}} templates. |
{{KeyValue/sandbox|I love Alien Swarm|intn=lovealienswarm|integer|I'm only available in Alien Swarm!|only=AS}} |
|
not |
This Keyvalue is not available just in this game. Only uses the template {{Not}} . |
{{KeyValue/sandbox|I love Alien Swarm|intn=lovealienswarm|integer|I'm available in Portal 2 too, but not in CS:GO!|since={{as}}|removed={{csgo}}}} |
|
removed |
This Keyvalue was removed in this game onwards. Only uses the template {{Removed}} . |
{{KeyValue/sandbox|I love Alien Swarm|intn=lovealienswarm|integer|Actually... I'm not here anymore since Portal 2, including CS:GO...|since={{as}}|removed={{csgo}}}} |
|
to |
Use this to define a set of Keyvalues with very similar names. Use intn2 for the second keyvalue's internal name. |
{{KeyValue/sandbox|Sound 01|intn=Sound01|to=Sound 24|intn2=Sound24|string|There are many of us...}} |
|
value |
Default value of the keyvalue. | {{KeyValue/sandbox|Default Value|intn=defaultvalue|integer|value=1|Why do I have such a small value? :(}} |
|
See also
The above documentation is transcluded from Template:KeyValue/sandbox/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Hidden categories: