Template:Icontech: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(An icon template for techs with green background)
 
(Undo revision 151348 by Bilka (talk))
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="icontech" style="display:inline-block; margin:5px; position:relative; padding:3px; width:32px; height:32px; background-color:#32cd32; border:1px solid #ccc;">{{#ifexist: File:{{{1}}}.png | [[File:{{{1}}}.png{{!}}32px{{!}}link={{{3}}}]] | [[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;">{{{2|}}}</div></div><noinclude>
{{Icon|{{{1}}}|{{{2|}}}|{{{3|}}}|color=228B22}}<noinclude>
 
{{doc}}</noinclude>
==Usage==
<pre>
{{icontech|Logistics|2|Logistics_2}}
</pre>
Produces:
 
{{icontech|Logistics|2|Logistics_2}}
</noinclude>

Latest revision as of 11:59, 21 October 2017

Placeholder icon.png
[[File:{{{1}}}.png|32px]]

[View] [Edit] [Page history]

Documentation

This is basically the icon template but with a set color and without the ability to set the icon-text-class.

Icon links to the first param if the third param is not given.

Usage

{{icontech|Bullet damage (research)|2}}

Produces:

Bullet damage (research).png
2
List of all templates