Template:Icon: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (moved style to sylesheet)
m (solved conflict with classes)
Line 1: Line 1:
<div class="icon" style="background-color:#{{{color|929292}}};">{{#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 class="icon-text">{{{2|}}}</div></div><noinclude>
<div class="factorio-icon" style="background-color:#{{{color|929292}}};">{{#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 class="factorio-icon-text">{{{2|}}}</div></div><noinclude>


==Usage==
==Usage==

Revision as of 19:38, 10 February 2017

Placeholder icon.png

Usage

{{icon|Logistics|2|Logistics_2}}

Produces:

Logistics.png
2