Template:I: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
Line 11: Line 11:
! Parameter || Description || Example || Preview
! Parameter || Description || Example || Preview
|-
|-
| <code>deprecated</code> || Used to mark deprecated Keyvalues || <code><nowiki>{{IO|OnDeprecated|Really, don't use me anymore!|deprecated=1}}</nowiki></code> || {{IO|OnDeprecated|Really, don't use me anymore!|deprecated=1}}
| <code>deprecated</code> || Used to mark deprecated inputs/outputs. || <code><nowiki>{{IO|OnDeprecated|Really, don't use me anymore!|deprecated=1}}</nowiki></code> || {{IO|OnDeprecated|Really, don't use me anymore!|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>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}}

Revision as of 22:11, 9 June 2011

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 Used to mark deprecated inputs/outputs. {{IO|OnDeprecated|Really, don't use me anymore!|deprecated=1}}
OnDeprecated
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!
to Use this to define a set of inputs/outputs with very similar names. {{IO|Sound01|to=Sound24|There're many of us...}}
Sound01 to Sound24
There're many of us...

See also


{{{1}}}
Todo: add description