Template:Ship tier icon: Difference between revisions
From Corsair Cove Official Wiki
Updated documentation; outstanding alignment issue in xs paragraph size to solve with CSS |
Updated with css new classes |
||
| Line 1: | Line 1: | ||
<includeonly><span class="cc-ship-tier-icon | <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 | 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 == | == Usage == | ||
| Line 13: | Line 10: | ||
| tier number || <code>1</code> through <code>6</code> | | tier number || <code>1</code> through <code>6</code> | ||
|- | |- | ||
| <code>path=<code> || One of the Principle Path names, or omit for a plain | | <code>path=<code> || One of the Principle Path names, or omit for a plain icon: | ||
* <code>Notoriety</code> | * <code>Notoriety</code> | ||
* <code>Empire</code> | * <code>Empire</code> | ||
| Line 23: | Line 20: | ||
* <code>sm</code> | * <code>sm</code> | ||
* <code>md</code> | * <code>md</code> | ||
* <code>lg</code> | |||
* <code>xl</code> | |||
|} | |} | ||
| Line 41: | Line 40: | ||
<pre>{{Ship tier icon|5|path=Wealth|size=md}}</pre> | <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}}


