Template:Building infobox: Difference between revisions

From Corsair Cove Official Wiki
WIP
WIP
Line 1: Line 1:
<includeonly><div class="cc-infobox-building" style="max-width: 360px; float: right;">
<includeonly><div class="cc-infobox-building" style="max-width: 360px; float: right;"><!--


<div class="cc-infobox-builing-header">
** HEADER **
{{#if: {{{building_icon_filename|}}}|[[File:{{{building_icon_filename}}}|x32px]]}}
{{{name|Name required}}}
{{{category|}}}
</div>


<div class="cc-infobox-building-description">
--><div class="cc-infobox-builing-header"><!--
{{{description|Description required}}}
---->{{#if: {{{building_icon_filename|}}}|<!--
</div>
------><div class="cc-infobox-bulding-header-icon">[[File:{{{building_icon_filename}}}|x32px]]</div><!--
---->}}
{{{name|Building name required}}}


{{#if: {{{housing|}}} |
{{{category|}}} Building
<div style="text-align: center;">
</div><!--
Provides {{{housing}}} {{Pirate icon|size=xs}} Housing
 
</div>
** DESCRIPTION **
}}
 
--><div class="cc-infobox-building-description"><!--
---->{{{description|Description required}}}<!--
--></div><!--
 
** HOUSING **
 
-->{{#if: {{{housing|}}} |<!--
----><div class="cc-infobox-building-section" style="text-align: center;"><!--
------>Provides {{{housing}}} {{Pirate icon|size=xs}} Housing<!--
----></div><!--
-->}}<!--
 
** WORKERS **
 
-->{{#if: {{{hands_fetchers|}}}{{{hands_greenhands|}}}{{{hands_masterhands|}}} |<!--
----><div class="cc-infobox-building-section" style="text-align: center;"><!--
------>Hands<!--
------><hr><!--
------><div style="display: flex; justify-content: space-evenly; gap: 12px;"><!--
-------->{{#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><!--
-------->}}<!--
------></div><!--
----></div><!--
-->}}<!--


{{#if: {{{hands_fetchers|}}}{{{hands_greenhands|}}}{{{hands_masterhands|}}} |
** WORKER UPKEEP **
<div style="text-align: center;">
Hands
<hr>
<div style="display: flex; justify-content: space-evenly; gap: 12px;">
{{#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> }}
</div>
}}


{{#if: {{{hands_upkeep_1|}}}{{{hands_upkeep_2|}}} |
-->{{#if: {{{hands_upkeep_1|}}}{{{hands_upkeep_2|}}} |<!--
<div style="text-align: center;">
----><div class="cc-infobox-building-section" style="text-align: center;"><!--
Required Upkeep for Hands
------>Required Upkeep for Hands<!--
<hr>
------><hr><!--
<div style="display: flex; justify-content: space-evenly; gap: 12px;">
------><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_1|}}} |<!--
{{#if: {{{hands_upkeep_2|}}} | <span style="white-space: nowrap;">{{{hands_upkeep_2_qty|}}} {{Resource icon|{{{hands_upkeep_2}}}|size=sm}}</span> }}
----------><span style="white-space: nowrap;">{{{hands_upkeep_1_qty|}}} {{Resource icon|{{{hands_upkeep_1}}}|size=sm}}</span><!--
</div>
-------->}}<!--
}}
-------->{{#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|}}} |
** CONSTRUCTION **
<div style="text-align: center;">
Construction Cost
<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]]
}}
</div>
}}


