Template:Shader Name: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Released interaction with icon) |
||
Line 6: | Line 6: | ||
<includeonly><onlyinclude><!-- | <includeonly><onlyinclude><!-- | ||
--><span style="display:inline-flex; align-items:center; line-height:1.35em"><!-- | --><span style="display:inline-flex; align-items:center; line-height:1.35em"><!-- | ||
--><span style="background-color:#dd4e4ecc; border-radius:4px 0 0 4px; padding:0 3px 0 3px; user-select:none; pointer-events:none"><!-- | --><span style="background-color:#dd4e4ecc; border-radius:4px 0 0 4px; padding:0 3px 0 3px; {{#ifexist:{{{1}}}|user-select:auto; pointer-events:auto|user-select:none; pointer-events:none}}"><!-- | ||
--><span style="position:relative; top: -1px">[[File:{{#switch:{{{type}}} | --><span style="position:relative; top: -1px">[[ File:{{#switch:{{{type}}} | ||
|#default=Shader-ball.png | |#default=Shader-ball.png | ||
|param=Shader-ball-settings.png}}|15px]] | |param=Shader-ball-settings.png}}|15px|link={{ #ifexist:{{{1}}}|{{{1}}}| }} ]] | ||
</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}}}|{{{alt|{{{1}}}}}}]]|{{{1}}}}}</code><!-- | </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}}}|{{{alt|{{{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; {{#ifexist:{{{2}}}||pointer-events:none}}">{{#ifexist:{{{2}}}|[[{{{2}}}]]|{{{2}}}}}</code>|}} | }}</span><!-- | -->{{#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; {{#ifexist:{{{2}}}||pointer-events:none}}">{{#ifexist:{{{2}}}|[[{{{2}}}]]|{{{2}}}}}</code>|}} | }}</span><!-- |
Revision as of 11:43, 20 February 2024
Todo: Make automatic icon selection
Based on Template:Path ( Path
)
The above documentation is transcluded from Template:Shader Name/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.