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;"><!-- | ||
** HEADER ** | |||
<div class="cc-infobox- | --><div class="cc-infobox-builing-header"><!-- | ||
{{{ | ---->{{#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><!-- | |||
-->}}<!-- | |||
** WORKER UPKEEP ** | |||
{{#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><!-- | |||
-->}}<!-- | |||
** CONSTRUCTION ** | |||
{{#if: {{{ | -->{{#if: {{{construction_1|}}}{{{construction_2|}}}{{{construction_3|}}} |<!-- | ||
--><div style="text-align: center;"><!-- | ----><div class="cc-infobox-building-section" style="text-align: center;"><!-- | ||
----> | ------>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: {{{ | -------->{{#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><!-- | |||
-->}}<!-- | |||
** 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> | |||
{{{!}}style="width: 100%; text-align: left;" | {{{!}}style="width: 100%; text-align: left;" | ||
! Base production (per min.) !! {{{ | ! 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
2
2
Greenhands
2
2
Required Upkeep for Hands
Production
| Base production (per min.) | 16 |
|---|---|
| Booster: Kindle-Coal | |
| Output storage | 32 |


