Template:Shader Name: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Removed title)
m (Added third section for shader)
Line 1: Line 1:
{{Shader_Name|UnlitGeneric}}
{{Shader_Name|UnlitGeneric}}  
{{Shader_Name|$detail|type=param}}
{{Shader_Name|$detail|bool|type=param}}  
{{Shader_Name|UnlitGeneric|bool}}
 
{{todo|Make automatic icon selection}}
{{todo|Make automatic icon selection}}
<includeonly><onlyinclude><!--
<includeonly><onlyinclude><!--
Line 8: Line 10:
|#default=Shader-ball.png
|#default=Shader-ball.png
|param=Shader-ball-settings.png}}|15px]]
|param=Shader-ball-settings.png}}|15px]]
</span></span><code style="background-color:rgba(221,78,78,.25); border-radius:0 4px 4px 0; color:#CCC; padding:0 4px; {{#if:{{{select|}}}|user-select:{{{select}}}|}}">{{#ifexist:{{{1}}}|[[{{{1}}}]]|{{{1}}}}}</code></span><!--
</span></span><code style="background-color:rgba(221,78,78,.25); border-radius: {{#ifeq: {{{type}}} | param | {{#if: {{{2|}}} | 0 | 0 4px 4px 0 }} | 0 4px 4px 0}}; color:#CCC; padding:0 4px; {{#if:{{{select|}}}|user-select:{{{select}}}|}}">{{#ifexist:{{{1}}}|[[{{{1}}}]]|{{{1}}}}}</code><!--
-->{{#ifeq: {{{type}}} | param | {{#if: {{{2|}}}|<code style="background-color:rgba(123,42,42,.30); border-radius:0 4px 4px 0; color:#CCC; padding:0 4px; user-select:none; pointer-events:none">{{{2}}}</code>|}} | }}</span></span><!--
--></onlyinclude></includeonly>
--></onlyinclude></includeonly>


[[Category:Formatting templates]]
[[Category:Formatting templates]]
Based on [[Template:Path]] ( {{Path|Path}} )
Based on [[Template:Path]] ( {{Path|Path}} )

Revision as of 19:36, 18 July 2023

Shader-ball.png UnlitGeneric Shader-ball-settings.png $detailbool Shader-ball.png UnlitGeneric

Todo: Make automatic icon selection

Based on Template:Path ( 🖿Path )