Template:I: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
{{lang|Template:IO}}<!--
<onlyinclude><includeonly>
--><onlyinclude><includeonly>
; {{#if: {{{deprecated|}}} | <del> }}<!--
; {{#if: {{{deprecated|}}} | <del> }}<!--
--><code>{{{1}}}</code> <!--
--><code>{{{1}}}</code> <!--
Line 6: Line 5:
-->{{#if: {{{param|}}}      | {{KV Type|{{{param}}}}} }}<!--
-->{{#if: {{{param|}}}      | {{KV Type|{{{param}}}}} }}<!--
-->{{#if: {{{deprecated|}}} | </del> }}<!--
-->{{#if: {{{deprecated|}}} | </del> }}<!--
-->{{#if: {{{only|}}}      | &nbsp;{{#ifexist: Template:{{{only}}} only | {{ {{{only}}} only}} | {{only|{{{only}}}}}}} }}<!--
-->{{#if: {{{only|}}}      | &nbsp;{{#ifexist: Template:{{{only}}} only | {{ {{{only}}} only}} | {{only|{{{only}}}}}}}[[Category:Template:IO Only template doesn't exist]]}}<!--
-->{{#if: {{{since|}}}      | &nbsp;{{#ifexist: Template:{{{since}}} add | {{ {{{since}}} add}} | {{since|{{{since}}}}}}} }}<!--
-->{{#if: {{{since|}}}      | &nbsp;{{#ifexist: Template:{{{since}}} add | {{ {{{since}}} add}} | {{since|{{{since}}}}}}}[[Category:Template:IO Since template doesn't exist]]}}<!--
-->{{#if: {{{removed|}}}    | &nbsp;{{removed|{{{removed}}}}} }}<!--
-->{{#if: {{{removed|}}}    | &nbsp;{{removed|{{{removed}}}}} }}<!--
-->{{#if: {{{not|}}}        | &nbsp;{{#ifexist: Template:{{{not}}} not | {{ {{{not}}} not}} | {{not|{{{not}}}}}}} }}<!--
-->{{#if: {{{not|}}}        | &nbsp;{{#ifexist: Template:{{{not}}} not | {{ {{{not}}} not}} | {{not|{{{not}}}}}}}[[Category:Template:IO Not template doesn't exist]]}}<!--
-->{{#if: {{{also|}}}      | &nbsp;{{#ifexist: Template:{{{also}}} also | {{ {{{also}}} also}} | {{also|{{{also}}}}}}} }}<!--
-->{{#if: {{{also|}}}      | &nbsp;{{#ifexist: Template:{{{also}}} also | {{ {{{also}}} also}} | {{also|{{{also}}}}}}}[[Category:Template:IO Also template doesn't exist]]}}<!--
-->{{#if: {{{nofgd|}}}      | &nbsp;{{Not in FGD}} }}<!--
-->{{#if: {{{nofgd|}}}      | &nbsp;{{Not in FGD}} }}<!--
-->{{#if: {{{deprecated|}}} | &nbsp;{{obs}} }}
-->{{#if: {{{deprecated|}}} | &nbsp;{{obs}} }}

Revision as of 01:50, 17 July 2024

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

This template is used to generate input definitions on entity pages. Use {{O}} for output definitions.

Usage

{{I|<name>|<description>}}

Note.pngNote:Don't forget to use {{=}} to escape any "=" characters in the text.

Examples and Parameters

Parameter Description Example Preview
deprecated This input/output is deprecated and should no longer be used. {{O|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. {{I|AddFGD|Because I'm not there!|nofgd=1}}
AddFGD  !FGD
Because I'm not there!
param Optional variable type for parameters. {{I|SetString|Updates the string.|param=string}}
SetString <string>
Updates the string.
since This input/output is available since this game. Can use either {{<game> add}} or {{Since}} templates. {{O|OnAlienSwarm|I'm available in Portal 2, too!|since=AS}}
OnAlienSwarm  (in all games since Alien Swarm)
I'm available in Portal 2, too!
also This input/output is also available in this game. Can use either {{<game> also}} or {{Also}} templates. {{O|OnAlienSwarm|I'm also available in Garry's Mod!|since=AS|also=GMOD}}
OnAlienSwarm  (in all games since Alien Swarm) (also in Garry's Mod)
I'm also available in Garry's Mod!
only This input/output is available only in this game. Can use either {{<game> only}} or {{Only}} templates. {{O|OnAlienSwarm|I'm only available in Alien Swarm!|only=AS}}
OnAlienSwarm  (only in Alien Swarm)
I'm only available in Alien Swarm!
not This input/output is not available just in this game. Only uses the template {{Not}}. {{O|OnAlienSwarm|I'm available in Portal 2 as well, but not in CS:GO!|since={{as}}|not={{csgo}}}}
OnAlienSwarm  (in all games since Alien Swarm) (not in Counter-Strike: Global Offensive)
I'm available in Portal 2 too, but not in CS:GO!
removed This input/output was removed in this game. Only uses the template {{Removed}}. {{O|OnAlienSwarm|I'm available in Portal 2 too, but not in CS:GO, nor in anything after it!|since={{as}}|removed={{csgo}}}}
OnAlienSwarm  (in all games since Alien Swarm) (removed since Counter-Strike: Global Offensive)
I'm available in Portal 2 too, but not in CS:GO!
to Use this to define a set of inputs/outputs with very similar names. {{I|SetTarget1|to=SetTarget4|param=string|Sets targets 1-4…}}
SetTarget1 to SetTarget4<string>
Sets targets 1-4…

See also