Template:VT/doc: Difference between revisions
Jump to navigation
Jump to search
Bug:the RGB matrix entry suddenly stopped working. it is not clear why. [todo tested in ?]
Kestrelguy (talk | contribs) (we do a little documentation) |
Kestrelguy (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation 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 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. | ||
{{bug|the RGB matrix entry suddenly stopped working. it is not clear why.}} | |||
== Usage == | == 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. | 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. | ||
Line 62: | Line 63: | ||
Any other input will be a link to that input. | Any other input will be a link to that input. | ||
==See Also== | ==See Also== | ||
*{{tl|IO}} | |||
*{{tl|KV}} | *{{tl|KV}} | ||
*{{tl| | *{{tl|MatParam}} | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line, please --> | <!-- Categories below this line, please --> | ||
[[Category:FGD Templates]] | [[Category:FGD Templates]] | ||
}}</includeonly> | }}</includeonly> |
Revision as of 15:44, 16 October 2022

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 |
---|---|---|---|
{{KV Type|axis}} |
<axis> | ||
{{KV Type|bool}} |
<boolean> | boolean | (in all games since ![]() ![]() Use choices instead in earlier games. |
{{KV Type|choices}} |
<choices> | ||
{{KV Type|color255}} |
<color255> | RGB | |
{{KV Type|color255 + int}} |
<color255 + int> | color255+int | |
{{KV Type|env_cubemap / texture}} |
<env_cubemap/texture> | cubemap/texture, cubemap / texture, env cubemap/texture, env cubemap / texture, env_cubemap/texture | |
{{KV Type|filter}} |
<filter> | filterclass | |
{{KV Type|float}} |
<float> | ||
{{KV Type|int}} |
<integer> | integer | |
{{KV Type|int 0-10}} |
<integer 0–10> | For ambient_generic | |
{{KV Type|int 0-100}} |
<integer 0–100> | For ambient_generic | |
{{KV Type|int 0-1000}} |
<integer 0–1000> | For ambient_generic | |
{{KV Type|int 0-255}} |
<integer 0–255> | For ambient_generic | |
{{KV Type|property}} |
<property> | material property | Is a link to Material surface properties. |
{{KV Type|RGB matrix}} |
<RGB matrix> | Is two separate links. | |
{{KV Type|script}} |
<script> | vscript | Is a link to Vscript. |
{{KV Type|scriptlist}} |
<scriptlist> | ||
{{KV Type|string}} |
<string> | str | |
{{KV Type|studio}} |
<model path> | model, modelname, model name, modelpath, model path | Is a link to Model. |
{{KV Type|target}} |
<targetname> | target_name, target_destination, target_source | |
{{KV Type|vector}} |
<vector> | vecline | |
{{KV Type|vector2}} |
<vector2> | ||
{{KV Type|vector3}} |
<vector3> | ||
{{KV Type|vector4}} |
<vector4> | ||
{{KV Type|void}} |
<void> | <blank> |
Any other input will be a link to that input.
See Also
{{IO}}
{{KV}}
{{MatParam}}