Template:VT: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(don't link to ???)
(Update russian translate and content)
Line 204: Line 204:
Russian
Russian
-->| ru = <kbd><{{#switch:{{lc:{{{1|}}}}}
-->| ru = <kbd><{{#switch:{{lc:{{{1|}}}}}
| angles = {{L|angle|углы}}
 
| axis = {{L|coordinates|координаты}}
| angle = {{Lx|QAngle|угол}}{{VT/{{{type|}}}rawtypelink|Vector}}
| bool = {{L|boolean|булева переменная}}
| angles = {{Lx|QAngle|углы}}{{VT/{{{type|}}}rawtypelink|Vector}}
| boolean = {{L|boolean|булева переменная}}
| axis = {{Lx|coordinates|координаты}}
| bool
| boolean = {{Lx|boolean|булева переменная}}{{VT/{{{type|}}}rawtypelink|boolean}}
| unsigned char
| byte = {{Lx|byte|байт}}
| byte choices = {{Lx|byte|байт}} выбор
| char = {{Lx|char|символ}}
| char choices = {{Lx|char|символ}} выбор
| choices = варианты выбора
| choices = варианты выбора
| rgb = {{L|color255|цвет КЗС}}  
| rgb
| color255 = {{L|color255|цвет КЗС}}
| color255 = {{Lx|color255|цвет КЗС}}{{VT/{{{type|}}}rawtypelink|color32}}
| color255+int = {{L|color255|цвет КЗС}} + {{L|int|целое число}}
| color1 = {{Lx|color1|цвет КЗС}} 0-1
| color255 + int = {{L|color255|цвет КЗС}} + {{L|int|целое число}}
| color255+int
| cubemap/texture = {{Ent|env_cubemap}}/{{L|texture|текстура}}
| color255 + int = {{L|color255|цвет КЗС}} + {{Lx|int|целое число}}
| cubemap / texture = {{Ent|env_cubemap}}/{{L|texture|текстура}}
| cubemap/texture
| env cubemap/texture = {{Ent|env_cubemap}}/{{L|texture|текстура}}
| cubemap / texture
| env cubemap / texture = {{Ent|env_cubemap}}/{{L|texture|текстура}}
| env cubemap/texture
| env_cubemap/texture = {{Ent|env_cubemap}}/{{L|texture|текстура}}
| env cubemap / texture
| env_cubemap / texture = {{Ent|env_cubemap}}/{{L|texture|текстура}}
| env_cubemap/texture
| filter = {{L|filter|фильтр}}
| env_cubemap / texture = {{Ent|env_cubemap}}/{{Lx|texture|текстура}}{{VT/{{{type|}}}rawtypelink|string}}
| filterclass  =  {{L|filter|фильтр}}
| ehandle = [[IO type ehandle|целевой_объект*]]{{VT/{{{type|}}}rawtypelink|ehandle}}
| float = {{L|float|число с плавающей запятой}}
| file
| int = {{L|integer|целое число}}
| filename
| integer = {{L|integer|целое число}}
| filepath = путь файла{{VT/{{{type|}}}rawtypelink|string}}
| int 0-10 = {{L|integer|целое число}} 0–10 <!-- для ambient_generic -->
| filter
| int 0-100 = {{L|integer|целое число}} 0–100 <!-- для ambient_generic -->
| filterclass  = {{Lx|filter|фильтр}}{{VT/{{{type|}}}rawtypelink|string}}
| int 0-1000 = {{L|integer|целое число}} 0–1000 <!-- для ambient_generic -->
| float = {{Lx|float|число с плавающей запятой}}{{VT/{{{type|}}}rawtypelink|float}}
| int 0-255 = {{L|integer|целое число}} 0–255 <!-- для ambient_generic -->
| int
| material property = {{L|Material surface properties|свойство}}
| integer = {{Lx|integer|целое число}}{{VT/{{{type|}}}rawtypelink|integer}}
| property = {{L|Material surface properties|свойство}}
| integer choices = {{Lx|integer|целое число}} выбор{{VT/{{{type|}}}rawtypelink|integer}}
| script = {{L|VScript|скрипт}}
| int 0-10
| vscript = {{L|VScript|скрипт}}
| integer 0-10 = {{Lx|integer|целое число}} 0–10 <!-- для ambient_generic -->
| rgb matrix = {{L|RGB}} {{L|matrix|матрица}}
| int 0-100
| scriptlist = {{L|VScript|скриптлист VScript}}
| integer 0-100 = {{Lx|integer|целое число}} 0–100 <!-- для ambient_generic -->
| str = {{L|string|строка}}
| int 0-1000
| string = {{L|string|строка}}
| integer 0-1000 = {{Lx|integer|целое число}} 0–1000 <!-- для ambient_generic -->
| model = {{L|Model|модель}}
| int 0-255
| modelname = {{L|Model|имя модели}}
| integer 0-255 = {{Lx|integer|целое число}} 0–255 <!-- для ambient_generic; не следует путать с байтом -->
| model name = {{L|Model|имя модели}}
| material property
| modelpath = {{L|Model|путь к модели}}
| property = {{Lx|Material surface properties|свойство}}{{VT/{{{type|}}}rawtypelink|string}}
| model path = {{L|Model|путь к модели}}
| script
| studio = {{L|Model|путь к модели}}
| vscript = {{Lx|VScript/script|скрипт}}{{VT/{{{type|}}}rawtypelink|string}}
| target = {{L|targetname|целевой объект}}
| sky
| targetname = {{L|targetname|целевой объект}}
| skybox
| target_source = {{L|targetname|объект источник}}
| skyname = {{Lx|Skybox|имя неба}}{{VT/{{{type|}}}rawtypelink|string}}
| target_destination = {{L|targetname|целевой объект}}
| rgb matrix = {{Lx|RGB|КЗС}} {{Lx|matrix|матрица}}
| vecline = {{L|vector|вектор}}
| scriptlist = {{Lx|VScript/scriptlist|скриптлист VScript}}{{VT/{{{type|}}}rawtypelink|string}}
| vector = {{L|Material vector|вектор}}
| str
| vector2 = {{L|Material vector#vector2|вектор2}}
| string = {{Lx|string|строка}}{{VT/{{{type|}}}rawtypelink|string}}
| vector3 = {{L|Material vector#vector3|вектор3}}
| string choices = {{Lx|string|строка}} выбор{{VT/{{{type|}}}rawtypelink|string}}
| vector4 = {{L|Material vector#vector4|вектор4}}
| model = {{Lx|Model|модель}}
| void = {{L|void|пусто}}
| modelname
| model name = {{Lx|Model|имя модели}}
| modelpath
| model path
| studio = {{Lx|Model|путь к модели}}{{VT/{{{type|}}}rawtypelink|string}}
| target
| targetname
| target_destination = {{Lx|targetname|целевой объект}}{{VT/{{{type|}}}rawtypelink|string}}
| target_source = {{Lx|targetname|объект источник}}{{VT/{{{type|}}}rawtypelink|string}}
| variant = [[IO type variant|варианта]]{{VT/{{{type|}}}rawtypelink|variant}}
| vec
| vecline
| vector = {{Lx|Material vector|вектор}}{{VT/{{{type|}}}rawtypelink|Vector}}
| vec2
| vector2 = {{Lx|Material vector#vector2|вектор2}}
| vec3
| vector3 = {{Lx|Material vector#vector3|вектор3}}
| vec4
| vector4 = {{Lx|Material vector#vector4|вектор4}}
| void = <span style="color:grey">пусто</span>
| {{#if:{{{1|}}}|{{L|{{{1|}}}}}|void}}
| {{#if:{{{1|}}}|{{L|{{{1|}}}}}|void}}
}}></kbd><!--
}}></kbd><!--

Revision as of 12:19, 19 May 2025

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

Just a list template for FGD and shader parameter templates to easily link to a wide variety of variable types.

Usage

This template accepts one parameter: the name of the variable type. It outputs a specific string depending on this parameter. It is not case-sensitive.

The following table lists inputs, their results, other inputs yielding the same results, and any things to note. Case variations are not included.

Code Output Aliases Notes
{{VT|???}} <???> Unknown type, verify from FGD docs. (with hover info)
{{VT|angle}} <angle> Parsed as QAngle.
{{VT|angles}} <angles> Parsed as QAngle.
{{VT|axis}} <axis>
{{VT|bool}} <boolean> boolean FGD KV type is (in all games since Alien Swarm engine branch) (also in Garry's Mod)
Use choices instead in earlier games' FGDs, but note them as Booleans on the game pages themselves.
{{VT|byte}} <byte> unsigned char Range 0-255.
If the variable uses a regular integer with clamped range, use <integer 0–255> instead.
{{VT|byte choices}} <byte choices>
{{VT|char}} <char> Use for signed chars (-128 to 127).
{{VT|char choices}} <char choices>
{{VT|choices}} <choices> Preferably use version which indicates the actual data type parsed by the code, such as <byte choices>, <integer choices>, or <string choices>.
{{VT|color1}} <color1>
{{VT|color255}} <color255> RGB, rgb
{{VT|color255 + int}} <color255 + int> color255+int
{{VT|env_cubemap / texture}} <env_cubemap/texture> cubemap/texture, cubemap / texture, env cubemap/texture, env cubemap / texture, env_cubemap/texture, env_cubemap / texture
{{VT|ehandle}} <targetname*> IO type ehandle.
{{VT|file}} <file path> filename, filepath File path, treated as string.
{{VT|filter}} <filter> filterclass
{{VT|float}} <float>
{{VT|int}} <integer> integer Enums without explicit type use this.
{{VT|int 0-10}} <integer 0–10> For ambient_generic.
{{VT|int 0-100}} <integer 0–100> For ambient_generic.
{{VT|int 0-1000}} <integer 0–1000> For ambient_generic.
{{VT|int 0-255}} <integer 0–255> integer 0-255 For ambient_generic. Not to be confused with <byte>.
{{VT|integer}} <integer> int
{{VT|integer choices}} <integer choices> Parsed as int with selectable options.
{{VT|material property}} <property> material property Link to Material surface properties.
{{VT|RGB matrix}} <RGB matrix> Two separate links.
{{VT|script}} <script> vscript Link to Vscript.
{{VT|scriptlist}} <scriptlist>
{{VT|sky}} <sky name> skybox, skyname Link to Skybox.
{{VT|string}} <string> str
{{VT|string choices}} <string choices> String with selectable options.
{{VT|studio}} <model path> model, modelname, model name, modelpath, model path Link to Model.
{{VT|target}} <targetname> targetname, target_destination, target_source
{{VT|variant}} <variant> IO type variant.
{{VT|vector}} <vector> vecline, vec
{{VT|vector2}} <vector2> vec2 Link to Material vector#vector2.
{{VT|vector3}} <vector3> vec3 Link to Material vector#vector3.
{{VT|vector4}} <vector4> vec4 Link to Material vector#vector4.
{{VT|void}} <void> <blank> Signifies IO truly has no parameter instead of missing type.

Any other input will be a link to that input.

See also