Template:IO:zh-cn: Difference between revisions
Jump to navigation
Jump to search
Note:Don't forget to use Template:= to escape any "=" characters in the text.
m (FloraC moved page Template:IO:zh to Template:IO:zh-cn: Ditto) |
1416006136 (talk | contribs) 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|}}} | {{KV Type|{{{param}}}}} }}{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{since|}}} | {{{{{since}}} add}} }}{{#if: {{{only|}}} | {{{{{only}}} only}} }}{{#if: {{{also|}}} | {{{{{also}}} also}} }}{{#if: {{{nofgd|}}} | {{Not in FGD}} }}{{#if: {{{deprecated|}}} | {{obs}} }} | </noinclude>; {{#if: {{{deprecated|}}} | <del> }}<code>{{{1}}}</code> {{#if: {{{to|}}} | <span style="font-weight: normal;">to</span> <code>{{{to}}}</code>}}{{#if: {{{param|}}} | {{KV Type|{{{param}}}}} }}{{#if: {{{deprecated|}}} | </del> }}{{#if: {{{since:zh-cn|}}} | {{{{{since}}} add}} }}{{#if: {{{only|}}} | {{{{{only}}} only}} }}{{#if: {{{also|}}} | {{{{{also}}} also}} }}{{#if: {{{nofgd|}}} | {{Not in FGD}} }}{{#if: {{{deprecated|}}} | {{obs}} }} | ||
: {{#if: {{{deprecated|}}} | Deprecated. }}{{#if: {{{2|}}} | {{{2}}}}}<noinclude> | : {{#if: {{{deprecated|}}} | Deprecated. }}{{#if: {{{2|}}} | {{{2}}}}}<noinclude> | ||
[[Category:FGD Templates]] | [[Category:FGD Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 22:46, 21 August 2021
This template is used to generate input/output definitions on entity pages.
Basic usage
{{IO|<name>|<description>}}

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