Template:Icontech: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(category)
 
(10 intermediate revisions by 2 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:#228B22; 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}}[[Category:Templates]]</noinclude>
==Usage==
<pre>
{{icontech|armor-making|2|Armor crafting 2}}
</pre>
Produces:
 
{{icontech|armor-making|2|Armor crafting 2}}
</noinclude>

Latest revision as of 20:05, 24 September 2023

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