Template:KeyValue/sandbox

Материал из Valve Developer Community
Перейти к навигации Перейти к поиску
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.pngДокументация шаблона [посмотреть] [править] [создать Русский (ru)]
Icon-translate.png Available doc translations
Info.png
Страница документации Template:KeyValue/sandbox/doc/ru не существует.
Вместо неё будет отображена документация на английском. Если после данного сообщения ничего нет, вероятней всего документации не существует даже на английском.

This template is used to generate Keyvalue definitions on entity pages.

Usage

{{KeyValue/sandbox|<name>|<variable type>|<description>}}
Note.pngПримечание:Don't forget to use Template:= to escape any "=" characters in the text.

Examples and Parameters

Parameter Description Example Preview
deprecated This Keyvalue is deprecated and should no longer be used. {{KeyValue/sandbox|I'm deprecated|intn=deprecated|string|Really, don't use me anymore!|deprecated=1}}
I'm deprecated (deprecated) <строка(en)> Obsolete
Устарело.
Really, don't use me anymore!
nofgd This Keyvalue isn't available in the official FGD. {{KeyValue/sandbox|Add me to the FGD|intn=addfgd|boolean|Because I'm not there!|nofgd=1}}
Add me to the FGD (addfgd) <булева переменная(en)> !FGD
Because I'm not there!
intn The internal/engine name for this Keyvalue.
Required; if absent, the page will display green todo text and applies Category:Pages with undefined internal keyvalue names. You can look for internal names in fgds. If internal name doesn't need to be specified use intn=0.
{{KeyValue/sandbox|Name|intn=targetname|string|The name that other entities refer to this entity by.}}
{{KeyValue/sandbox|Name|string|The name that other entities refer to this entity by.}}
Name (targetname) <строка(en)>
The name that other entities refer to this entity by.
Name ([todo internal name (i)]) <строка(en)>
The name that other entities refer to this entity by.
since This Keyvalue is available since this game. Can use either {{<game> add}} or {{Since}} templates. {{KeyValue/sandbox|I like Alien Swarm|intn=likealienswarm|bool|I'm available in Portal 2, too!|since=AS}}
I like Alien Swarm (likealienswarm) <булева переменная(en)> (Во всех играх начиная с Alien Swarm)
I'm available in Portal 2, too!
also This Keyvalue is also available in this game. Can use either {{<game> also}} or {{Also}} templates. {{KeyValue/sandbox|I like Alien Swarm|intn=likealienswarm|bool|I'm also available in Garry's Mod!|since=AS|also=GMOD}}
I like Alien Swarm (likealienswarm) <булева переменная(en)> (Во всех играх начиная с Alien Swarm) (также в Garry's Mod)
I'm also available in Garry's Mod!
only This Keyvalue is available only in this game. Can use either {{<game> only}} or {{Only}} templates. {{KeyValue/sandbox|I love Alien Swarm|intn=lovealienswarm|integer|I'm only available in Alien Swarm!|only=AS}}
I love Alien Swarm (lovealienswarm) <целое число(en)> (только в Alien Swarm)
I'm only available in Alien Swarm!
not This Keyvalue is not available just in this game. Only uses the template {{Not}}. {{KeyValue/sandbox|I love Alien Swarm|intn=lovealienswarm|integer|I'm available in Portal 2 too, but not in CS:GO!|since={{as}}|removed={{csgo}}}}
I love Alien Swarm (lovealienswarm) <целое число(en)> (Во всех играх начиная с Alien Swarm) (нет в Counter-Strike: Global Offensive)
I'm available in Portal 2 too, but not in CS:GO!
removed This Keyvalue was removed in this game onwards. Only uses the template {{Removed}}. {{KeyValue/sandbox|I love Alien Swarm|intn=lovealienswarm|integer|Actually... I'm not here anymore since Portal 2, including CS:GO...|since={{as}}|removed={{csgo}}}}
I love Alien Swarm (lovealienswarm) <целое число(en)> (Во всех играх начиная с Alien Swarm) (удалено начиная с Portal 2)
Actually... I'm not here anymore since Portal 2, including CS:GO...
to Use this to define a set of Keyvalues with very similar names. Use intn2 for the second keyvalue's internal name. {{KeyValue/sandbox|Sound 01|intn=Sound01|to=Sound 24|intn2=Sound24|string|There are many of us...}}
Sound 01 (Sound01) to Sound 24 (Sound24) <строка(en)>
There are many of us...
value Default value of the keyvalue. {{KeyValue/sandbox|Default Value|intn=defaultvalue|integer|value=1|Why do I have such a small value? :(}}
Default Value (defaultvalue) <целое число(en)>Default Value: 1
Why do I have such a small value? :(

See also