Template:IO:zh-cn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
; {{#if: {{{deprecated|}}} | <del> }}<code>{{{1}}}</code> {{#if: {{{to|}}} |<span style="font-weight: normal;">到</span><code>{{{to}}}</code>}}{{#if: {{{param|}}} | {{KV Type|{{{param}}}}} }}{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{only|}}} | &nbsp;{{#ifexist: Template:{{{only}}} only:zh-cn | {{{{{only}}} only:zh-cn}} | {{only:zh-cn|{{{only}}}}}}} }}{{#if: {{{since|}}} | &nbsp;{{#ifexist: Template:{{{since}}} add:zh-cn | {{{{{since}}} add:zh-cn}} | {{since:zh-cn|{{{since}}}}}}} }}{{#if: {{{removed|}}} | &nbsp;{{removed:zh-cn|{{{removed}}}}} }}{{#if: {{{also|}}} | &nbsp;{{#ifexist: Template:{{{also}}} also:zh-cn | {{{{{also}}} also:zh-cn}} | {{also:zh-cn|{{{also}}}}}}} }}{{#if: {{{nofgd|}}} | &nbsp;{{Not in FGD}} }}{{#if: {{{deprecated|}}} | &nbsp;{{obs}} }}
; {{#if: {{{deprecated|}}} | <del> }}<code>{{{1}}}</code>{{#if: {{{to|}}} |<span style="font-weight: normal;">到</span><code>{{{to}}}</code>}}{{#if: {{{param|}}} | {{KV Type|{{{param}}}}} }}{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{only|}}} | &nbsp;{{#ifexist: Template:{{{only}}} only:zh-cn | {{{{{only}}} only:zh-cn}} | {{only:zh-cn|{{{only}}}}}}} }}{{#if: {{{since|}}} | &nbsp;{{#ifexist: Template:{{{since}}} add:zh-cn | {{{{{since}}} add:zh-cn}} | {{since:zh-cn|{{{since}}}}}}} }}{{#if: {{{removed|}}} | &nbsp;{{removed:zh-cn|{{{removed}}}}} }}{{#if: {{{also|}}} | &nbsp;{{#ifexist: Template:{{{also}}} also:zh-cn | {{{{{also}}} also:zh-cn}} | {{also:zh-cn|{{{also}}}}}}} }}{{#if: {{{nofgd|}}} | &nbsp;{{Not in FGD}} }}{{#if: {{{deprecated|}}} | &nbsp;{{obs}} }}
: {{#if: {{{deprecated|}}} | 已弃用。&nbsp; }}{{#if: {{{2|}}} | {{{2}}}}}</includeonly><noinclude>
: {{#if: {{{deprecated|}}} | 已弃用。&nbsp; }}{{#if: {{{2|}}} | {{{2}}}}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories to the /doc subpage, not here -->
<!-- Add categories to the /doc subpage, not here -->
</noinclude>
</noinclude>

Revision as of 07:08, 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] [edit]
Icon-translate.png Available doc translations
View
Page history

本模板由大康更新于2021年8月28日。


此模板用于在实体页面上生成输入/输出定义。

用法

{{IO:zh-cn|<名称(使用原文)>|<描述>}}

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

示例和参数

参数 描述 示例 预览
deprecated 此输入/输出已弃用,不应再使用。 {{IO:zh-cn|OnDeprecated|真的,不要再用我啦!|deprecated=1}}
OnDeprecated Obsolete
已弃用。 真的,不要再用我啦!
nofgd 此输入/输出在官方 FGD 中不可用。 {{IO:zh-cn|AddFGD|因为我不在那里!|nofgd=1}}
AddFGD !FGD
因为我不在那里!
param 参数的可选变量类型。 {{IO:zh-cn|SetString|设置新的字符串。|param=string}}
SetString<string>
设置新的字符串。
since 自此游戏以来,此输入/输出可用。可以使用 {{<game> add}} 或 {{Since}} 模板。 {{IO:zh-cn|OnAlienSwarm|我也可以在传送门 2 中使用!|since=AS}}
OnAlienSwarm (存在于自 AS 以来)
我也可以在传送门 2 中使用!
also 此输入/输出也可在此游戏中使用。可以使用 {{<game> also}} 或 {{Also}} 模板。 {{IO:zh-cn|OnAlienSwarm|我也可以在 Garry's Mod 中使用!|since=AS|also=GMOD}}
OnAlienSwarm (存在于自 AS 以来) (also in Garry's Mod)
我也可以在 Garry's Mod 中使用!
only 此输入/输出仅在此游戏中可用。可以使用 {{<game> only}} 或 {{Only}} 模板。 {{IO:zh-cn|OnAlienSwarm|我只在 Alien Swarm! 中可用!|only=AS}}
OnAlienSwarm (仅存在于 AS 中)
我只在 Alien Swarm! 中可用!
removed 此输入/输出在此游戏中被删除了。仅使用模板 {{Removed}} {{IO:zh-cn|OnAlienSwarm|我也在传送门 2 中可用,但在 CS:GO 中不可用!|since={{as}}|removed={{csgo}}}}
OnAlienSwarm (存在于自 Alien Swarm 以来) (自从 Counter-Strike: Global Offensive移除)
我也在传送门 2 中可用,但在 CS:GO 中不可用!
to 使用它来定义一组名称非常相似的输入/输出。 {{IO:zh-cn|Sound01|to=Sound24|我们有很多人...}}
Sound01Sound24
我们有很多人...

另请参阅