Actions

Template

Difference between revisions of "Icon"

From NEC Retro

m
m
 
(4 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
| M = {{#vardefine:icondim|20}}
 
| M = {{#vardefine:icondim|20}}
 
| {{#vardefine:icondim|16}}
 
| {{#vardefine:icondim|16}}
}}<div style="display:block-inline; max-height:{{#var:icondim}}px; max-width:{{#var:icondim}}px;">[[File:{{{1}}}|{{#var:icondim}}x{{#var:icondim}}px|{{{2}}}]]</div><noinclude>[[Category:Console icon templates]]</noinclude>
+
}}<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 07:02, 10 April 2022

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