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