Template:Resource icon: Difference between revisions

From Corsair Cove Official Wiki
m fixed the table formatting
Dorce (talk | contribs)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[[File:{{#switch: {{{1|}}}
<includeonly>{{#invoke:ResourceIcon|icon|{{{1|}}}|size={{{size|xs}}}}}</includeonly><noinclude>
| Barrel          = T_ICO_resource_Barrel.png
| Birds            = lT_ICO_iresource_bird.png
| Black Powder    = T_ICO_resource_blackPowder.png
| Booze            = T_ICO_resource_DefaultAle.png
| Boots            = T_ICO_resource_Boots.png
| Cannonball      = T_ICO_resource_CannonballMetall.png
| Cassava Bread    = T_ICO_resource_CassavaBread.png
| Cassava Roots    = T_ICO_resource_cassavaRoot.png
| Cast Iron        = T_ICO_cast_iron.png
| Charcoal        = T_ICO_Charburner.png
| Cochineal        = T_ICO_resource_Cochineal.png
| Colour Pigment  = T_ICO_resource_ColorPigment.png
| Copper          = T_ICO_resource_copperBars.png
| Copper Lamp      = T_ICO_resource_CopperLamp.png
| Copper Ore      = T_ICO_resource_copper.png
| Eggs            = T_ICO_resource_egg.png
| Eyepatch        = T_ICO_resource_EyePatch.png
| Fabric          = T_ICO_resource_Canvas2.png
| Fancy Clothing  = T_ICO_resource_Garments.png
| Fibre            = T_ICO_Fibres.png
| Figurehead      = T_ICO_Figurehead.png
| Fish            = T_ICO_resource_Fish.png
| Fittings        = T_ICO_resource_Fittings.png
| Fresh Water      = T_ICO_resource_FreshWater.png
| Grain            = T_ICO_resource_Grain.png
| Guano            = T_ICO_resource_guano.png
| Hard Tack        = T_ICO_resource_HardTack.png
| Hardwood        = T_ICO_resource_Hardwood.png
| Herbs            = T_ICO_resource_herbs.png
| Iron Ore        = T_ICO_resource_ironOre.png
| Jewellery        = T_ICO_resource_Jewelry.png
| Jolly Roger      = T_ICO_resource_JollyRoger.png
| Lead            = T_ICO_resource_Lead.png
| Lead Ore        = T_ICO_resource_LeadOre.png
| Leather          = T_ICO_resource_Leather.png
| Lens            = T_ICO_resource_Lens.png
| Lime            = T_ICO_resource_limestone.png
| Medicine        = T_ICO_resource_medicine.png
| Naval Gun        = T_ICO_resource_navalCannon.png
| Pearl            = T_ICO_resource_Pearl.png
| Pig              = T_ICO_resource_pig.png
| Pineapple        = T_ICO_resource_pineapple.png
| Pistols          = T_ICO_resource_Handgun04.png
| Pitch            = T_ICO_resource_Pitch.png
| Planks          = T_ICO_resource_plank.png
| Prosthesis      = T_ICO_resource_Prosthetics.png
| Roast Bird      = T_ICO_resource_RoastBird.png
| Rope            = T_ICO_resource_rope.png
| Rum              = T_ICO_resource_Rum.png
| Sabres          = T_ICO_resource_cutlass.png
| Sails            = T_ICO_resource_Sails.png
| Salt            = T_ICO_resource_salt.png
| Seashells        = lT_ICO_iresource_seashell.png
| Shot            = T_ICO_resource_Shot.png
| Silver          = T_ICO_resource_silverBullion.png
| Silver Lining    = T_ICO_resource_SilverDeco.png
| Slops            = T_ICO_resource_Slops.png
| Spyglass        = T_ICO_resource_Telescope.png
| Steel            = T_ICO_resource_Steel.png
| Steel Chain      = T_ICO_resource_SteelChain.png
| Stew            = T_ICO_resource_DefaultStew.png
| Stone            = T_ICO_resource_Stone.png
| Stone Blocks    = T_ICO_resource_stoneBlocks.png
| Sugar Cane      = T_ICO_resource_sugarCane.png
| Tabby            = T_ICO_resource_tabbyConcrete.png
| Tar              = T_ICO_resource_Tar.png
| Tattoo Ink      = T_ICO_resource_TattooInk.png
| Tobacco          = T_ICO_resource_tabacco.png
| Tools            = T_ICO_resource_tools.png
| Turtle Soup      = T_ICO_resource_turtleSoup.png
| Turtles          = lT_ICO_iresource_turtule.png
| Whale Blubber    = T_ICO_resource_WhaleBlubber.png
| Whale Oil        = T_ICO_resource_WhaleOil.png
| Wine            = T_ICO_resource_wine.png
| Wooden Awl      = T_ICO_resource_WoodenAwl.png
| #default        = Filename needed.png
}}|x{{#switch: {{{size|xs}}}|xs=16|sm=32|md=64|lg=96|xl=128}}px|link={{{1|}}}|{{{1|}}}]]</includeonly><noinclude>


Generates the icon for the specified resource.
Generates the icon for the specified resource.
Line 103: Line 26:
<pre>{{Resource icon|Booze}}</pre>
<pre>{{Resource icon|Booze}}</pre>
{{Resource icon|Booze}}
{{Resource icon|Booze}}
<pre>{{Resource icon|Coins|size=xl}}</pre>
{{Resource icon|Coins|size=xl}}




[[Category: Icon templates]]
[[Category: Icon templates]]
</noinclude>
</noinclude>

Latest revision as of 08:17, 3 August 2026


Generates the icon for the specified resource.

Usage

Parameter Purpose
resource name the name of the resource as it is spelled and capitalized in-game
size= the size of the icon, or omit for the default size appropriate for inline in paragraphs:
  • xs - default
  • sm
  • md
  • lg
  • xl

Examples

{{Resource icon|Planks|size=md}}

Planks


{{Resource icon|Booze}}

Booze


{{Resource icon|Coins|size=xl}}

Coins