Template:Icon: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<div class="icon" style="display:inline-block; margin:5px; position:relative; width:35px; height:35px; background-color:#999; border:1px solid #ccc;">{{#ifexist: File:{{{1}}}.png | [[File:{{{1}}}.png{{!}}link={{{1}}}]] | [[File:Placeholder icon.png{{!}}link=]] <includeonly><div style="display:none;">[[File:{{{1}}}.png]]</div></includeonly>}}<div style="position:absolute; bottom:0; right:3px; color:#fff;">{{{2|}}}</div></div><noinclude>
<div class="icon" style="display:inline-block; margin:5px; position:relative; width:35px; height:35px; background-color:#999; border:1px solid #ccc;">{{#ifexist: File:{{{1}}} icon.png | [[File:{{{1}}} icon.png{{!}}link={{{1}}}]] | [[File:Placeholder icon.png{{!}}link=]] <includeonly><div style="display:none;">[[File:{{{1}}} icon.png]]</div></includeonly>}}<div style="position:absolute; bottom:0; right:3px; color:#fff;">{{{2|}}}</div></div><noinclude>


==Usage==
==Usage==
Line 5: Line 5:
{{icon|Time|25}}
{{icon|Time|25}}
</pre>
</pre>
Produces:
Produces:


{{icon|Time|25}}
{{icon|Time|25}}
</noinclude>
</noinclude>

Revision as of 05:17, 27 June 2013

Placeholder icon.png

Usage

{{icon|Time|25}}

Produces:

Time icon.png
25