Template:VT: Difference between revisions
(looks messy not sure if I got all) |
SirYodaJedi (talk | contribs) (Add char, just in case it's used somewhere.) |
||
Line 12: | Line 12: | ||
| bool | | bool | ||
| boolean = {{Lx|boolean}} | | boolean = {{Lx|boolean}} | ||
| unsigned char | |||
| byte = {{Lx|byte}} | | byte = {{Lx|byte}} | ||
| byte choices = {{Lx|byte}} choices | | byte choices = {{Lx|byte}} choices | ||
| char = {{Lx|char}} | |||
| char choices = {{Lx|char}} choices}} | |||
| choices = choices | | choices = choices | ||
| rgb | | rgb |
Revision as of 07:27, 6 May 2025

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|???}} |
???>| hr = <???(en)>|zh = <???(en)>| ru = <???(en)>| fr = <???(en)>
}} || || Unknown type, verify from FGD docs. (with hover info) | ||
{{VT|angle}} |
angle>| hr = <angle(en)>|zh = <angle(en)>| ru = <angle(en)>| fr = <angle(en)>
}} || || Parsed as QAngle. | ||
{{VT|angles}} |
angles>| hr = <angles(en)>|zh = <angles(en)>| ru = <углы(en)>| fr = <angles(en)>
}} || || Parsed as QAngle. | ||
{{VT|axis}} |
axis>| hr = <axis>|zh = <轴>| ru = <координаты(en)>| fr = <axis(en)>
}} || || | ||
{{VT|bool}} |
bool>| hr = <boolean(en)>|zh = <布尔值(en)>| ru = <булева переменная(en)>| fr = <bool(en)>
}} || boolean || FGD KV type is (in all games since | ||
{{VT|byte}} |
byte>| hr = <byte(en)>|zh = <byte(en)>| ru = <byte(en)>| fr = <byte(en)>
}} || unsigned char || Range 0-255. | ||
{{VT|byte choices}} |
byte choices>| hr = <byte(en) izbora>|zh = <byte choices(en)>| ru = <byte choices(en)>| fr = <byte choices(en)>
}} || || | ||
{{VT|char}} |
char>| hr = <char(en)>|zh = <char(en)>| ru = <char(en)>| fr = <char(en)>
}} || || Use for signed chars (-128 to 127). | ||
{{VT|char choices}} |
char choices>| hr = <char choices(en)>|zh = <char choices(en)>| ru = <char choices(en)>| fr = <char choices(en)>
}} || || | ||
{{VT|choices}} |
choices>| hr = <izbora>|zh = <choices>| ru = <варианты выбора>| fr = <les choix>
}} || || Preferably use version which indicates the actual data type parsed by the code, such as byte choices>| hr = <byte(en) izbora>|zh = <byte choices(en)>| ru = <byte choices(en)>| fr = <byte choices(en)> }}, integer choices>| hr = <integer(en) izbora>|zh = <integer choices(en)>| ru = <integer choices(en)>| fr = <integer choices(en)> }}, or string choices>| hr = <niz(en) izbora>|zh = <string choices(en)>| ru = <string choices(en)>| fr = <string choices(en)> }}. | ||
{{VT|color1}} |
color1>| hr = <color1(en)>|zh = <color1(en)>| ru = <color1(en)>| fr = <color1(en)>
}} || || | ||
{{VT|color255}} |
color255>| hr = <boja255(en)>|zh = <color255(en)>| ru = <цвет КЗС(en)>| fr = <color255(en)>
}} || RGB, rgb || | ||
{{VT|color255 + int}} |
color255 + int>| hr = <boja255(en) + int(en)>|zh = <color255(en) + 整数(en)>| ru = <цвет КЗС(en) + целое число(en)>| fr = <color255 + int(en)>
}} || color255+int || | ||
{{VT|env_cubemap / texture}} |
env_cubemap / texture>| hr = <env_cubemap/tekstura(en)>|zh = <env_cubemap / 纹理(en)>| ru = <env_cubemap/текстура(en)>| fr = <env_cubemap / texture(en)>
}} || cubemap/texture, cubemap / texture, env cubemap/texture, env cubemap / texture, env_cubemap/texture, env_cubemap / texture || | ||
{{VT|ehandle}} |
ehandle>| hr = <ehandle(en)>|zh = <ehandle(en)>| ru = <ehandle(en)>| fr = <ehandle(en)>
}} || || IO type ehandle. | ||
{{VT|file}} |
file>| hr = <put datoteke>|zh = <file(en)>| ru = <file(en)>| fr = <file(en)>
}} || filename, filepath || File path, treated as string. | ||
{{VT|filter}} |
filter>| hr = <filter(en)>|zh = <filter(en)>| ru = <фильтр(en)>| fr = <filter(en)>
}} || filterclass || | ||
{{VT|float}} |
float>| hr = <float(en)>|zh = <浮点型(en)>| ru = <число с плавающей запятой(en)>| fr = <float(en)>
}} || || | ||
{{VT|int}} |
int>| hr = <integer(en)>|zh = <整数(en)>| ru = <целое число(en)>| fr = <int(en)>
}} || integer || Enums without explicit type use this. | ||
{{VT|int 0-10}} |
int 0-10>| hr = <integer(en) 0–10>|zh = <整数 0-10 (en)>| ru = <целое число(en) 0–10>| fr = <int 0-10(en)>
}} || || For ambient_generic. | ||
{{VT|int 0-100}} |
int 0-100>| hr = <integer(en) 0–100>|zh = <整数 0-100 (en)>| ru = <целое число(en) 0–100>| fr = <int 0-100(en)>
}} || || For ambient_generic. | ||
{{VT|int 0-1000}} |
int 0-1000>| hr = <integer(en) 0–1000>|zh = <整数 0-1000 (en)>| ru = <целое число(en) 0–1000>| fr = <int 0-1000(en)>
}} || || For ambient_generic. | ||
{{VT|int 0-255}} |
int 0-255>| hr = <int 0-255(en)>|zh = <整数 0-255 (en)>| ru = <целое число(en) 0–255>| fr = <int 0-255(en)>
}} || integer 0-255 || For ambient_generic. Not to be confused with byte>| hr = <byte(en)>|zh = <byte(en)>| ru = <byte(en)>| fr = <byte(en)> }}. | ||
{{VT|integer}} |
integer>| hr = <integer(en)>|zh = <整数(en)>| ru = <целое число(en)>| fr = <entier(en)>
}} || int || | ||
{{VT|integer choices}} |
integer choices>| hr = <integer(en) izbora>|zh = <integer choices(en)>| ru = <integer choices(en)>| fr = <integer choices(en)>
}} || || Parsed as int with selectable options. | ||
{{VT|material property}} |
property>| hr = <vlasništvo(en)>|zh = <属性(en)>| ru = <свойство(en)>| fr = <property(en)>
}} || material property || Link to Material surface properties. | ||
{{VT|RGB matrix}} |
RGB matrix>| hr = <RGB(en) matrix(en)>|zh = <RGB matrix(en)>| ru = <RGB(en) матрица(en)>| fr = <RGB matrix(en)>
}} || || Two separate links. | ||
{{VT|script}} |
script>| hr = <script(en)>|zh = <脚本(en)>| ru = <скрипт(en)>| fr = <script(en)>
}} || vscript ||rowspan="2"| Link to Vscript. | ||
{{VT|scriptlist}} |
scriptlist>| hr = <popis skripti(en)>|zh = <脚本列表(en)>| ru = <скриптлист VScript(en)>| fr = <scriptlist(en)>
}} || | ||
{{VT|sky}} |
sky>| hr = <sky(en)>|zh = <sky(en)>| ru = <sky(en)>| fr = <sky(en)>
}} || skybox, skyname || Link to Skybox. | ||
{{VT|string}} |
string>| hr = <niz(en)>|zh = <字符串(en)>| ru = <строка(en)>| fr = <chaîne(en)>
}} || str || | ||
{{VT|string choices}} |
string choices>| hr = <niz(en) izbora>|zh = <string choices(en)>| ru = <string choices(en)>| fr = <string choices(en)>
}} || || String with selectable options. | ||
{{VT|studio}} |
studio>| hr = <put modela(en)>|zh = <模型文件路径(en)>| ru = <путь к модели(en)>| fr = <chemin du modèle(en)>
}} || model, modelname, model name, modelpath, model path || Link to Model. | ||
{{VT|target}} |
target>| hr = <targetname(en)>|zh = <目标名(en)>| ru = <целевой объект(en)>| fr = <target(en)>
}} || targetname, target_destination, target_source || | ||
{{VT|variant}} |
variant>| hr = <variant(en)>|zh = <variant(en)>| ru = <variant(en)>| fr = <variant(en)>
}} || || IO type variant. | ||
{{VT|vector}} |
vector>| hr = <vector(en)>|zh = <向量(en)>| ru = <вектор(en)>| fr = <vector(en)>
}} || vecline, vec || | ||
{{VT|vector2}} |
vector2>| hr = <vector2(en)>|zh = <向量2(en)>| ru = <вектор2(en)>| fr = <vector2(en)>
}} || vec2 || Link to Material vector#vector2. | ||
{{VT|vector3}} |
vector3>| hr = <vector3(en)>|zh = <向量3(en)>| ru = <вектор3(en)>| fr = <vector3(en)>
}} || vec3 || Link to Material vector#vector3. | ||
{{VT|vector4}} |
vector4>| hr = <vector4(en)>|zh = <向量4(en)>| ru = <вектор4(en)>| fr = <vector4(en)>
}} || vec4 || Link to Material vector#vector4. | ||
{{VT|void}} |
void>| hr = <void>|zh = <void>| ru = <пусто(en)>| fr = <void>
}} || <blank> || Signifies IO truly has no parameter instead of missing type. |
Any other input will be a link to that input.
See also
{{I}}
{{O}}
{{KV}}
{{MatParamDef}}
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.