{{#if: {{{production_input_1|}}}{{{production_input_2|}}}{{{production_output|}}} |<!--
-->{{#if: {{{construction_1|}}}{{{construction_2|}}}{{{construction_3|}}} |<!--
--><div style="text-align: center;"><!--
----><div class="cc-infobox-building-section" style="text-align: center;"><!--
---->Production<!--
------>Construction Cost<!--
----><hr><!--
------><hr><!--
----><div style="display: flex; justify-content: space-evenly; gap: 12px;"><!--
------><div style="display: flex; justify-content: space-evenly; gap: 12px;"><!--
------>{{#if: {{{production_input_1|}}}{{{production_input_2|}}} |<!--
-------->{{#if: {{{construction_1|}}} |<!--
--------><div><!--
----------><span style="white-space: nowrap;">{{{construction_1_qty|}}} {{Resource icon|{{{construction_1}}}|size=sm}}</span><!--
---------->Input<!--
-------->}}<!--
----------><hr><!--
-------->{{#if: {{{construction_2|}}} |<!--
---------->{{Resource stack<!--
----------><span style="white-space: nowrap;">{{{construction_2_qty|}}} {{Resource icon|{{{construction_2}}}|size=sm}}</span>>!--
------------>{{#if: {{{production_input_1|}}} | {{!}} {{{production_input_1}}}={{{production_input_1_qty|0}}} }}<!--
-------->}}<!--
------------>{{#if: {{{production_input_2|}}} | {{!}} {{{production_input_2}}}={{{production_input_2_qty|0}}} }}<!--
-------->{{#if: {{{construction_3|}}} |<!--
------------>|size=sm<!--
----------><span style="white-space: nowrap;">{{{construction_3_qty|}}} {{Resource icon|{{{construction_3}}}|size=sm}}</span><!--
---------->}}<!--
-------->}}<!--
--------></div><!--
------></div><!--
------>{{#if: {{{construction_requires_fertile_area|}}} |<!--
-------->Needs to be placed in [[Fertile Area]]<!--
------>}}<!--
------>}}<!--
----></div><!--
-->}}<!--
** PRODUCTION **
-->{{#if: {{{production_input_1|}}}{{{production_input_2|}}}{{{production_output|}}} |<!--
----><div class="cc-infobox-building-section" style="text-align: center;"><!--
------>Production<!--
------><hr><!--
------><div style="display: flex; justify-content: space-evenly; gap: 12px;"><!--
-------->{{#if: {{{production_input_1|}}}{{{production_input_2|}}} |<!--
----------><div><!--
------------>Input<!--
------------><hr><!--
------------>{{Resource stack|{{{production_input_1|}}}={{{production_input_1_qty|0}}}|{{{production_input_2|}}}={{{production_input_2_qty|0}}}|size=sm}}<!--
----------></div><!--
-------->}}<!--
-------->{{#if: {{{production_output|}}} |<!--
----------><div><!--
------------>Output<!--
------------><hr><!--
------------><span style="white-space: nowrap;">{{{production_output_qty|}}} {{Resource|{{{production_output}}}|size=sm}}</span><!--
----------></div><!--
-------->}}<!--
------></div><!--
------>{{#if: {{{production_output|}}} |<!--
------>{{#if: {{{production_output|}}} |<!--
--------><div><!--
--------><div>
---------->Output<!--
----------><hr><!--
----------><span style="white-space: nowrap;">{{{production_output_qty|}}} {{Resource icon|{{{production_output}}}|size=sm}}</span><!--
--------></div><!--
------>}}<!--
----></div><!--
---->{{#if: {{{production_output|}}} |<!--
------><div>
{{{!}}style="width: 100%; text-align: left;"
{{{!}}style="width: 100%; text-align: left;"
! Base production (per min.) !! {{{production_output}}}
! Base production (per min.) !! {{{production_output_qty}}}
{{#if: {{{production_booster_1|}}} |
{{#if: {{{production_booster_1|}}} |
{{!}}-
{{!}}-
Line 92: Line 123:
! Output storage !! {{{production_output_storage|0}}}
! Output storage !! {{{production_output_storage|0}}}
{{!}}}<!--
{{!}}}<!--
------></div><!--
--------></div><!--
---->}}<!--
------>}}<!--
--></div>
----></div><!--
}}
-->}}<!--
 
** COMMUNITY BUILDINGS UPKEEP **
 
-->


<div style="text-align: center;">
<div style="text-align: center;">

Revision as of 22:55, 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=
}}

Charburner

Materials Building

Is said to have a smouldering gaze.
Hands
Fetchers
Fetchers
2
Greenhands
Greenhands
2
Required Upkeep for Hands
+2 Stew
Construction Cost
30 Planks
Production
Input
2 Stone Stone
6 Hardwood Hardwood
Output
16 Charcoal Charcoal
Base production (per min.) 16
Booster: Kindle-Coal
Output storage 32

Upkeep for Community