Template:KV:zh-cn: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{lang}} | {{lang}} | ||
本模板是用于实体页面生成键值定义的。 | 本模板是用于实体页面生成键值定义的。 | ||
== 基本用法 == | == 基本用法 == | ||
<nowiki>{{KV|名称|变量类型|描述}}</nowiki> | <nowiki>{{KV:zh-cn|名称|变量类型|描述}}</nowiki> | ||
{{note:zh-cn|记得使用[[Template:=]]来转义所有的「{{=}}」字符。}} | {{note:zh-cn|记得使用[[Template:=]]来转义所有的「{{=}}」字符。}} | ||
Line 26: | Line 25: | ||
|} | |} | ||
== | == 参见 == | ||
* [[Template:MatParam:zh-cn|Template:MatParam]] | |||
* [[Template:IO]] | * [[Template:IO]] | ||
<hr> | <hr> | ||
</noinclude> | </noinclude> | ||
; {{#if: {{{deprecated|}}} | <del> }}{{{1}}} {{#if: {{{to|}}} | <span style="font-weight: normal;">到</span> {{{to}}} }} {{#if: {{{2|}}} | {{KV Type:zh-cn|{{{2}}}}} }}{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{since|}}} | {{自从{{{since}}}}} }}{{#if: {{{only|}}} | {{只能用于{{{only}}}}} }}{{#if: {{{also|}}} | {{也可以用于{{{also}}}}} }}{{#if: {{{nofgd|}}} | {{不在FGD中}} }}{{#if: {{{deprecated|}}} | {{obs}} }} | ; {{#if: {{{deprecated|}}} | <del> }} {{{1}}} {{#if: {{{to|}}} | <span style="font-weight: normal;">到</span> {{{to}}} }} {{#if: {{{2|}}} | {{KV Type:zh-cn|{{{2}}} }} }} {{#if: {{{deprecated|}}} | </del> }} {{#if: {{{since|}}} | {{自从{{{since}}} }} }} {{#if: {{{only|}}} | {{只能用于{{{only}}} }} }} {{#if: {{{also|}}} | {{也可以用于{{{also}}} }} }} {{#if: {{{nofgd|}}} | {{不在FGD中}} }} {{#if: {{{deprecated|}}} | {{obs}} }} | ||
: {{#if: {{{deprecated|}}} | 已作废。 }}{{#if: {{{3|}}} | {{{3}}} | {{todo:zh-cn|添加说明。}} }} | : {{#if: {{{deprecated|}}} | 已作废。 }} {{#if: {{{3|}}} | {{{3}}} | {{todo:zh-cn|添加说明。}} }} | ||
<noinclude> | <noinclude> | ||
[[Category:FGD Templates:zh-cn]] | [[Category:FGD Templates:zh-cn]] | ||
</noinclude> | </noinclude> |
Revision as of 06:46, 27 August 2019
本模板是用于实体页面生成键值定义的。
基本用法
{{KV:zh-cn|名称|变量类型|描述}}
预设的参数
参数 | 描述 | 例子 | 预览 |
---|---|---|---|
deprecated |
该键值已作废,不宜继续使用。 | {{KV|I'm deprecated|字符串|真的,不要再用我啦!|deprecated=1}} |
|
nofgd |
该键值没有包含在官方FGD中。 | {{KV|Add me to the FGD|布尔值|因为我不在那里!|nofgd=1}} |
|
since |
该键值自该游戏起可以使用。它使用了模板{{<game> add}}。 | {{KV|I like Alien Swarm|整数|我也可以在Portal 2中使用!|since=AS}} |
|
also |
该材质参数在该游戏中也可以使用。它使用了模板{{<game> also}}。 | {{KV|I like Alien Swarm|整数|我也可以在Garry's Mod中使用!|since=AS|also=GMOD}} |
|
only |
该材质参数只能在该游戏中使用。它使用了模板{{<game> only}}。 | {{KV|I love Alien Swarm|整数|我只能在Alien Swarm中使用!|only=AS}} |
|
to |
使用这个来定义一系列名字很相似的键值。 | {{KV|Sound 01|to=Sound 24|字符串|我们有许多……}} |
参见
- {{{1}}}
- Template:Todo:zh-cn