Template:Resource stack: Difference between revisions

From Corsair Cove Official Wiki
Renders a neat stack of quantities of resource icons and names
 
m Examples: typo in examples
 
Line 26: Line 26:




<pre>{{Resource stack|Jolly Roger=1|Pistols=1|Booze=1|size=md}}</pre>
<pre>{{Resource stack|Jolly Roger=|Pistols=|Booze=0|size=md}}</pre>
{{Resource stack|Jolly Roger=|Pistols=|Booze=0|size=md}}
{{Resource stack|Jolly Roger=|Pistols=|Booze=0|size=md}}



Latest revision as of 18:16, 29 July 2026


Displays a table of the specified quantities, resources icons, and resource names. Resource names must be spelled and capitalized exactly as their article name.

Usage

Parameter Purpose
resource name the name of the resource, as spelled and capitalized in-game, followed by = and its quantity; zeros or blanks (=0 or just = does not display a number
size= size of the icons, in the standardized sizes. since the stack isn't meant for paragraphs, the default is small instead:
  • xs
  • sm - default
  • md
  • lg
  • xl
show_names= if you want to skip the name and just show the linked icons, add show_names=false

Examples

{{Resource stack|Planks=30|Stone Blocks=10}}
10 Stone Blocks Stone Blocks
30 Planks Planks


{{Resource stack|Jolly Roger=|Pistols=|Booze=0|size=md}}
Jolly Roger Jolly Roger
Booze Booze
Pistols Pistols