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) (Blanked) |
Deprecated (talk | contribs) (Test) |
||
Line 1: | Line 1: | ||
<noinclude> | |||
{{lang|Template:KV}} | |||
This template is used to generate Keyvalue definitions on entity pages. | |||
== Basic usage == | |||
<nowiki>{{KV|<name>|<variable type>|<description>}}</nowiki> | |||
{{note|Don't forget to use [[Template:=]] to escape any "{{=}}" characters in the text.}} | |||
== Named parameters == | |||
{| class=standard-table | |||
! 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>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>int</code> || The internal/engine name for this Keyvalue. || <code><nowiki>{{KV|Name|string|The name that other entities refer to this entity by.|int=targetname}}</nowiki></code> || {{KV|Name|string|The name that other entities refer to this entity by.|int=targetname}} | |||
|- | |||
| <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>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>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>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...}} | |||
|} | |||
== See also == | |||
* [[Template:IO]] | |||
* [[Template:MatParam]] | |||
<hr> | |||
</noinclude>; {{#if: {{{deprecated|}}} | <del> }}{{{1}}} {{#if: {{{int|}}} | <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|}}} | {{{{{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> | |||
[[Category:FGD Templates]] | |||
</noinclude> |
Revision as of 16:06, 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|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|boolean|Because I'm not there!|nofgd=1}} |
|
int |
The internal/engine name for this Keyvalue. | {{KV|Name|string|The name that other entities refer to this entity by.|int=targetname}} |
|
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}} |
|
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}} |
|
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}} |
|
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...}} |
See also
- {{{1}}}