Content added Content deleted
NotAracham (talk | contribs) (added placeholder templates) |
NotAracham (talk | contribs) (→Examples: Updating example for town center) |
||
Line 101: | Line 101: | ||
{{Infobox_Building4_Portable |
{{Infobox_Building4_Portable |
||
|name1= |
|name1=Town Center - Tier 1 |
||
|image1=[[File:Building_TownCenter_T1.png|200px]] |
|||
|image1= |
|||
|category1= |
|category1= |
||
|tier1= |
|tier1= |
||
Line 114: | Line 114: | ||
|upgrade_cost1= |
|upgrade_cost1= |
||
|desirability1= |
|desirability1= |
||
|name2= |
|name2= Town Center - Tier 2 |
||
|image2=[[File:Building_TownCenter_T2.png|200px]] |
|||
|image2= |
|||
|category2= |
|category2= |
||
|tier2= |
|tier2= |
||
Line 127: | Line 127: | ||
|upgrade_cost2= |
|upgrade_cost2= |
||
|desirability2= |
|desirability2= |
||
|name3= |
|name3=Town Center - Tier 3 |
||
|image3=[[File:Building_TownCenter_T3.png|200px]] |
|||
|image3= |
|||
|category3= |
|category3= |
||
|tier3= |
|tier3= |
||
Line 140: | Line 140: | ||
|upgrade_cost3= |
|upgrade_cost3= |
||
|desirability3= |
|desirability3= |
||
|name4= |
|name4=Town Center - Tier 4 |
||
|image4=[[File:Building_TownCenter_T4.png|200px]] |
|||
|image4= |
|||
|category4= |
|category4= |
||
|tier4= |
|tier4= |
Revision as of 05:27, 26 September 2022
This template creates a Portable Infobox leveraging the extension sourced from MediaWiki, allowing for quick setup of an infobox side panel for a building with a baseline and three upgrades.
Using this template or one of its sister templates is highly recommended for standardization of building infobox templates.
Usage
{{Infobox_Building4_Portable |name1= |image1= |category1= |tier1= |prereq1= |size1= |cost1= |upkeep1= |produces1= |occupancy1= |upgrade_name1= |upgrade_cost1= |desirability1= |name2= |image2= |category2= |tier2= |prereq2= |size2= |cost2= |upkeep2= |produces2= |occupancy2= |upgrade_name2= |upgrade_cost2= |desirability2= |name3= |image3= |category3= |tier3= |prereq3= |size3= |cost3= |upkeep3= |produces3= |occupancy3= |upgrade_name3= |upgrade_cost3= |desirability3= |name4= |image4= |category4= |tier4= |prereq4= |size4= |cost4= |upkeep4= |produces4= |occupancy4= |upgrade_name4= |upgrade_cost4= |desirability4= }}
Parameter list
Parameters used in this template's execution are as follows, with a suffixed 1 through 4 (e.g. name1, name2, name3, name4):
- name = name displayed at top of infobox
- image = Image to use in main Infobox pane, use parameters to set to 200px
- category = The category the building belongs to (e.g. Amenities & Services, Food, Defense, etc.)
- tier = The corresponding tier this building is found at in the build menu (1,2,3,4)
- prereq = Any building/gamestate prerequisites for this building to be unlocked to build
- size = Footprint of the building, formatted as SmallValue x BigValue (e.g. 2x3, 5x10)
- cost = Resource cost to construct the building, use Template:InfoboxCost to format output
- upkeep = Ongoing cost of building operation, in gold. Use <nowiki>
to supply images
- produces = Any resources produced by the building. Use Template:Icon as a base to supply images
- occupancy = count of employable workers and class of workers, if any (e.g. 1-2x Grocers)
- upgrade_name = name of building that will be upgraded to from current tier, if any
- upgrade_cost = Resource cost to upgrade the building, use Template:InfoboxCost to format output
- desirability = Any desirability impact of this building on Shelters (e.g. very negative, negative, neutral, positive, very positive)
Examples
{{Infobox_Building1_Portable |name=Graveyard |image=[[File:Building_Graveyard_T1.png|200px]] |category=Amenities and Services |tier=1 |prereq=None |size=Min: 3x3<br>Max: 10x10 |cost= {{InfoboxCost | labor = (variable) }} |upkeep=None |produces=None |occupancy=None |upgrade_name= |upgrade_cost= |desirability=Neutral }}
See Also
- Template:Infobox Building1 Portable - Template for buildings with no upgrade
- Template:Infobox Building2 Portable - Template for buildings with a baseline + two upgrades