Template:Wealth icon: Difference between revisions
From Corsair Cove Official Wiki
Generates a Wealth icon at some standardized sizes |
changed default to extra small like all other icons |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#ifeq: {{{size| | <includeonly>{{#ifeq: {{{size|xs}}} | xs | ||
| [[File:T_ICO_ShipType_Smuggler.png|x16px]] | | [[File:T_ICO_ShipType_Smuggler.png|x16px|Wealth|link=]] | ||
| <div style="position: relative; display: inline-block; width: {{#switch: {{{size|md}}}|sm=25|md=51|lg=76|xl=102}}px; height: {{#switch: {{{size|md}}}|sm=32|md=64|lg=96|xl=128}}px; padding: 0; line-height: 0; font-size: 0;">[[File:T_Flag_Principle_Wealth.png|x{{#switch: {{{size|md}}}|sm=32|md=64|lg=96|xl=128}}px]]<div style="position: absolute; top: 30%; left: 20%; width: 60%; height: 50%;">[[File:T_ICO_VEC_P_Wealth.png|x{{#switch: {{{size|md}}}|sm=16|md=32|lg=48|xl=64}}px]]</div></div> | | <div style="position: relative; display: inline-block; width: {{#switch: {{{size|md}}}|sm=25|md=51|lg=76|xl=102}}px; height: {{#switch: {{{size|md}}}|sm=32|md=64|lg=96|xl=128}}px; padding: 0; line-height: 0; font-size: 0;">[[File:T_Flag_Principle_Wealth.png|x{{#switch: {{{size|md}}}|sm=32|md=64|lg=96|xl=128}}px|link=]]<div style="position: absolute; top: 30%; left: 20%; width: 60%; height: 50%;">[[File:T_ICO_VEC_P_Wealth.png|x{{#switch: {{{size|md}}}|sm=16|md=32|lg=48|xl=64}}px|Wealth|link=]]</div></div> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
| Line 11: | Line 11: | ||
! Parameter !! Purpose | ! Parameter !! Purpose | ||
|- | |- | ||
| <code>size=</code> || choose the size, or leave as empty for the default: | | <code>size=</code> || choose the size, or leave as empty for the extra small default appropriate for inline in paragraphs: | ||
* <code>xs</code> - generates a colored vector icon only, no background image | * <code>xs</code> - default, generates a colored vector icon only, no background image | ||
* <code>sm</code> | * <code>sm</code> | ||
* <code>md</code> | * <code>md</code> | ||
* <code>lg</code> | * <code>lg</code> | ||
* <code>xl</code> | * <code>xl</code> | ||
| Line 21: | Line 21: | ||
=== Examples === | === Examples === | ||
<pre>{{Wealth icon | <pre>{{Wealth icon}}</pre> | ||
{{Wealth icon | {{Wealth icon}} | ||
<pre>{{Wealth icon|size=sm}}</pre> | <pre>{{Wealth icon|size=sm}}</pre> | ||
Latest revision as of 02:01, 1 August 2026
Generates a Wealth icon at standardized sizes.
Usage
| Parameter | Purpose |
|---|---|
size= |
choose the size, or leave as empty for the extra small default appropriate for inline in paragraphs:
|
Examples
{{Wealth icon}}
{{Wealth icon|size=sm}}
{{Wealth icon|size=md}}
{{Wealth icon|size=lg}}
{{Wealth icon|size=xl}}

And in a table:
| extra small | |
| small | |
| medium | |
| large | |
![]() |
extra large |


