Template:IO:zh-cn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Back to previous version.)
mNo edit summary
Line 31: Line 31:


<hr>
<hr>
</noinclude>; {{#if: {{{deprecated|}}} | <del> }}<code>{{{1}}}</code> {{#if: {{{to|}}} | <span style="font-weight: normal;">to</span> <code>{{{to}}}</code>}}{{#if: {{{param|}}} | &nbsp;{{KV Type|{{{param}}}}} }}{{#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}} }}
</noinclude>; {{#if: {{{deprecated|}}} | <del> }}<code>{{{1}}}</code> {{#if: {{{to|}}} | <span style="font-weight: normal;">to</span> <code>{{{to}}}</code>}}{{#if: {{{param|}}} | &nbsp;{{KV Type|{{{param}}}}} }}{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{since:zh-cn|}}} | &nbsp;{{{{{since:zh-cn}}} add}} }}{{#if: {{{only:zh-cn|}}} | &nbsp;{{{{{only:zh-cn}}} only}} }}{{#if: {{{also:zh-cn|}}} | &nbsp;{{{{{also:zh-cn}}} also}} }}{{#if: {{{nofgd|}}} | &nbsp;{{Not in FGD}} }}{{#if: {{{deprecated|}}} | &nbsp;{{obs}} }}
: {{#if: {{{deprecated|}}} | Deprecated.&nbsp; }}{{#if: {{{2|}}} | {{{2}}}}}<noinclude>
: {{#if: {{{deprecated|}}} | Deprecated.&nbsp; }}{{#if: {{{2|}}} | {{{2}}}}}<noinclude>
[[Category:FGD Templates]]
[[Category:FGD Templates]]
</noinclude>
</noinclude>

Revision as of 22:52, 21 August 2021

This template is used to generate input/output definitions on entity pages.

Basic usage

{{IO|<name>|<description>}}

Note.pngNote:Don't forget to use Template:= to escape any "=" characters in the text.

Named parameters

Parameter Description Example Preview
deprecated 这个输出或者输入已经被弃用。 {{IO;zh|OnDeprecated|说真的,请不要再用我啦!|deprecated=1}}
OnDeprecated  Obsolete
Deprecated.
说真的,请不要再用我啦!
nofgd 这个输出或者输入不存在于fgd中。 {{IO:zh|AddFGD|因为我不在那~|nofgd=1}}
AddFGD  !FGD
因为我不在那~
param 参数可选的变量类型。 {{IO:zh|SetString|更新字符。|param=string}}
SetString <string>
更新字符。
since 该输出/输入自该游戏起可以使用。它使用了模板{{<game> add}}. {{IO:zh|OnAlienSwarm|我也可以在Portal2中使用!|since=AS}}
OnAlienSwarm  (in all games since Alien Swarm)
我也可以在Portal2中使用!
also 该输出/输入自该游戏起也可以使用。它使用了模板{{<game> also}}. {{IO:zh|OnAlienSwarm|我也可以在Gmod中使用!|since=AS|also=GMOD}}
OnAlienSwarm  (in all games since Alien Swarm) (also in Garry's Mod)
我也可以在Gmod中使用!
only 该输出/输入只能在该游戏中使用。它使用了模板 {{<game> only}}. {{IO:zh|OnAlienSwarm|我只能用于Alien Swarm!|only=AS}}
OnAlienSwarm  (only in Alien Swarm)
我只能用于Alien Swarm!
to 使用这个来定义一系列名字很相似的输出/输入。 {{IO:zh|Sound01|to=Sound24|我们有许多……}}
Sound01 to Sound24
我们有许多…….

See also


{{{1}}}