User:Deprecated/Template:DeprecatedTest: Difference between revisions
Jump to navigation
Jump to search
Note:Don't forget to use Template:= to escape any "=" characters in the text.
Deprecated (talk | contribs) (Test2) |
Deprecated (talk | contribs) (Test3) |
||
Line 12: | Line 12: | ||
! Parameter || Description || Example || Preview | ! Parameter || Description || Example || Preview | ||
|- | |- | ||
| <code>deprecated</code> || This Keyvalue is deprecated and should no longer be used. || <code><nowiki>{{KV|I'm deprecated|string|Really, don't use me anymore!|deprecated=1}}</nowiki></code> || {{KV|I'm deprecated|string|Really, don't use me anymore!|deprecated=1}} | | <code>deprecated</code> || This Keyvalue is deprecated and should no longer be used. || <code><nowiki>{{KV|I'm deprecated|intn=deprecated|string|Really, don't use me anymore!|deprecated=1}}</nowiki></code> || {{KV|I'm deprecated|intn=deprecated|string|Really, don't use me anymore!|deprecated=1}} | ||
|- | |- | ||
| <code>nofgd</code> || This Keyvalue isn't available in the official FGD. || <code><nowiki>{{KV|Add me to the FGD|boolean|Because I'm not there!|nofgd=1}}</nowiki></code> || {{KV|Add me to the FGD|boolean|Because I'm not there!|nofgd=1}} | | <code>nofgd</code> || This Keyvalue isn't available in the official FGD. || <code><nowiki>{{KV|Add me to the FGD|intn=addfgd|boolean|Because I'm not there!|nofgd=1}}</nowiki></code> || {{KV|Add me to the FGD|intn=addfgd|boolean|Because I'm not there!|nofgd=1}} | ||
|- | |- | ||
| <code> | | <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. Uses the template <nowiki>{{<game> add}}</nowiki>. || <code><nowiki>{{KV|I like Alien Swarm|bool|I'm available in Portal 2, too!|since=AS}}</nowiki></code> || {{KV|I like Alien Swarm|bool|I'm available in Portal 2, too!|since=AS}} | | <code>since</code> || This Keyvalue is available since this game. Uses the template <nowiki>{{<game> add}}</nowiki>. || <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. Uses the template <nowiki>{{<game> also}}</nowiki>. || <code><nowiki>{{KV|I like Alien Swarm|bool|I'm also available in Garry's Mod!|since=AS|also=GMOD}}</nowiki></code> || {{KV|I like Alien Swarm|bool|I'm also available in Garry's Mod!|since=AS|also=GMOD}} | | <code>also</code> || This Keyvalue is also available in this game. Uses the template <nowiki>{{<game> also}}</nowiki>. || <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. Uses the template <nowiki>{{<game> only}}</nowiki>. || <code><nowiki>{{KV|I love Alien Swarm|integer|I'm only available in Alien Swarm!|only=AS}}</nowiki></code> || {{KV|I love Alien Swarm|integer|I'm only available in Alien Swarm!|only=AS}} | | <code>only</code> || This Keyvalue is available only in this game. Uses the template <nowiki>{{<game> only}}</nowiki>. || <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>to</code> || Use this to define a set of Keyvalues with very similar names. || <code><nowiki>{{KV|Sound 01|to=Sound 24|string|There are many of us...}}</nowiki></code> || {{KV|Sound 01|to=Sound 24|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...}} | ||
|} | |} | ||
Line 32: | Line 32: | ||
<hr> | <hr> | ||
</noinclude>; {{#if: {{{deprecated|}}} | <del> }}{{{1}}} {{#if: {{{ | </noinclude>; {{#if: {{{deprecated|}}} | <del> }}{{{1}}} {{#if: {{{intn|}}} | <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.|({{{intn}}})}}</code></span> }} {{#if: {{{to|}}}{{{intn2|}}} | <span style="font-weight: normal;">to</span> {{{to}}}{{#if:{{{intn2|}}} | <span style="font-weight: normal;"><code>({{{intn2}}})</code></span>}} }} {{#if: {{{2|}}} | {{KV Type|{{{2}}}}} }}{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{since|}}} | {{{{{since}}} add}} }}{{#if: {{{only|}}} | {{{{{only}}} only}} }}{{#if: {{{also|}}} | {{{{{also}}} also}} }}{{#if: {{{nofgd|}}} | {{Not in FGD}} }}{{#if: {{{deprecated|}}} | {{obs}} }} | ||
: {{#if: {{{deprecated|}}} | Deprecated. }}{{#if: {{{3|}}} | {{{3}}}}}<noinclude> | : {{#if: {{{deprecated|}}} | Deprecated. }}{{#if: {{{3|}}} | {{{3}}}}}<noinclude> | ||
[[Category:FGD Templates]] | [[Category:FGD Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 16:53, 14 January 2020

This template is used to generate Keyvalue definitions on entity pages.
Basic usage
{{KV|<name>|<variable type>|<description>}}

Named 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. Uses the template {{<game> add}}. | {{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. Uses the template {{<game> also}}. | {{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. Uses the template {{<game> only}}. | {{KV|I love Alien Swarm|intn=lovealienswarm|integer|I'm only available in Alien Swarm!|only=AS}} |
|
to |
Use this to define a set of Keyvalues with very similar names. Use intn2 for the second keyvalue's internal name. |
{{KV|Sound 01|intn=Sound01|to=Sound 24|intn2=Sound24|string|There are many of us...}} |
|
See also
- {{{1}}}