Template:Icon: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
m (solved conflict with classes)
(Allow arbitrary overlay text to be used with template.)
Line 1: Line 1:
<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>
<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="{{{icon-text-class|factorio-icon-text}}}">{{{2|}}}</div></div><noinclude>


==Usage==
==Usage==

Revision as of 15:09, 7 June 2017

Placeholder icon.png

Usage

{{icon|Logistics|2|Logistics_2}}

Produces:

Logistics.png
2