Template:Building infobox: Difference between revisions
From Corsair Cove Official Wiki
m fixed typo |
added a class to the production table; added builders; added second example; closed last div; adjusted formatting of Housing section |
||
| Line 10: | Line 10: | ||
{{{category|}}} Building | {{{category|}}} Building | ||
</div><!-- | <!-- | ||
--></div><!-- | |||
** THEME WELL ** | ** THEME WELL ** | ||
| Line 26: | Line 27: | ||
-->{{#if: {{{housing|}}} |<!-- | -->{{#if: {{{housing|}}} |<!-- | ||
----><div class="cc-infobox-building-section" style="text-align: center;"><!-- | ----><div class="cc-infobox-building-section" style="text-align: center;"><!-- | ||
------> | ------>Housing<!-- | ||
------><hr><!-- | |||
------>{{{housing}}} {{Pirate icon|size=xs}}<!-- | |||
----></div><!-- | ----></div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
| Line 37: | Line 40: | ||
------><hr><!-- | ------><hr><!-- | ||
------><div style="display: flex; justify-content: space-evenly; gap: 12px;"><!-- | ------><div style="display: flex; justify-content: space-evenly; gap: 12px;"><!-- | ||
-------->{{#if: {{{hands_builders|}}} |<!-- | |||
----------><div>Builders<br />{{Pirate icon|Builders|size=lg}}<br/ >{{{hands_builders}}}</div><!-- | |||
-------->}}<!-- | |||
-------->{{#if: {{{hands_fetchers|}}} |<!-- | -------->{{#if: {{{hands_fetchers|}}} |<!-- | ||
----------><div>Fetchers<br />{{Pirate icon|Fetchers|size=lg}}<br/ >{{{hands_fetchers}}}</div><!-- | ----------><div>Fetchers<br />{{Pirate icon|Fetchers|size=lg}}<br/ >{{{hands_fetchers}}}</div><!-- | ||
| Line 64: | Line 70: | ||
-------->}}<!-- | -------->}}<!-- | ||
------></div><!-- | ------></div><!-- | ||
----><div><!-- | ----></div><!-- | ||
-->}}<!-- | -->}}<!-- | ||
| Line 113: | Line 119: | ||
------></div><!-- | ------></div><!-- | ||
------>{{#if: {{{production_output|}}} |<!-- | ------>{{#if: {{{production_output|}}} |<!-- | ||
--------><div> | --------><div class="cc-infobox-building-section-production-table"> | ||
{{{!}}style="width: 100%; text-align: left;" | {{{!}}style="width: 100%; text-align: left;" | ||
! Base production (per min.) !! {{{production_output_qty}}} | ! Base production (per min.) !! {{{production_output_qty}}} | ||
| Line 145: | Line 151: | ||
------></div><!-- | ------></div><!-- | ||
----></div><!-- | ----></div><!-- | ||
-->}}</includeonly><noinclude> | -->}} | ||
</div></includeonly><noinclude> | |||
Generates an infobox for the building using the supplied data. | Generates an infobox for the building using the supplied data. | ||
| Line 161: | Line 168: | ||
|description=Is said to have a smouldering gaze. | |description=Is said to have a smouldering gaze. | ||
|housing= | |housing= | ||
|hands_builders= | |||
|hands_fetchers=2 | |hands_fetchers=2 | ||
|hands_greenhands=2 | |hands_greenhands=2 | ||
| Line 200: | Line 208: | ||
|description=Is said to have a smouldering gaze. | |description=Is said to have a smouldering gaze. | ||
|housing= | |housing= | ||
|hands_builders= | |||
|hands_fetchers=2 | |hands_fetchers=2 | ||
|hands_greenhands=2 | |hands_greenhands=2 | ||
| Line 223: | Line 232: | ||
|production_booster_2= | |production_booster_2= | ||
|production_output_storage=32 | |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= | |||
|community_upkeep_4_qty= | |||
}} | |||
<hr style="clear: both;"> | |||
<pre>{{Building infobox | |||
|name=Pirate Camp | |||
|building_icon_filename=T ICO Camp.png | |||
|category=Community | |||
|theme=Camp | |||
|description=Where everyone meets. Offers some basic shelter and has some pirates permanently assigned to take care of construction and repairs. Provides 25 {{Pirate icon}} Housing. Build additional Housing to shelter more Pirates. | |||
|housing=25 | |||
|hands_builders=2 | |||
|hands_fetchers= | |||
|hands_greenhands= | |||
|hands_masterhands= | |||
|hands_upkeep_1= | |||
|hands_upkeep_1_qty= | |||
|hands_upkeep_2= | |||
|construction_1=Planks | |||
|construction_1_qty=20 | |||
|construction_2= | |||
|construction_2_qty= | |||
|construction_3= | |||
|construction_3_qty= | |||
|construction_requires_fertile_area= | |||
|production_input_1= | |||
|production_input_1_qty= | |||
|production_input_2= | |||
|production_input_2_qty= | |||
|production_output= | |||
|production_output_qty= | |||
|production_base_per_min= | |||
|production_booster_1= | |||
|production_booster_2= | |||
|production_output_storage= | |||
|community_upkeep_1= | |||
|community_upkeep_1_qty= | |||
|community_upkeep_2= | |||
|community_upkeep_2_qty= | |||
|community_upkeep_3= | |||
|community_upkeep_3_qty= | |||
|community_upkeep_4= | |||
|community_upkeep_4_qty= | |||
}}</pre> | |||
{{Building infobox | |||
|name=Pirate Camp | |||
|building_icon_filename=T ICO Camp.png | |||
|category=Community | |||
|theme=Camp | |||
|description=Where everyone meets. Offers some basic shelter and has some pirates permanently assigned to take care of construction and repairs. Provides 25 {{Pirate icon}} Housing. Build additional Housing to shelter more Pirates. | |||
|housing=25 | |||
|hands_builders=2 | |||
|hands_fetchers= | |||
|hands_greenhands= | |||
|hands_masterhands= | |||
|hands_upkeep_1= | |||
|hands_upkeep_1_qty= | |||
|hands_upkeep_2= | |||
|construction_1=Planks | |||
|construction_1_qty=20 | |||
|construction_2= | |||
|construction_2_qty= | |||
|construction_3= | |||
|construction_3_qty= | |||
|construction_requires_fertile_area= | |||
|production_input_1= | |||
|production_input_1_qty= | |||
|production_input_2= | |||
|production_input_2_qty= | |||
|production_output= | |||
|production_output_qty= | |||
|production_base_per_min= | |||
|production_booster_1= | |||
|production_booster_2= | |||
|production_output_storage= | |||
|community_upkeep_1= | |community_upkeep_1= | ||
|community_upkeep_1_qty= | |community_upkeep_1_qty= | ||
Revision as of 01:28, 30 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
|building_icon_filename=T ICO Charburner.png
|category=Materials
|theme=
|description=Is said to have a smouldering gaze.
|housing=
|hands_builders=
|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=
|community_upkeep_4_qty=
}}
Charburner
Materials Building
Is said to have a smouldering gaze.
Hands
Fetchers
2
2
Greenhands
2
2
{{Building infobox
|name=Pirate Camp
|building_icon_filename=T ICO Camp.png
|category=Community
|theme=Camp
|description=Where everyone meets. Offers some basic shelter and has some pirates permanently assigned to take care of construction and repairs. Provides 25 {{Pirate icon}} Housing. Build additional Housing to shelter more Pirates.
|housing=25
|hands_builders=2
|hands_fetchers=
|hands_greenhands=
|hands_masterhands=
|hands_upkeep_1=
|hands_upkeep_1_qty=
|hands_upkeep_2=
|construction_1=Planks
|construction_1_qty=20
|construction_2=
|construction_2_qty=
|construction_3=
|construction_3_qty=
|construction_requires_fertile_area=
|production_input_1=
|production_input_1_qty=
|production_input_2=
|production_input_2_qty=
|production_output=
|production_output_qty=
|production_base_per_min=
|production_booster_1=
|production_booster_2=
|production_output_storage=
|community_upkeep_1=
|community_upkeep_1_qty=
|community_upkeep_2=
|community_upkeep_2_qty=
|community_upkeep_3=
|community_upkeep_3_qty=
|community_upkeep_4=
|community_upkeep_4_qty=
}}




