Template:Icon: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
mNo edit summary
(including the requested file but hiding it will make it show up in maintenance reports)
Line 1: Line 1:
<div class="icon" style="display:inline-block; margin:5px; position:relative; padding:3px; width:64px; height:64px; background-color:#999; border:1px solid #ccc;">[[{{#ifexist: File:{{{1}}}.png | File:{{{1}}}.png{{!}}link={{{1}}} | File:Placeholder icon.png{{!}}link=}}]]<div style="position:absolute; bottom:0; right:3px; color:#fff; font-size:larger;">{{{2|}}}</div></div><noinclude>
<div class="icon" style="display:inline-block; margin:5px; position:relative; padding:3px; width:64px; height:64px; background-color:#999; border:1px solid #ccc;">{{#ifexist: File:{{{1}}}.png | [[File:{{{1}}}.png{{!}}link={{{1}}}]] | [[File:Placeholder icon.png{{!}}link=]] <div style="display:none;">[[File:{{{1}}}.png]]</div>}}<div style="position:absolute; bottom:0; right:3px; color:#fff; font-size:larger;">{{{2|}}}</div></div><noinclude>


==Usage==
==Usage==

Revision as of 05:00, 27 June 2013

Placeholder icon.png
[[File:{{{1}}}.png]]

Usage

{{icon|Logistics|2}}

Produces:

Logistics.png
2