Actions

Template

Difference between revisions of "Icon"

From NEC Retro

(Created page with "{{#ifeq: {{#var:size}}} | L | [[File:{{{1}}}|{{{2}}}]] | [[File:{{{1}}}|16px|{{{2}}}]]}}<noinclude>Category:Console icon templates</noinclude>")
 
m
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{#ifeq: {{#var:size}}} | L | [[File:{{{1}}}|{{{2}}}]] | [[File:{{{1}}}|16px|{{{2}}}]]}}<noinclude>[[Category:Console icon templates]]</noinclude>
+
{{#switch: {{{3}}}
 +
| L = {{#vardefine:icondim|32}}
 +
| M = {{#vardefine:icondim|20}}
 +
| {{#vardefine:icondim|16}}
 +
}}<div style="display:inline-block; line-height:0px; height:{{#var:icondim}}px; width:{{#var:icondim}}px; {{#if: {{{background|}}} | background-color:{{{background}}}; }}">[[File:{{{1}}}|{{#var:icondim}}x{{#var:icondim}}px|{{{2}}}]]</div><noinclude>[[Category:Icon templates]]</noinclude>

Latest revision as of 08:02, 10 April 2022

[[File:{{{1}}}|16x16px|{{{2}}}]]