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><div style="position: relative; display: inline-block; width: {{#switch: {{{size|sm}}}|xs=16|sm=32|md=64}}px; height: {{#switch: {{{size|sm}}}|xs=16|sm=32|md=64}}px; line-height: 0;"><!--
<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>
-->[[File: {{#if: {{{path|}}} | Ship tier icon {{{path}}}.png | T_SevenSeas_TierNumber.png }}|x{{#switch: {{{size|sm}}}|xs=16|sm=32|md=64}}px]]<!--
--><div style="position: absolute; top: 45%; left: 30%; width: 50%; height: 60%; font-size: {{#switch: {{{size|sm}}}|xs=12|sm=20|md=42}}px;">{{{1|1}}}</div><!--
--></div></includeonly><noinclude>


{{Ship tier icon|1|size=xs}}
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=md}}
<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:
  • Notoriety
  • Empire
  • Seafaring
  • Wealth
size= A size for the icon, or omit for size appropriate for inline in paragraphs:
  • xs - default
  • sm
  • md
  • lg
  • xl

Example

{{Ship tier icon|1}}

1

{{Ship tier icon|2|path=Notoriety}}

2

{{Ship tier icon|4|path=Empire|size=sm}}

4

{{Ship tier icon|3|path=Seafaring|size=md}}

3

{{Ship tier icon|5|path=Wealth|size=md}}

5

{{Ship tier icon|4|path=None|size=lg}}

4

{{Ship tier icon|6|path=Empire|size=xl}}

6