Template:Icon: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (Protected "Template:Icon": Very vital template that should not be modified ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
m (Remove some of the inline styling from icon template.)
Line 1: Line 1:
<div class="icon" style="display:inline-block; margin:5px; position:relative; padding:3px; width:32px; height:32px; background-color:#{{{color|929292}}}; border:1px solid #4B4543;">{{#ifexist: File:{{ConvertName|{{{1}}}}}.png | [[File:{{ConvertName|{{{1}}}}}.png{{!}}32px{{!}}link={{#if: {{{3|}}} |{{{3}}}|{{{1}}}{{If language suffix}}}}]] | [[File:Placeholder icon.png{{!}}link=]] <includeonly><div style="display:none;">[[File:{{{1}}}.png{{!}}32px]]</div></includeonly>}}<div style="position:absolute; bottom:0; right:3px; color:#fff; font-size:larger; font-weight: bold; text-shadow: 0px 1px 1px #000, 0px -1px 1px #000, 1px 0px 1px #000,-1px 0px 1px #000;">{{{2|}}}</div></div><noinclude>
<div class="icon">{{#ifexist: File:{{ConvertName|{{{1}}}}}.png | [[File:{{ConvertName|{{{1}}}}}.png{{!}}32px{{!}}link={{#if: {{{3|}}} |{{{3}}}|{{{1}}}{{If language suffix}}}}]] | [[File:Placeholder icon.png{{!}}link=]] <includeonly><div style="display:none;">[[File:{{{1}}}.png{{!}}32px]]</div></includeonly>}}<div style="position:absolute; bottom:0; right:3px; color:#fff; font-size:larger; font-weight: bold; text-shadow: 0px 1px 1px #000, 0px -1px 1px #000, 1px 0px 1px #000,-1px 0px 1px #000;">{{{2|}}}</div></div><noinclude>


==Usage==
==Usage==

Revision as of 18:48, 10 February 2017

Placeholder icon.png

Usage

{{icon|Logistics|2|Logistics_2}}

Produces:

Logistics.png
2