Template:Ship tier icon: Difference between revisions
From Corsair Cove Official Wiki
Shows an icon with a Principle Path–colored background and a tier number, for ships |
Updated with css new classes |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>< | <includeonly><span class="cc-ship-tier-icon cc-ship-tier-icon-{{lc:{{{path|None}}}}}" style="--instance-width: {{#switch: {{{size|xs}}}|xs=16|sm=32|md=64|lg=96|xl=128}}px; --instance-font-size: {{#switch: {{{size|xs}}}|xs=18|sm=26|md=48|lg=72|xl=96}}px;">{{{1|1}}}</span></includeonly><noinclude> | ||
- | |||
- | |||
Generates a Principle Path–appropriate icon with a number, indicating the tier of a ship, similar to as seen in-game. Uses standard sizes extra small through extra large. | |||
== Usage == | |||
{|class="wikitable sortable" | |||
! Parameter !! Purpose | |||
|- | |||
| tier number || <code>1</code> through <code>6</code> | |||
|- | |||
| <code>path=<code> || One of the Principle Path names, or omit for a plain icon: | |||
* <code>Notoriety</code> | |||
* <code>Empire</code> | |||
* <code>Seafaring</code> | |||
* <code>Wealth</code> | |||
|- | |||
| <code>size=</code> || A size for the icon, or omit for size appropriate for inline in paragraphs: | |||
* <code>xs</code> - default | |||
* <code>sm</code> | |||
* <code>md</code> | |||
* <code>lg</code> | |||
* <code>xl</code> | |||
|} | |||
=== Example === | |||
<pre>{{Ship tier icon|1}}</pre> | |||
{{Ship tier icon|1}} | |||
<pre>{{Ship tier icon|2|path=Notoriety}}</pre> | |||
{{Ship tier icon|2|path=Notoriety}} | {{Ship tier icon|2|path=Notoriety}} | ||
{{Ship tier icon|4|path=Empire|size= | <pre>{{Ship tier icon|4|path=Empire|size=sm}}</pre> | ||
{{Ship tier icon|4|path=Empire|size=sm}} | |||
{{Ship tier icon|3|path=Seafaring}} | <pre>{{Ship tier icon|3|path=Seafaring|size=md}}</pre> | ||
{{Ship tier icon|3|path=Seafaring|size=md}} | |||
<pre>{{Ship tier icon|5|path=Wealth|size=md}}</pre> | |||
{{Ship tier icon|5|path=Wealth|size=md}} | {{Ship tier icon|5|path=Wealth|size=md}} | ||
<pre>{{Ship tier icon|4|path=None|size=lg}}</pre> | |||
{{Ship tier icon|4|path=None|size=lg}} | |||
<pre>{{Ship tier icon|6|path=Empire|size=xl}}</pre> | |||
{{Ship tier icon|6|path=Empire|size=xl}} | |||
[[Category: Icon templates]] | [[Category: Icon templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 18:39, 6 August 2026
Generates a Principle Path–appropriate icon with a number, indicating the tier of a ship, similar to as seen in-game. Uses standard sizes extra small through extra large.
Usage
| Parameter | Purpose |
|---|---|
| tier number | 1 through 6
|
path= |
One of the Principle Path names, or omit for a plain icon:
|
size= |
A size for the icon, or omit for size appropriate for inline in paragraphs:
|
Example
{{Ship tier icon|1}}
{{Ship tier icon|2|path=Notoriety}}
{{Ship tier icon|4|path=Empire|size=sm}}
{{Ship tier icon|3|path=Seafaring|size=md}}
{{Ship tier icon|5|path=Wealth|size=md}}
{{Ship tier icon|4|path=None|size=lg}}
{{Ship tier icon|6|path=Empire|size=xl}}


