Template:Building infobox: Difference between revisions
From Corsair Cove Official Wiki
WIP |
WIP |
||
| Line 4: | Line 4: | ||
{{#if: {{{building_icon_filename|}}}|[[File:{{{building_icon_filename}}}|x32px]]}} | {{#if: {{{building_icon_filename|}}}|[[File:{{{building_icon_filename}}}|x32px]]}} | ||
{{{name|Name required}}} | {{{name|Name required}}} | ||
{{{category|}}} | |||
</div> | </div> | ||
<div class="cc-infobox-building-description"> | <div class="cc-infobox-building-description"> | ||
{{{description|Description required}}} | |||
</div> | </div> | ||
{{#if: {{{housing|}}} | | |||
<div style="text-align: center;"> | <div style="text-align: center;"> | ||
Provides | Provides {{{housing}}} {{Pirate icon|size=xs}} Housing | ||
</div> | </div> | ||
}} | |||
{{#if: {{{hands_fetchers|}}}{{{hands_greenhands|}}}{{{hands_masterhands|}}} | | |||
<div style="text-align: center;"> | <div style="text-align: center;"> | ||
Hands | Hands | ||
<hr> | <hr> | ||
<div style="display: flex; justify-content: space-evenly; gap: 12px;"> | |||
| Fetchers | {{#if: {{{hands_fetchers|}}} | <div>Fetchers<br />{{Pirate icon|Fetchers|size=lg}}<br/ >{{{hands_fetchers}}}</div> }} | ||
{{#if: {{{hands_greenhands|}}} | <div>Greenhands<br />{{Pirate icon|Greenhands|size=lg}}<br />{{{hands_greenhands}}}</div> }} | |||
{{#if: {{{hands_masterhands|}}} | <div>Masterhands<br />{{Pirate icon|Masterhands|size=lg}}<br />{{{hands_masterhands}}}</div> }} | |||
| {{Pirate icon|Greenhands|size=lg}} | |||
| | |||
| | |||
</div> | </div> | ||
}} | |||
{{#if: {{{hands_upkeep_1|}}}{{{hands_upkeep_2|}}} | | |||
<div style="text-align: center;"> | <div style="text-align: center;"> | ||
Required Upkeep for Hands | Required Upkeep for Hands | ||
<hr> | <hr> | ||
{| | <div style="display: flex; justify-content: space-evenly; gap: 12px;"> | ||
| | {{#if: {{{hands_upkeep_1|}}} | <span style="white-space: nowrap;">{{{hands_upkeep_1_qty|}}} {{Resource icon|{{{hands_upkeep_1}}}|size=sm}}</span> }} | ||
|} | {{#if: {{{hands_upkeep_2|}}} | <span style="white-space: nowrap;">{{{hands_upkeep_2_qty|}}} {{Resource icon|{{{hands_upkeep_2}}}|size=sm}}</span> }} | ||
</div> | </div> | ||
}} | |||
{{#if: {{{construction_1|}}}{{{construction_2|}}}{{{construction_3|}}} | | |||
<div style="text-align: center;"> | <div style="text-align: center;"> | ||
Construction Cost | Construction Cost | ||
<hr> | <hr> | ||
{| | <div style="display: flex; justify-content: space-evenly; gap: 12px;"> | ||
| | {{#if: {{{construction_1|}}} | <span style="white-space: nowrap;">{{{construction_1_qty|}}} {{Resource icon|{{{construction_1}}}|size=sm}}</span> }} | ||
|} | {{#if: {{{construction_2|}}} | <span style="white-space: nowrap;">{{{construction_2_qty|}}} {{Resource icon|{{{construction_2}}}|size=sm}}</span> }} | ||
{{#if: {{{construction_3|}}} | <span style="white-space: nowrap;">{{{construction_3_qty|}}} {{Resource icon|{{{construction_3}}}|size=sm}}</span> }} | |||
</div> | |||
{{#if: {{{construction_requires_fertile_area|}}} | | |||
Needs to be placed in [[Fertile Area]] | Needs to be placed in [[Fertile Area]] | ||
}} | |||
</div> | </div> | ||
}} | |||
<div style="text-align: center;"> | {{#if: {{{production_input_1|}}}{{{production_input_2|}}}{{{production_output|}}} |<!-- | ||
Production | --><div style="text-align: center;"><!-- | ||
<hr> | ---->Production<!-- | ||
<div style="display: flex; gap: 12px;"> | ----><hr><!-- | ||
<div> | ----><div style="display: flex; justify-content: space-evenly; gap: 12px;"><!-- | ||
Input | ------>{{#if: {{{production_input_1|}}}{{{production_input_2|}}} |<!-- | ||
<hr> | --------><div><!-- | ||
{{Resource stack| | ---------->Input<!-- | ||
</div> | ----------><hr><!-- | ||
<div> | ---------->{{Resource stack<!-- | ||
Output | ------------>{{#if: {{{production_input_1|}}} | {{!}} {{{production_input_1}}}={{{production_input_1_qty|0}}} }}<!-- | ||
<hr> | ------------>{{#if: {{{production_input_2|}}} | {{!}} {{{production_input_2}}}={{{production_input_2_qty|0}}} }}<!-- | ||
{{Resource | ------------>|size=sm<!-- | ||
</div> | ---------->}}<!-- | ||
</div> | --------></div><!-- | ||
<div> | ------>}}<!-- | ||
{ | ------>{{#if: {{{production_output|}}} |<!-- | ||
! Base production (per min.) !! | --------><div><!-- | ||
|- | ---------->Output<!-- | ||
----------><hr><!-- | |||
----------><span style="white-space: nowrap;">{{{production_output_qty|}}} {{Resource icon|{{{production_output}}}|size=sm}}</span><!-- | |||
! Output storage !! | --------></div><!-- | ||
------>}}<!-- | |||
</div> | ----></div><!-- | ||
</div> | ---->{{#if: {{{production_output|}}} |<!-- | ||
------><div> | |||
{{{!}}style="width: 100%; text-align: left;" | |||
! Base production (per min.) !! {{{production_output}}} | |||
{{#if: {{{production_booster_1|}}} | | |||
{{!}}- | |||
{{!}} Booster: {{{production_booster_1}}} {{!}}{{!}} | |||
}} | |||
{{#if: {{{production_booster_2|}}} | | |||
{{!}}- | |||
{{!}} Booster: {{{production_booster_2}}} {{!}}{{!}} | |||
}} | |||
{{!}}- | |||
! Output storage !! {{{production_output_storage|0}}} | |||
{{!}}}<!-- | |||
------></div><!-- | |||
---->}}<!-- | |||
--></div> | |||
}} | |||
<div style="text-align: center;"> | <div style="text-align: center;"> | ||
| Line 101: | Line 125: | ||
|hands_masterhands= | |hands_masterhands= | ||
|hands_upkeep_1=Stew | |hands_upkeep_1=Stew | ||
|hands_upkeep_1_qty=2 | |hands_upkeep_1_qty=+2 | ||
|hands_upkeep_2= | |hands_upkeep_2= | ||
|construction_1=Planks | |construction_1=Planks | ||
| Line 110: | Line 134: | ||
|construction_3_qty= | |construction_3_qty= | ||
|construction_requires_fertile_area= | |construction_requires_fertile_area= | ||
|production_input_1= | |production_input_1=Hardwood | ||
|production_input_1_qty= | |production_input_1_qty=6 | ||
|production_input_2= | |production_input_2=Stone | ||
|production_input_2_qty= | |production_input_2_qty=2 | ||
|production_output= | |production_output=Charcoal | ||
|production_output_qty= | |production_output_qty=16 | ||
|production_base_per_min=16 | |production_base_per_min=16 | ||
|production_booster_1=Kindle-Coal | |production_booster_1=Kindle-Coal | ||
| Line 138: | Line 162: | ||
|hands_masterhands= | |hands_masterhands= | ||
|hands_upkeep_1=Stew | |hands_upkeep_1=Stew | ||
|hands_upkeep_1_qty=2 | |hands_upkeep_1_qty=+2 | ||
|hands_upkeep_2= | |hands_upkeep_2= | ||
|construction_1=Planks | |construction_1=Planks | ||
| Line 147: | Line 171: | ||
|construction_3_qty= | |construction_3_qty= | ||
|construction_requires_fertile_area= | |construction_requires_fertile_area= | ||
|production_input_1= | |production_input_1=Hardwood | ||
|production_input_1_qty= | |production_input_1_qty=6 | ||
|production_input_2= | |production_input_2=Stone | ||
|production_input_2_qty= | |production_input_2_qty=2 | ||
|production_output= | |production_output=Charcoal | ||
|production_output_qty= | |production_output_qty=16 | ||
|production_base_per_min=16 | |production_base_per_min=16 | ||
|production_booster_1=Kindle-Coal | |production_booster_1=Kindle-Coal | ||
Revision as of 22:17, 29 July 2026
Generates an infobox for the building using the supplied data.
Usage
Example
<!-- Building infobox template parameters are explained at https://wiki.hoodedhorse.com/Corsair_Cove/Template:Building_infobox
{{Building infobox
|name=Charburner
|category=Materials
|building_icon_filename=T ICO Charburner.png
|description=Is said to have a smouldering gaze.
|housing=
|hands_fetchers=2
|hands_greenhands=2
|hands_masterhands=
|hands_upkeep_1=Stew
|hands_upkeep_1_qty=+2
|hands_upkeep_2=
|construction_1=Planks
|construction_1_qty=30
|construction_2=
|construction_2_qty=
|construction_3=
|construction_3_qty=
|construction_requires_fertile_area=
|production_input_1=Hardwood
|production_input_1_qty=6
|production_input_2=Stone
|production_input_2_qty=2
|production_output=Charcoal
|production_output_qty=16
|production_base_per_min=16
|production_booster_1=Kindle-Coal
|production_booster_2=
|production_output_storage=32
|community_upkeep_1=
|community_upkeep_1_qty=
|community_upkeep_2=
|community_upkeep_2_qty=
|community_upkeep_3=
|community_upkeep_3_qty=
|community_upkeep_4=
}}
Is said to have a smouldering gaze.
Hands
Fetchers
2
2
Greenhands
2
2
Required Upkeep for Hands
Production
| Base production (per min.) | Charcoal |
|---|---|
| Booster: Kindle-Coal | |
| Output storage | 32 |


