Template:KeyValue/doc/zh

From Valve Developer Community
Jump to: navigation, search
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)
Edit-copy.png
This is a documentation subpage for Template:KeyValue.
Don't forget to purge the contents of the base page upon creating or editing this subpage.  

本模板最后由大康更新于2021年10月2日。


此模板用于在实体页面上生成键值的定义。

用法

{{KV:zh-cn|<名称>(使用原文)|<变量类型(使用原文)>|<描述>}}

Note.png注意:不要忘记使用 Template:= 来转义文本中的任何“=”字符。

示例和参数

参数 描述 示例 预览
deprecated 此键值已弃用,不应再使用。 {{KV:zh-cn|我已经弃用了|intn=deprecated|string|真的,不要再用我啦!|deprecated=1}}
我已经弃用了 (deprecated) <string(en)> Obsolete
已弃用。 真的,不要再用我啦!
nofgd 该键值没有包含在官方FGD中。 {{KV:zh-cn|把我添加到 FGD 里|intn=addfgd|boolean|因为我不在那里!|nofgd=1}}
把我添加到 FGD 里 (addfgd) <boolean(en)> 不存在于FGD!
因为我不在那里!
intn 此键值的内部/引擎名称。 {{KV:zh-cn|Name|intn=targetname|string|其他实体引用此实体的名称。}}
Name (targetname) <string(en)>
其他实体引用此实体的名称。
since 该键值自该游戏起可以使用。它使用了模板 {{<game> also}} 或者 {{Since}} 模板。 {{KV:zh-cn|我喜欢 Alien Swarm|intn=likealienswarm|bool|我也可以在传送门 2 中使用!|since=AS}}
我喜欢 Alien Swarm (likealienswarm) <boolean(en)> (存在于自 AS 以来)
我也可以在传送门 2 中使用!
also 这个键值在这个游戏中也是可用的。可以使用{{<game> also}} 或{{Also}}模板。 {{KV:zh-cn|我喜欢 Alien Swarm|intn=likealienswarm|bool|我也可以在 Garry's Mod 中使用!|since=AS|also=GMOD}}
我喜欢 Alien Swarm (likealienswarm) <boolean(en)> (存在于自 AS 以来) (also in Garry's Mod)
我也可以在 Garry's Mod 中使用!
only 此键值仅在此游戏中可用。可以使用 {{<game> only}} 或 {{Only}} 模板。 {{KV:zh-cn|我喜爱 Alien Swarm|intn=lovealienswarm|integer|我只在 Alien Swarm! 中可用!|only=AS}}
我喜爱 Alien Swarm (lovealienswarm) <integer(en)> (仅存在于 AS 中)
我只在 Alien Swarm! 中可用!
not 此键值仅在此游戏中不可用。仅使用模板 {{Not}} {{KV:zh-cn|我喜爱 Alien Swarm|intn=lovealienswarm|integer|我也在传送门 2 中可用,但在 CS:GO 中不可用!|since={{as}}|not={{csgo}}}}
我喜爱 Alien Swarm (lovealienswarm) <integer(en)> (存在于自 Alien Swarm 以来) (存在于 Counter-Strike: Global Offensive 中)
我也在传送门 2 中可用,但在 CS:GO 中不可用!
removed 此键值在此游戏中被删除。仅使用模板 {{Removed}} {{KV:zh-cn|我喜爱 Alien Swarm|intn=lovealienswarm|integer|实际上……自从传送门 2 之后我就不在这里了,包括 CS:GO……|since={{as}}|removed={{csgo}}}}
我喜爱 Alien Swarm (lovealienswarm) <integer(en)> (存在于自 Alien Swarm 以来) (自从 Portal 2移除)
实际上……自从传送门 2 之后我就不在这里了,包括 CS:GO……
to 使用它来定义一组名称非常相似的键值。使用intn2作为第二个键值的内部名称。 {{KV:zh-cn|Sound 01|intn=Sound01|to=Sound 24|intn2=Sound24|string|我们有很多人...}}
Sound 01 (Sound01) Sound 24 (Sound24) <string(en)>
我们有很多人...

另请参阅