Template:I: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added obsolete icon for deprecated inputs/outputs)
(Added MatParam to see also, removed todo for inputs/outputs with no description)
Line 28: Line 28:
== See also ==
== See also ==
* [[Template:KV]]
* [[Template:KV]]
* [[Template:MatParam]]


<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|}}} | &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}}} | {{todo|add description}} }}<noinclude>
: {{#if: {{{deprecated|}}} | Deprecated.&nbsp; }}{{#if: {{{2|}}} | {{{2}}}}}<noinclude>
[[Category:FGD Templates]]
[[Category:FGD Templates]]
</noinclude>
</noinclude>

Revision as of 14:17, 28 August 2019

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 This input/output is deprecated and should no longer be used. {{IO|OnDeprecated|Really, don't use me anymore!|deprecated=1}}
OnDeprecated  Obsolete
Deprecated. Really, don't use me anymore!
nofgd This input/output isn't available in the official FGD. {{IO|AddFGD|Because I'm not there!|nofgd=1}}
AddFGD  !FGD
Because I'm not there!
param Optional variable type for parameters. {{IO|SetString|Updates the string.|param=string}}
SetString  <string>
Updates the 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}}
OnAlienSwarm  Template:AS add
I'm available in Portal 2, too!
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}}
OnAlienSwarm  Template:AS add Template:GMOD also
I'm also available in Garry's Mod!
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}}
OnAlienSwarm  Template:AS only
I'm only available in Alien Swarm!
to Use this to define a set of inputs/outputs with very similar names. {{IO|Sound01|to=Sound24|There are many of us...}}
Sound01 to Sound24
There are many of us...

See also


{{{1}}}