Template:KV:zh-cn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Undo revision 245757 by 1416006136 (talk))
Tag: Undo
No edit summary
Line 1: Line 1:
<noinclude>
<includeonly>
; {{#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|}}} | &nbsp;<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.|({{{intn2}}})}}</code></span>}} }} {{#if: {{{2|}}} | {{KV Type|{{{2}}}}} }}{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{only|}}} | &nbsp;{{#ifexist: Template:{{{only}}} only | {{{{{only}}} only}} | {{only|{{{only}}}}}}} }}{{#if: {{{since|}}} | &nbsp;{{#ifexist: Template:{{{since}}} add | {{{{{since}}} add}} | {{since|{{{since}}}}}}} }}{{#if: {{{removed|}}} | &nbsp;{{removed|{{{removed}}}}} }}{{#if: {{{not|}}} | &nbsp;{{#ifexist: Template:{{{not}}} not | {{{{{not}}} not}} | {{not|{{{not}}}}}}} }}{{#if: {{{also|}}} | &nbsp;{{#ifexist: Template:{{{also}}} also | {{{{{also}}} also}} | {{also|{{{also}}}}}}} }}{{#if: {{{nofgd|}}} | &nbsp;{{Not in FGD}} }}{{#if: {{{deprecated|}}} | &nbsp;{{obs}} }}
: {{#if: {{{deprecated|}}} | Deprecated.&nbsp; }}{{#if: {{{3|}}} | {{{3}}}}}</includeonly><noinclude>
{{lang|Template:KV}}
{{lang|Template:KV}}
本模板是用于实体页面生成键值定义的。
{{documentation}}
 
<!-- Add categories to the /doc subpage, not here -->
== 基本用法 ==
<nowiki>{{KV:zh-cn|名称|变量类型|描述}}</nowiki>
 
{{note:zh-cn|记得使用[[Template:=]]来转义所有的「{{=}}」字符。}}
 
== 预设的参数 ==
{| class=standard-table
! 参数 || 描述 || 例子 || 预览
|-
| <code>deprecated</code> || 该键值已作废,不宜继续使用。 || <code><nowiki>{{KV:zh-cn|I'm deprecated|字符串|真的,不要再用我啦!|deprecated=1}}</nowiki></code> || {{KV:zh-cn|I'm deprecated|字符串|真的,不要再用我啦!|deprecated=1}}
|-
| <code>nofgd</code> || 该键值没有包含在官方FGD中。 || <code><nowiki>{{KV:zh-cn|Add me to the FGD|布尔值|因为我不在那里!|nofgd=1}}</nowiki></code> || {{KV:zh-cn|Add me to the FGD|布尔值|因为我不在那里!|nofgd=1}}
|-
| <code>since</code> || 该键值自该游戏起可以使用。它使用了模板<nowiki>{{<game> add}}</nowiki>。 || <code><nowiki>{{KV:zh-cn|I like Alien Swarm|整数|我也可以在Portal 2中使用!|since=AS}}</nowiki></code> || {{KV:zh-cn|I like Alien Swarm|整数|我也可以在Portal 2中使用!|since=AS}}
|-
| <code>also</code> || 该材质参数在该游戏中也可以使用。它使用了模板<nowiki>{{<game> also}}</nowiki>。 || <code><nowiki>{{KV:zh-cn|I like Alien Swarm|整数|我也可以在Garry's Mod中使用!|since=AS|also=GMOD}}</nowiki></code> || {{KV:zh-cn|I like Alien Swarm|整数|我也可以在Garry's Mod中使用!|since=AS|also=GMOD}}
|-
| <code>only</code> || 该材质参数只能在该游戏中使用。它使用了模板<nowiki>{{<game> only}}</nowiki>。 || <code><nowiki>{{KV:zh-cn|I love Alien Swarm|整数|我只能在Alien Swarm中使用!|only=AS}}</nowiki></code> || {{KV:zh-cn|I love Alien Swarm|整数|我只能在Alien Swarm中使用!|only=AS}}
|-
| <code>to</code> || 使用这个来定义一系列名字很相似的键值。 || <code><nowiki>{{KV:zh-cn|Sound 01|to=Sound 24|字符串|我们有许多……}}</nowiki></code> || {{KV:zh-cn|Sound 01|to=Sound 24|字符串|我们有许多……}}
|}
 
== 参见 ==
* [[Template:MatParam:zh-cn]]
* [[Template:IO:zh-cn]]
 
<hr>
</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|}}} | 已作废。&nbsp; }} {{#if: {{{3|}}} | {{{3}}} }}<noinclude>
[[Category:FGD Templates:zh-cn]]
</noinclude>
</noinclude>

Revision as of 01:50, 28 August 2021

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [create]
Icon-translate.png Available doc translations
Info.png
The Template:KV:zh-cn/doc documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
Template:KV:zh-cn/doc