Content added Content deleted
NotAracham (talk | contribs) (removing test edits) |
NotAracham (talk | contribs) (removing template data) |
||
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
<data source="upkeep"> |
<data source="upkeep"> |
||
<label>Upkeep</label></data> |
<label>Upkeep</label></data> |
||
<data source="consumes"> |
|||
<label>Consumed Item(s)</label></data> |
|||
<data source="produces"> |
<data source="produces"> |
||
<label>Produced Item(s)</label></data> |
<label>Produced Item(s)</label></data> |
||
Line 35: | Line 37: | ||
[[Category:Portable Building Infoboxes]] |
[[Category:Portable Building Infoboxes]] |
||
[[Category:Portable Infoboxes]] |
[[Category:Portable Infoboxes]] |
||
<noinclude> |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"name": { |
|||
"label": "Name", |
|||
"description": "Name of building, provides title for infobox.", |
|||
"example": "Apiary", |
|||
"type": "string", |
|||
"default": "{{PAGENAME}}", |
|||
"suggested": true |
|||
}, |
|||
"image": { |
|||
"label": "Image", |
|||
"description": "Image file representing building", |
|||
"type": "wiki-file-name", |
|||
"default": "[[File:Blank.png|200px]]" |
|||
}, |
|||
"category": { |
|||
"label": "Category", |
|||
"description": "Category of building, as found on the in-game Build menu", |
|||
"example": "Amenities & Services" |
|||
} |
|||
}, |
|||
"description": "Generate an infobox for a building with no upgrades" |
|||
} |
|||
</templatedata> |
|||
</noinclude> |
Latest revision as of 19:41, 24 October 2022
This template creates a Portable Infobox leveraging the extension sourced from MediaWiki, allowing for quick setup of an infobox side panel for a standalone building page with no upgrades.
Using this template or one of its sister templates is highly recommended for standardization of building infobox templates.
Usage
{{Infobox_Building1_Portable |name= |image= |category= |tier= |prereq= |size= |cost= |upkeep= |consumes= |produces= |occupancy= |upgrade_name= |upgrade_cost= |desirability= }}
Parameter list
Parameters used in this template's execution are as follows:
- 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 {{Icon|Gold}} to supply images
- consumes = Any resources consumed by the building. Use Template:Icon as a base 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, for the purpose of this template it will always be N/A
- upgrade_cost = Resource cost to upgrade the building, for the purpose of this template it will always be N/A
- 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 |consumes=None |produces=None |occupancy=None |upgrade_name= |upgrade_cost= |desirability=Neutral }}
PortableInfobox Documentation
- MediaWiki Extension Page
- PortableInfobox Main Documentation (fandom)
- Generalized Help Page with Examples (fandom)
- Additional Implementation Examples (fandom)
See Also
- Category:Portable Infoboxes - Holder category for all infoboxes using PortableInfobox
- Template:Infobox Building2 Portable - Template for buildings with a baseline + one upgrade
- Template:Infobox Building4 Portable - Template for buildings with a baseline + three upgrades
- Template:Infobox Building5Tree Portable - Template for decorative trees