Template:IO:zh-cn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Redirected page to Template:I)
Tag: New redirect
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
#redirect [[Template:I]]
This template is used to generate input/output definitions on entity pages.
 
== Basic usage ==
<nowiki>{{IO|<name>|<description>}}</nowiki>
 
{{note|Don't forget to use [[Template:=]] to escape any "{{=}}" characters in the text.}}
 
== Named parameters ==
{| class=standard-table
! Parameter || Description || Example || Preview
|-
| <code>deprecated</code> || 这个输出或者输入已经被弃用。 || <code><nowiki>{{IO;zh|OnDeprecated|说真的,请不要再用我啦!|deprecated=1}}</nowiki></code> || {{IO:zh|OnDeprecated|说真的,请不要再用我啦!|deprecated=1}}
|-
| <code>nofgd</code> || 这个输出或者输入不存在于fgd中。 || <code><nowiki>{{IO:zh|AddFGD|因为我不在那~|nofgd=1}}</nowiki></code> || {{IO:zh|AddFGD|因为我不在那~|nofgd=1}}
|-
| <code>param</code> || 参数可选的变量类型。|| <code><nowiki>{{IO:zh|SetString|更新字符。|param=string}}</nowiki></code> || {{IO:zh|SetString|更新字符。|param=string}}
|-
| <code>since</code> || 该输出/输入自该游戏起可以使用。它使用了模板<nowiki>{{<game> add}}</nowiki>. || <code><nowiki>{{IO:zh|OnAlienSwarm|我也可以在Portal2中使用!|since=AS}}</nowiki></code> || {{IO:zh|OnAlienSwarm|我也可以在Portal2中使用!|since=AS}}
|-
| <code>also</code>  ||  该输出/输入自该游戏起也可以使用。它使用了模板<nowiki>{{<game> also}}</nowiki>. || <code><nowiki>{{IO:zh|OnAlienSwarm|我也可以在Gmod中使用!|since=AS|also=GMOD}}</nowiki></code> || {{IO:zh|OnAlienSwarm|我也可以在Gmod中使用!|since=AS|also=GMOD}}
|-
| <code>only</code> || 该输出/输入只能在该游戏中使用。它使用了模板 <nowiki>{{<game> only}}</nowiki>. || <code><nowiki>{{IO:zh|OnAlienSwarm|我只能用于Alien Swarm!|only=AS}}</nowiki></code> || {{IO:zh|OnAlienSwarm|我只能用于Alien Swarm!|only=AS}}
|-
| <code>to</code> ||使用这个来定义一系列名字很相似的输出/输入。 || <code><nowiki>{{IO:zh|Sound01|to=Sound24|我们有许多……}}</nowiki></code> || {{IO:zh|Sound01|to=Sound24|我们有许多…….}}
|}
 
== See also ==
* [[Template:KV]]
* [[Template:MatParam]]
 
<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:zh-cn|}}} | &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|}}} | Deprecated.&nbsp; }}{{#if: {{{2|}}} | {{{2}}}}}<noinclude>
[[Category:FGD Templates]]
</noinclude>

Latest revision as of 20:57, 21 April 2025

Redirect to: