Actions

Template

Difference between revisions of "Icon"

From NEC Retro

m (Text replacement - "Console icon" to "Format icon")
Line 3: Line 3:
 
| M = {{#vardefine:icondim|20}}
 
| M = {{#vardefine:icondim|20}}
 
| {{#vardefine:icondim|16}}
 
| {{#vardefine:icondim|16}}
}}<div style="display:inline-block; height:{{#var:icondim}}px; width:{{#var:icondim}}px;">[[File:{{{1}}}|{{#var:icondim}}x{{#var:icondim}}px|{{{2}}}]]</div><noinclude>[[Category:Format 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:Format icon templates]]</noinclude>

Revision as of 16:04, 31 December 2021

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