Template:KV:zh-cn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Fix that lang template)
m (Fix unnecessary return)
Line 30: Line 30:


<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|}}} | &nbsp;{{{{{since}}} add}} }} {{#if: {{{only|}}} | &nbsp;{{{{{only}}} only}} }} {{#if: {{{also|}}} | &nbsp;{{{{{also}}} also}} }} {{#if: {{{nofgd|}}} | &nbsp;{{Not in FGD}} }} {{#if: {{{deprecated|}}} | &nbsp;{{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|}}} | &nbsp;{{{{{since}}} add}} }} {{#if: {{{only|}}} | &nbsp;{{{{{only}}} only}} }} {{#if: {{{also|}}} | &nbsp;{{{{{also}}} also}} }} {{#if: {{{nofgd|}}} | &nbsp;{{Not in FGD}} }} {{#if: {{{deprecated|}}} | &nbsp;{{obs}} }}
: {{#if: {{{deprecated|}}} | 已作废。&nbsp; }} {{#if: {{{3|}}} | {{{3}}} }}<noinclude>
: {{#if: {{{deprecated|}}} | 已作废。&nbsp; }} {{#if: {{{3|}}} | {{{3}}} }}
<noinclude>
[[Category:FGD Templates:zh-cn]]
[[Category:FGD Templates:zh-cn]]
</noinclude>
</noinclude>

Revision as of 00:27, 23 January 2020

本模板是用于实体页面生成键值定义的。

基本用法

{{KV:zh-cn|名称|变量类型|描述}}

Template:Note:zh-cn

预设的参数

参数 描述 例子 预览
deprecated 该键值已作废,不宜继续使用。 {{KV:zh-cn|I'm deprecated|字符串|真的,不要再用我啦!|deprecated=1}}
I'm deprecated <字符串 >  Obsolete
已作废。  真的,不要再用我啦!
nofgd 该键值没有包含在官方FGD中。 {{KV:zh-cn|Add me to the FGD|布尔值|因为我不在那里!|nofgd=1}}
Add me to the FGD <布尔值 >  !FGD
因为我不在那里!
since 该键值自该游戏起可以使用。它使用了模板{{<game> add}}。 {{KV:zh-cn|I like Alien Swarm|整数|我也可以在Portal 2中使用!|since=AS}}
I like Alien Swarm <整数 >  Template:AS add
我也可以在Portal 2中使用!
also 该材质参数在该游戏中也可以使用。它使用了模板{{<game> also}}。 {{KV:zh-cn|I like Alien Swarm|整数|我也可以在Garry's Mod中使用!|since=AS|also=GMOD}}
I like Alien Swarm <整数 >  Template:AS add  Template:GMOD also
我也可以在Garry's Mod中使用!
only 该材质参数只能在该游戏中使用。它使用了模板{{<game> only}}。 {{KV:zh-cn|I love Alien Swarm|整数|我只能在Alien Swarm中使用!|only=AS}}
I love Alien Swarm <整数 >  Template:AS only
我只能在Alien Swarm中使用!
to 使用这个来定义一系列名字很相似的键值。 {{KV:zh-cn|Sound 01|to=Sound 24|字符串|我们有许多……}}
Sound 01 Sound 24 <字符串 >
我们有许多……

参见


{{{1}}}