Template:Reward card: Difference between revisions

From Corsair Cove Official Wiki
Lays out a card showing rewards like in quest displays
 
fixed type parameter being empty default; fixed wealth case; fixed name in parameter table
 
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--><div class="cc-reward-card"><!--
--><div class="cc-reward-card"><!--
---->{{#switch: {{{type|cohesion}}}<!--
---->{{#switch: {{#if: {{{type|}}}|{{{type}}}|cohesion}}<!--
------>|resource = {{Resource icon|{{{1|Planks}}}|size=md}}<!--
------>|resource = {{Resource icon|{{{1|Planks}}}|size=md}}<!--
------>|cohesion = {{Cohesion icon|size=md}}<!--
------>|cohesion = {{Cohesion icon|size=md}}<!--
Line 10: Line 10:
---------->|Empire    = [[File:T_ICO_ShipType_Destroyer.png|x64px|Empire|link=Empire]]<!--
---------->|Empire    = [[File:T_ICO_ShipType_Destroyer.png|x64px|Empire|link=Empire]]<!--
---------->|Seafaring = [[File:T_ICO_ShipType_Hunter.png|x64px|Seafaring|link=Seafaring]]<!--
---------->|Seafaring = [[File:T_ICO_ShipType_Hunter.png|x64px|Seafaring|link=Seafaring]]<!--
---------->|Wealth= [[File:T_ICO_ShipType_Smuggler.png|x64px|Wealth|link=Wealth]]<!--
---------->|Wealth   = [[File:T_ICO_ShipType_Smuggler.png|x64px|Wealth|link=Wealth]]<!--
-------->|Which path?}}<!--
-------->|Which path?}}<!--
------>}}<!--
------>}}<!--
Line 32: Line 32:
* <code>custom</code>
* <code>custom</code>
|-
|-
| name of the resource or path or, if custom, the name of the reward that goes in the alt text
| name or path or whatevers || name of the resource or path or, if custom, the name of the reward that goes in the alt text
|-
|-
| <code>qty=</code> || how many whatevers
| <code>qty=</code> || how many whatevers

Latest revision as of 18:19, 1 August 2026


Generates a reward card for use in infoboxes.

Usage

Parameter Purpose
type= the type of reward, from a few options:
  • cohesion - default
  • resource
  • path - for Notoriety, Empire, Seafaring, or Wealth points
  • custom
name or path or whatevers name of the resource or path or, if custom, the name of the reward that goes in the alt text
qty= how many whatevers
icon_filename= if a custom reward, specify the filename of the image to use

Examples

{{Reward card|type=resource|Tobacco|qty=500}}
Tobacco
500


{{Reward card|type=path|Seafaring|qty=3}}
Seafaring
3


{{Reward card|qty=3}}
Cohesion
3