Template:VT
跳至導覽
跳至搜尋
Available doc translations

…
The Template:VT/doc/zh-tw documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
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.

This article or section needs to be updated to include current information regarding the subject because:
There have been some changes and additions since this table was made.
Remember to check for any notes left by the tagger at this article's talk page.Code | Output | Aliases | Notes |
---|---|---|---|
{{VT|axis}} |
<axis> | ||
{{VT|bool}} |
<boolean > | 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}} |
<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 | |
{{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 | |
{{VT|filter}} |
<filter > | filterclass | |
{{VT|float}} |
<float > | ||
{{VT|int}} |
<integer > | integer | |
{{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|integer 0-255}} |
<integer 0–255> | For ambient_generic. Not to be confused with <byte >. | |
{{VT|property}} |
<property > | material property | Is a link to Material surface properties. |
{{VT|RGB matrix}} |
<RGB matrix > | Is two separate links. | |
{{VT|script}} |
<script > | vscript | Is a link to Vscript. |
{{VT|scriptlist}} |
<scriptlist > | ||
{{VT|string}} |
<string > | str | |
{{VT|studio}} |
<model path > | model, modelname, model name, modelpath, model path | Is a link to Model. |
{{VT|target}} |
<targetname > | target_name, target_destination, target_source | |
{{VT|vector}} |
<vector > | vecline | |
{{VT|vector2}} |
<vector2 > | ||
{{VT|vector3}} |
<vector3 > | ||
{{VT|vector4}} |
<vector4 > | ||
{{VT|void}} |
<void> | <blank> |
Any other input will be a link to that input.
See also