Template:Producer icon: Difference between revisions
From Corsair Cove Official Wiki
Redid with standardized sizes |
added parameters table |
||
| Line 8: | Line 8: | ||
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. | 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 | == Usage == | ||
Do not use this for displaying icons inline in a paragraph; it's too small. Just use the building name itself or rewrite to refer to the resource itself so you can use just the resource icon. Size <code>xs</code> is not supported by this template for this reason. | |||
{|class=wikitable | |||
! Parameter !! Purpose | |||
|- | |||
| filename || specify the filename only, no ''File:'' namespace | |||
|- | |||
| <code>size=</code> || choose the size, from small to extra large: | |||
* <code>sm</code> | |||
* <code>md</code> | |||
* <code>lg</code> | |||
* <code>xl</code> | |||
|} | |||
=== Examples === | |||
<pre>{{Producer icon|T ICO resource Hardwood.png|size=sm}}</pre> | <pre>{{Producer icon|T ICO resource Hardwood.png|size=sm}}</pre> | ||
| Line 23: | Line 39: | ||
And in table cells: | |||
<pre>{|class=wikitable | |||
! Icon !! Name | |||
|- | |||
| {{Producer icon|T ICO resource Hardwood.png|size=lg}} || small | |||
|- | |||
| {{Producer icon|T ICO resource Hardwood.png|size=lg}} || medium | |||
|- | |||
| {{Producer icon|T ICO resource Hardwood.png|size=lg}} || large | |||
|- | |||
| {{Producer icon|T ICO resource Hardwood.png|size=xl}} || extra-large | |||
|}</pre> | |||
{|class=wikitable | {|class=wikitable | ||
! Icon !! Name | ! Icon !! Name | ||
|- | |- | ||
| {{Producer icon|T ICO resource Hardwood.png|size= | | {{Producer icon|T ICO resource Hardwood.png|size=sm}} || small | ||
|- | |||
| {{Producer icon|T ICO resource Hardwood.png|size=md}} || medium | |||
|- | |- | ||
| {{Producer icon|T ICO resource Hardwood.png|size=lg}} || | | {{Producer icon|T ICO resource Hardwood.png|size=lg}} || large | ||
|- | |- | ||
| {{Producer icon|T ICO resource Hardwood.png|size= | | {{Producer icon|T ICO resource Hardwood.png|size=xl}} || extra-large | ||
|} | |} | ||
[[Category: Icon templates]] | |||
[[Category: Formatting templates]] | [[Category: Formatting templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 21:11, 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.
Usage
Do not use this for displaying icons inline in a paragraph; it's too small. Just use the building name itself or rewrite to refer to the resource itself so you can use just the resource icon. Size xs is not supported by this template for this reason.
| Parameter | Purpose |
|---|---|
| filename | specify the filename only, no File: namespace |
size= |
choose the size, from small to extra large:
|
Examples
{{Producer icon|T ICO resource Hardwood.png|size=sm}}
{{Producer icon|T ICO resource Hardwood.png|size=md}}
{{Producer icon|T ICO resource Hardwood.png|size=lg}}
{{Producer icon|T ICO resource Hardwood.png|size=xl}}
And in table cells:
{|class=wikitable
! Icon !! Name
|-
| {{Producer icon|T ICO resource Hardwood.png|size=lg}} || small
|-
| {{Producer icon|T ICO resource Hardwood.png|size=lg}} || medium
|-
| {{Producer icon|T ICO resource Hardwood.png|size=lg}} || large
|-
| {{Producer icon|T ICO resource Hardwood.png|size=xl}} || extra-large
|}
| Icon | Name |
|---|---|
| small | |
| medium | |
| large | |
| extra-large |


