Template:VT/doc: Difference between revisions
Jump to navigation
Jump to search
m (→Usage) |
Thunder4ik (talk | contribs) m (clean up, replaced: See Also → See also, {{Documentation subpage → {{Doc/subpage) |
||
Line 1: | Line 1: | ||
{{ | {{Doc/subpage}} | ||
<!-- Please place categories where indicated at the bottom of this page.) --> | <!-- Please place categories where indicated at the bottom of this page.) --> | ||
Just a list template for FGD and shader parameter templates to easily link to a wide variety of variable types. | Just a list template for FGD and shader parameter templates to easily link to a wide variety of variable types. | ||
Line 62: | Line 62: | ||
Any other input will be a link to that input. | Any other input will be a link to that input. | ||
==See | ==See also== | ||
*{{tl|IO}} | *{{tl|IO}} | ||
*{{tl|KV}} | *{{tl|KV}} |
Revision as of 02:30, 12 January 2024

This is a documentation subpage for Template:VT.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
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 | Other Values | Notes |
---|---|---|---|
{{VT|axis}} |
<axis> | ||
{{VT|bool}} |
<boolean> | boolean | (in all games since ![]() ![]() Use choices instead in earlier games. |
{{VT|choices}} |
<choices> | ||
{{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|int 0-255}} |
<integer 0–255> | For ambient_generic | |
{{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
{{IO}}
{{KV}}
{{MatParam}}