Template:Shader/doc: Difference between revisions
Jump to navigation
Jump to search
m (Updated due to the expansion of functionality) |
mNo edit summary |
||
Line 24: | Line 24: | ||
| {{Capsule|margin=5px| {{Shader_Name|key|value}} }} {{Capsule|margin=5px| {{Shader_Name|type=param|key|value}} }} | | {{Capsule|margin=5px| {{Shader_Name|key|value}} }} {{Capsule|margin=5px| {{Shader_Name|type=param|key|value}} }} | ||
|- | |- | ||
| align=center | {{Param|alt}} | |||
| This displays alternate text for the {{param|1}} parameter. Useful when wanting to make the link to the, for example, [[Water (shader)]] shader look more formal. | |||
| {{CodeBlock|margin=5px| <nowiki>{{Shader Name|Water (shader)|alt=Water}}</nowiki>}} | |||
| {{Capsule|margin=5px| {{Shader Name|Water (shader)|alt=Water}} }} | |||
|} | |} |
Revision as of 10:15, 11 January 2024

This is a documentation subpage for Template:Shader.
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.
Shader name/param
Parameters and Examples
Parameter | Description | Examples | Preview |
---|---|---|---|
{{{1}}} | Shader / parameter name | ||
{{{2}}} | Value. Works only if type is param |
![]() $detail notexisting | |
{{{type}}} | At the moment it has one value - param. Param sets shader parameter icon and unlock 3rd field. | ![]() key ![]() key value | |
{{{alt}}} | This displays alternate text for the {{{1}}} parameter. Useful when wanting to make the link to the, for example, Water (shader) shader look more formal. |