Template:VT
From Valve Developer Community
Revision as of 23:41, 9 January 2024 by 1416006136 (talk | contribs) (added Simplified Chinese translations)

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|???}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
Unknown type, verify from FGD docs. (with hover info) | |
{{VT|angle}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
Parsed as QAngle. | |
{{VT|angles}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
Parsed as QAngle. | |
{{VT|axis}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
||
{{VT|bool}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
boolean | FGD KV type is (in all games since ![]() ![]() Use choices instead in earlier games' FGDs, but note them as Booleans on the game pages themselves. |
{{VT|byte}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
unsigned char | Range 0-255. If the variable uses a regular integer with clamped range, use ![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} instead. |
{{VT|byte choices}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
||
{{VT|char}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
Use for signed chars (-128 to 127). | |
{{VT|char choices}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
||
{{VT|choices}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
Preferably use version which indicates the actual data type parsed by the code, such as
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} , ![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} , or ![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} . | |
{{VT|color1}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
||
{{VT|color255}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
RGB, rgb | |
{{VT|color255 + int}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
color255+int | |
{{VT|env_cubemap / texture}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
cubemap/texture, cubemap / texture, env cubemap/texture, env cubemap / texture, env_cubemap/texture, env_cubemap / texture | |
{{VT|ehandle}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
IO type ehandle. | |
{{VT|file}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
filename, filepath | File path, treated as string. |
{{VT|filter}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
filterclass | |
{{VT|float}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
||
{{VT|int}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
integer | Enums without explicit type use this. |
{{VT|int 0-10}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
For ambient_generic. | |
{{VT|int 0-100}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
For ambient_generic. | |
{{VT|int 0-1000}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
For ambient_generic. | |
{{VT|int 0-255}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
integer 0-255 | For ambient_generic. Not to be confused with
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} . |
{{VT|integer}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
int | |
{{VT|integer choices}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
Parsed as int with selectable options. | |
{{VT|material property}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
material property | Link to Material surface properties. |
{{VT|RGB matrix}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
Two separate links. | |
{{VT|script}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
vscript | Link to Vscript. |
{{VT|scriptlist}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
||
{{VT|sky}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
skybox, skyname | Link to Skybox. |
{{VT|string}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
str | |
{{VT|string choices}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
String with selectable options. | |
{{VT|studio}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
model, modelname, model name, modelpath, model path | Link to Model. |
{{VT|target}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
targetname, target_destination, target_source | |
{{VT|variant}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
IO type variant. | |
{{VT|vector}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
vecline, vec | |
{{VT|vector2}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
vec2 | Link to Material vector#vector2. |
{{VT|vector3}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
vec3 | Link to Material vector#vector3. |
{{VT|vector4}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
vec4 | Link to Material vector#vector4. |
{{VT|void}} |
![]() This template (and its redirect) is
![]() You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion. Additional notes: Use #switch parser function instead. Example {{#switch: {{language}} |
<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}}
The above documentation is transcluded from Template:VT/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Hidden categories: