Template:Resource infobox: Difference between revisions
From Corsair Cove Official Wiki
Expanded and tied in with CSS. added docs |
m →Copypasta: Added comment to copypasta about the parameters so the link travels with the copypasta |
||
| Line 85: | Line 85: | ||
=== Copypasta === | === Copypasta === | ||
Copy and paste this at the top of any article on a specific resource: | |||
<pre>{{Resource infobox | <pre><!--Parameters are explained at https://wiki.hoodedhorse.com/Corsair_Cove/Template:Resource_infobox-->{{Resource infobox | ||
|title= | |title= | ||
|icon_filename= | |icon_filename= | ||
Latest revision as of 17:34, 26 July 2026
Generates an infobox for a resource with the specified information.
Usage
| Parameter | Purpose |
|---|---|
title= |
the name of the resource |
icon_filename= |
the filename and extension of the image to use |
category= |
the category to display under the name of the resource, for example, "Construction Resource" |
description= |
the flavor text for the resource |
stats_list |
stats_list=
|
produced_by_list= |
same as stats; be sure to include any icon with the [[File:]] markup tag
|
makes_list |
same as stats; use a list, even if it's only one item |
Example
Rough or finished timber. For bulding anything from shelves to ships.
- Warehouse stack size: 250
{{Resource infobox
|title=Planks
|icon_filename=T_ICO_resource_plank.png
|category=Construction Resource
|description=Rough or finished timber. For bulding anything from shelves to ships.
|stats_list=
* Warehouse stack size: 250
|produced_by_list=
* [[File:T ICO resource plank.png|x16px|link=Sawmill|Sawmill]] [[Sawmill]]
* Base production per minute: 10
* Requires: 4 [[File:T_ICO_resource_Hardwood.png|x16px|link=Hardwood|Hardwood]] [[Hardwood]]
|makes_list=
* Most buildings
* All ships
}}
Copypasta
Copy and paste this at the top of any article on a specific resource:
<!--Parameters are explained at https://wiki.hoodedhorse.com/Corsair_Cove/Template:Resource_infobox-->{{Resource infobox
|title=
|icon_filename=
|category=
|description=
|stats_list=
*
|produced_by_list=
*
|makes_list=
*
}}


