Content deleted Content added
NotAracham (talk | contribs) vizfix |
NotAracham (talk | contribs) →Examples: fixing example to match template |
||
Line 99:
== Examples ==
<pre style="overflow: auto;">
{{Infobox_Building5Tree_Portable
|name1=
|image1=[[File:
|category1=
|tier1=1
|prereq1=None
|size1=
|cost1={{InfoboxCost
|
| gold = 5
}}
|upkeep1=N/A
|desirability1=Neutral
<!--TAB 1 COMPLETE-->
|name2=
|image2=[[File:
|category2=
|tier2=
|prereq2=None
|size2=
|cost2={{InfoboxCost
|
|
}}
|upkeep2=N/A
|desirability2=Neutral
<!--TAB 2 COMPLETE-->
|name3=
|image3=[[File:
|category3=
|tier3=
|prereq3=None
|size3=
|cost3={{InfoboxCost
|
|
}}
|upkeep3=N/A
|desirability3=Neutral
<!--TAB 3 COMPLETE-->
|name4=
|image4=[[File:
|category4=
|tier4=
|prereq4=None
|size4=
|cost4={{InfoboxCost
|
|
}}
|upkeep4=N/A
|desirability4=Neutral
<!--TAB 4 COMPLETE-->
|name5=Juniper Bush
|image5=[[File:Resource_BushCedar_Portrait.png|200px]]
|category5=Decorations
|tier5=1
|prereq5=None
|size5=1x1
|cost5={{InfoboxCost
| labor = 30
| gold = 5
}}
|upkeep5=N/A
|desirability5=Neutral
<!--TAB 5 COMPLETE-->
}}
</pre>
{{Infobox_Building5Tree_Portable
|name1=
|image1=[[File:
|category1=
|tier1=1
|prereq1=None
|size1=
|cost1={{InfoboxCost
|
| gold = 5
}}
|upkeep1=N/A
|desirability1=Neutral
<!--TAB 1 COMPLETE-->
|name2=
|image2=[[File:
|category2=
|tier2=
|prereq2=None
|size2=
|cost2={{InfoboxCost
|
|
}}
|upkeep2=N/A
|desirability2=Neutral
<!--TAB 2 COMPLETE-->
|name3=
|image3=[[File:
|category3=
|tier3=
|prereq3=None
|size3=
|cost3={{InfoboxCost
|
|
}}
|upkeep3=N/A
|desirability3=Neutral
<!--TAB 3 COMPLETE-->
|name4=
|image4=[[File:
|category4=
|tier4=
|prereq4=None
|size4=
|cost4={{InfoboxCost
|
|
}}
|upkeep4=N/A
|desirability4=Neutral
<!--TAB 4 COMPLETE-->
|name5=Juniper Bush
|image5=[[File:Resource_BushCedar_Portrait.png|200px]]
|category5=Decorations
|tier5=1
|prereq5=None
|size5=1x1
|cost5={{InfoboxCost
| labor = 30
| gold = 5
}}
|upkeep5=N/A
|desirability5=Neutral
<!--TAB 5 COMPLETE-->
}}
{{Clear}}
|
Revision as of 03:46, 18 January 2023
This template creates a Portable Infobox leveraging the extension sourced from MediaWiki, allowing for quick setup of an infobox side panel for a series of 5 decorative trees.
Using this template or one of its sister templates is highly recommended for standardization of building infobox templates.
Usage
{{Infobox_Building5Tree_Portable |name1= |image1= |category1= |tier1= |prereq1= |size1= |cost1= |upkeep1= |produces1= |occupancy1= |upgrade_name1= |upgrade_cost1= |desirability1= <!--TAB 1 COMPLETE--> |name2= |image2= |category2= |tier2= |prereq2= |size2= |cost2= |upkeep2= |produces2= |occupancy2= |upgrade_name2= |upgrade_cost2= |desirability2= <!--TAB 2 COMPLETE--> |name3= |image3= |category3= |tier3= |prereq3= |size3= |cost3= |upkeep3= |produces3= |occupancy3= |upgrade_name3= |upgrade_cost3= |desirability3= <!--TAB 3 COMPLETE--> |name4= |image4= |category4= |tier4= |prereq4= |size4= |cost4= |upkeep4= |produces4= |occupancy4= |upgrade_name4= |upgrade_cost4= |desirability4= <!--TAB 4 COMPLETE--> |name5= |image5= |category5= |tier5= |prereq5= |size5= |cost5= |upkeep5= |produces5= |occupancy5= |upgrade_name5= |upgrade_cost5= |desirability5= <!--TAB 5 COMPLETE--> }}
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 {{Icon|Gold}} 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_Building5Tree_Portable |name1=Birch Tree |image1=[[File:Resource_TreeBirch_Portrait.png|300px]] |category1=Decorations |tier1=1 |prereq1=None |size1=1x1 |cost1={{InfoboxCost | labor = 30 | gold = 5 }} |upkeep1=N/A |desirability1=Neutral <!--TAB 1 COMPLETE--> |name2=Maple Tree |image2=[[File:Resource_TreeMaple_Portrait.png|200px]] |category2=Decorations |tier2=1 |prereq2=None |size2=1x1 |cost2={{InfoboxCost | labor = 30 | gold = 5 }} |upkeep2=N/A |desirability2=Neutral <!--TAB 2 COMPLETE--> |name3=Oak Tree |image3=[[File:Resource_TreeOak_Portrait.png|200px]] |category3=Decorations |tier3=1 |prereq3=None |size3=1x1 |cost3={{InfoboxCost | labor = 30 | gold = 5 }} |upkeep3=N/A |desirability3=Neutral <!--TAB 3 COMPLETE--> |name4=Spruce Tree |image4=[[File:Resource_TreeSpruce_Portrait.png|200px]] |category4=Decorations |tier4=1 |prereq4=None |size4=1x1 |cost4={{InfoboxCost | labor = 30 | gold = 5 }} |upkeep4=N/A |desirability4=Neutral <!--TAB 4 COMPLETE--> |name5=Juniper Bush |image5=[[File:Resource_BushCedar_Portrait.png|200px]] |category5=Decorations |tier5=1 |prereq5=None |size5=1x1 |cost5={{InfoboxCost | labor = 30 | gold = 5 }} |upkeep5=N/A |desirability5=Neutral <!--TAB 5 COMPLETE--> }}
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 Building1 Portable - Template for buildings with no upgrade
- Template:Infobox Building2 Portable - Template for buildings with a baseline + one upgrade
- Template:Infobox Building4 Portable - Template for buildings with a baseline + three upgrades