Template:KeyValue/doc: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		 
 Note:Don't forget to use Template:= to escape any "=" characters in the text.
Note:Don't forget to use Template:= to escape any "=" characters in the text.
		
	
| Deprecated (talk | contribs)  (Documentation subpage for Template:KV) |  (Updated documentation) | ||
| Line 18: | Line 18: | ||
| | <code>intn</code> || The internal/engine name for this Keyvalue. || <code><nowiki>{{KV|Name|intn=targetname|string|The name that other entities refer to this entity by.}}</nowiki></code> || {{KV|Name|intn=targetname|string|The name that other entities refer to this entity by.}} | | <code>intn</code> || The internal/engine name for this Keyvalue. || <code><nowiki>{{KV|Name|intn=targetname|string|The name that other entities refer to this entity by.}}</nowiki></code> || {{KV|Name|intn=targetname|string|The name that other entities refer to this entity by.}} | ||
| |- | |- | ||
| | <code>since</code> || This Keyvalue is available since this game.  | | <code>since</code> || This Keyvalue is available since this game. Can use either <nowiki>{{<game> add}}</nowiki> or {{tl|Since}} templates. || <code><nowiki>{{KV|I like Alien Swarm|intn=likealienswarm|bool|I'm available in Portal 2, too!|since=AS}}</nowiki></code> || {{KV|I like Alien Swarm|intn=likealienswarm|bool|I'm available in Portal 2, too!|since=AS}} | ||
| |- | |- | ||
| | <code>also</code> || This Keyvalue is also available in this game.  | | <code>also</code> || This Keyvalue is also available in this game. Can use either <nowiki>{{<game> also}}</nowiki> or {{tl|Also}} templates. || <code><nowiki>{{KV|I like Alien Swarm|intn=likealienswarm|bool|I'm also available in Garry's Mod!|since=AS|also=GMOD}}</nowiki></code> || {{KV|I like Alien Swarm|intn=likealienswarm|bool|I'm also available in Garry's Mod!|since=AS|also=GMOD}} | ||
| |- | |- | ||
| | <code>only</code> || This Keyvalue is available only in this game.  | | <code>only</code> || This Keyvalue is available only in this game. Can use either <nowiki>{{<game> only}}</nowiki> or {{tl|Only}} templates. || <code><nowiki>{{KV|I love Alien Swarm|intn=lovealienswarm|integer|I'm only available in Alien Swarm!|only=AS}}</nowiki></code> || {{KV|I love Alien Swarm|intn=lovealienswarm|integer|I'm only available in Alien Swarm!|only=AS}} | ||
| |- | |||
| | <code>removed</code> || This Keyvalue was removed in this game. Only uses the template {{tl|Removed}}. || <code><nowiki>{{KV|I love Alien Swarm|intn=lovealienswarm|integer|I'm available in Portal 2 too, but not in CS:GO!|since={{as}}|removed={{csgo}}}}</nowiki></code> || {{KV|I love Alien Swarm|intn=lovealienswarm|integer|I'm available in Portal 2 too, but not in CS:GO!|since={{as}}|removed={{csgo}}}} | |||
| |- | |- | ||
| | <code>to</code> || Use this to define a set of Keyvalues with very similar names. Use <code>intn2</code> for the second keyvalue's internal name. || <code><nowiki>{{KV|Sound 01|intn=Sound01|to=Sound 24|intn2=Sound24|string|There are many of us...}}</nowiki></code> || {{KV|Sound 01|intn=Sound01|to=Sound 24|intn2=Sound24|string|There are many of us...}} | | <code>to</code> || Use this to define a set of Keyvalues with very similar names. Use <code>intn2</code> for the second keyvalue's internal name. || <code><nowiki>{{KV|Sound 01|intn=Sound01|to=Sound 24|intn2=Sound24|string|There are many of us...}}</nowiki></code> || {{KV|Sound 01|intn=Sound01|to=Sound 24|intn2=Sound24|string|There are many of us...}} | ||
Revision as of 08:57, 8 May 2020

This is a documentation subpage for Template:KeyValue. 
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.
This template is used to generate Keyvalue definitions on entity pages.
Usage
{{KV|<name>|<variable type>|<description>}}
 Note:Don't forget to use Template:= to escape any "=" characters in the text.
Note:Don't forget to use Template:= to escape any "=" characters in the text.Examples and Parameters
| Parameter | Description | Example | Preview | 
|---|---|---|---|
| deprecated | This Keyvalue is deprecated and should no longer be used. | {{KV|I'm deprecated|intn=deprecated|string|Really, don't use me anymore!|deprecated=1}} | 
 | 
| nofgd | This Keyvalue isn't available in the official FGD. | {{KV|Add me to the FGD|intn=addfgd|boolean|Because I'm not there!|nofgd=1}} | |
| intn | The internal/engine name for this Keyvalue. | {{KV|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. | {{KV|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. | {{KV|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. | {{KV|I love Alien Swarm|intn=lovealienswarm|integer|I'm only available in Alien Swarm!|only=AS}} | 
 | 
| removed | This Keyvalue was removed in this game. Only uses the template {{Removed}}. | {{KV|I love Alien Swarm|intn=lovealienswarm|integer|I'm available in Portal 2 too, but not in CS:GO!|since={{as}}|removed={{csgo}}}} | |
| to | Use this to define a set of Keyvalues with very similar names. Use intn2for the second keyvalue's internal name. | {{KV|Sound 01|intn=Sound01|to=Sound 24|intn2=Sound24|string|There are many of us...}} | 
 | 
See also



