Template:I: Difference between revisions
Jump to navigation
Jump to search
Note:Don't forget to use Template:= to escape any "=" characters in the text.
Deprecated (talk | contribs) (Added only template) |
Deprecated (talk | contribs) (Added also template) |
||
Line 18: | Line 18: | ||
|- | |- | ||
| <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>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>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}} | ||
Line 28: | Line 30: | ||
<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: {{{nofgd|}}} | {{Not in FGD}} }} | </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|}}} | Deprecated. }}{{#if: {{{2|}}} | {{{2}}} | {{todo|add description}} }}<noinclude> | : {{#if: {{{deprecated|}}} | Deprecated. }}{{#if: {{{2|}}} | {{{2}}} | {{todo|add description}} }}<noinclude> | ||
[[Category:FGD Templates]] | [[Category:FGD Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 17:50, 24 May 2019
This template is used to generate input/output definitions on entity pages.
Basic usage
{{IO|<name>|<description>}}

Named parameters
Parameter | Description | Example | Preview |
---|---|---|---|
deprecated |
Used to mark deprecated inputs/outputs. | {{IO|OnDeprecated|Really, don't use me anymore!|deprecated=1}} |
|
nofgd |
This input/output isn't available in the official FGD. | {{IO|AddFGD|Because I'm not there!|nofgd=1}} |
|
param |
Optional variable type for parameters. | {{IO|SetString|Updates the string.|param=string}} |
|
since |
This input/output is available since this game. Uses the template {{<game> add}}. | {{IO|OnAlienSwarm|I'm available in Portal 2, too!|since=AS}} |
|
also |
This input/output is also available in this game. Uses the template {{<game> also}}. | {{IO|OnAlienSwarm|I'm also available in Garry's Mod!|since=AS|also=GMOD}} |
|
only |
This input/output is available only in this game. Uses the template {{<game> only}}. | {{IO|OnAlienSwarm|I'm only available in Alien Swarm!|only=AS}} |
|
to |
Use this to define a set of inputs/outputs with very similar names. | {{IO|Sound01|to=Sound24|There're many of us...}} |
|
See also
{{{1}}}
- Todo: add description