Template:Producer icon: Difference between revisions

From Corsair Cove Official Wiki
Added description; removed some line-height and font-size from the div to avoid unwanted offsets
the inner icon should not have had a specified size
Line 1: Line 1:
<includeonly><div style="position: relative; display: inline-block; width: {{{size|96}}}px; height: {{{size|96}}}px; padding: 0; line-height: 0; font-size: 0;"><!--
<includeonly><div style="position: relative; display: inline-block; width: {{{size|96}}}px; height: {{{size|96}}}px; padding: 0; line-height: 0; font-size: 0;"><!--
-->[[File:T ICO BuildingSign Shield.png|x{{{size|96}}}px]]<!--
-->[[File:T ICO BuildingSign Shield.png|x{{{size|96}}}px]]<!--
--><div style="position: absolute; top: 19%; left: 19%; width: 62%; height: 62%;">[[File:{{{1|}}}|x{{{size|64}}}px]]</div><!--
--><div style="position: absolute; top: 19%; left: 19%; width: 62%; height: 62%;">[[File:{{{1|}}}]]</div><!--
--></div></includeonly><noinclude>
--></div></includeonly><noinclude>



Revision as of 20:34, 18 July 2026


Layers the "Producers" icon shown in the Production Chains overview, a plain wooden shield background, behind the icon with the specified filename. Applies the specified size to the whole stack, so the inner icon will be smaller.

Examples:

{{Producer icon|T ICO resource Hardwood.png|size=24}}
{{Producer icon|T ICO resource Hardwood.png|size=32}}
{{Producer icon|T ICO resource Hardwood.png|size=64}}
{{Producer icon|T ICO resource Hardwood.png|size=96}}