Template:IO:zh-cn: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Redirected page to Template:I)
Tag: New redirect
 
(14 intermediate revisions by 4 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|已弃用|说真的,请不要再用我啦!|deprecated=1}}</nowiki></code> || {{IO:zh|已弃用|说真的,请不要再用我啦!|deprecated=1}}
|-
| <code>nofgd</code> || This input/output isn't available in the official FGD. || <code><nowiki>{{IO|AddFGD|Because I'm not there!|nofgd=1}}</nowiki></code> || {{IO|AddFGD|Because I'm not there!|nofgd=1}}
|-
| <code>param</code> || Optional variable type for parameters. || <code><nowiki>{{IO|SetString|Updates the string.|param=string}}</nowiki></code> || {{IO|SetString|Updates the string.|param=string}}
|-
| <code>since</code> || This input/output is available since this game. Uses the template <nowiki>{{<game> add}}</nowiki>. || <code><nowiki>{{IO|OnAlienSwarm|I'm available in Portal 2, too!|since=AS}}</nowiki></code> || {{IO|OnAlienSwarm|I'm available in Portal 2, too!|since=AS}}
|-
| <code>also</code> || This input/output is also available in this game. Uses the template <nowiki>{{<game> also}}</nowiki>. || <code><nowiki>{{IO|OnAlienSwarm|I'm also available in Garry's Mod!|since=AS|also=GMOD}}</nowiki></code> || {{IO|OnAlienSwarm|I'm also available in Garry's Mod!|since=AS|also=GMOD}}
|-
| <code>only</code> || This input/output is available only in this game. Uses the template <nowiki>{{<game> only}}</nowiki>. || <code><nowiki>{{IO|OnAlienSwarm|I'm only available in Alien Swarm!|only=AS}}</nowiki></code> || {{IO|OnAlienSwarm|I'm only available in Alien Swarm!|only=AS}}
|-
| <code>to</code> || Use this to define a set of inputs/outputs with very similar names. || <code><nowiki>{{IO|Sound01|to=Sound24|There are many of us...}}</nowiki></code> || {{IO|Sound01|to=Sound24|There are many of us...}}
|}
 
== 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|}}} | &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: