Content added Content deleted
NotAracham (talk | contribs) (added placeholder templates) |
NotAracham (talk | contribs) (→See Also: vizfix) |
||
(14 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
<pre style="overflow: auto;"> |
<pre style="overflow: auto;"> |
||
{{Infobox_Building4_Portable |
{{Infobox_Building4_Portable |
||
|name1= |
|name1= |
||
|image1= |
|image1= |
||
|category1= |
|category1= |
||
|tier1= |
|tier1= |
||
|prereq1= |
|prereq1= |
||
|size1= |
|size1= |
||
|cost1= |
|cost1= |
||
|upkeep1= |
|upkeep1= |
||
Line 19: | Line 19: | ||
|upgrade_cost1= |
|upgrade_cost1= |
||
|desirability1= |
|desirability1= |
||
<!--TAB 1 COMPLETE--> |
|||
|name2= |
|||
| |
|name2= |
||
|image2= |
|||
|category2= |
|||
|category2= |
|||
|tier2= |
|||
|tier2= |
|||
|prereq2= |
|||
|prereq2= |
|||
|size2= |
|||
|size2= |
|||
|cost2= |
|cost2= |
||
|upkeep2= |
|upkeep2= |
||
Line 32: | Line 33: | ||
|upgrade_cost2= |
|upgrade_cost2= |
||
|desirability2= |
|desirability2= |
||
<!--TAB 2 COMPLETE--> |
|||
|name3= |
|||
| |
|name3= |
||
|image3= |
|||
|category3= |
|||
|category3= |
|||
|tier3= |
|||
|tier3= |
|||
|prereq3= |
|||
|prereq3= |
|||
|size3= |
|||
|size3= |
|||
|cost3= |
|cost3= |
||
|upkeep3= |
|upkeep3= |
||
Line 45: | Line 47: | ||
|upgrade_cost3= |
|upgrade_cost3= |
||
|desirability3= |
|desirability3= |
||
<!--TAB 3 COMPLETE--> |
|||
|name4= |
|||
| |
|name4= |
||
|image4= |
|||
|category4= |
|||
|category4= |
|||
|tier4= |
|||
|tier4= |
|||
|prereq4= |
|||
|prereq4= |
|||
|size4= |
|||
|size4= |
|||
|cost4= |
|cost4= |
||
|upkeep4= |
|upkeep4= |
||
Line 58: | Line 61: | ||
|upgrade_cost4= |
|upgrade_cost4= |
||
|desirability4= |
|desirability4= |
||
<!--TAB 4 COMPLETE--> |
|||
}} |
}} |
||
</pre> |
</pre> |
||
Line 72: | Line 76: | ||
* '''size''' = Footprint of the building, formatted as SmallValue x BigValue (e.g. 2x3, 5x10) |
* '''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 |
* '''cost''' = Resource cost to construct the building, use [[Template:InfoboxCost]] to format output |
||
* '''upkeep''' = Ongoing cost of building operation, in gold. Use <nowiki>{{Icon|Gold}} to supply images |
* '''upkeep''' = Ongoing cost of building operation, in gold. Use <nowiki>{{Icon|Gold}}</nowiki> to supply images |
||
* '''produces''' = Any resources produced 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 [[Grocer|Grocers]]) |
* '''occupancy''' = count of employable workers and class of workers, if any (e.g. 1-2x [[Grocer|Grocers]]) |
||
Line 81: | Line 85: | ||
== Examples == |
== Examples == |
||
<pre style="overflow: auto;"> |
<pre style="overflow: auto;"> |
||
{{Infobox_Building4_Portable |
|||
{{Infobox_Building1_Portable |
|||
|name1=Town Center - Tier 1 |
|||
|name=Graveyard |
|||
| |
|image1=[[File:Building_TownCenter_T1.png|200px]] |
||
| |
|category1=Amenities and Services |
||
| |
|tier1=1 |
||
| |
|prereq1=None |
||
|size1=6x6 |
|||
|size=Min: 3x3<br>Max: 10x10 |
|||
| |
|cost1={{InfoboxCost |
||
| |
| logs = 16 |
||
}} |
|||
|upkeep1=N/A |
|||
|produces1=N/A |
|||
|occupancy1=N/A |
|||
|upgrade_name1=Town Center - Tier 2 |
|||
|upgrade_cost1={{InfoboxCost |
|||
| planks = 50 |
|||
| stone = 25 |
|||
}} |
}} |
||
|desirability1=Positive |
|||
|upkeep=None |
|||
<!--TAB 1 COMPLETE--> |
|||
|produces=None |
|||
|name2=Town Center - Tier 2 |
|||
|occupancy=None |
|||
|image2=[[File:Building_TownCenter_T2.png|200px]] |
|||
|upgrade_name= |
|||
|category2=Amenities and Services |
|||
|upgrade_cost= |
|||
|tier2=2 |
|||
|desirability=Neutral |
|||
|prereq2=[[Town Center]]<br />8 [[Shelter]]<br />1 [[Market]]<br />30 [[Villagers]] |
|||
|size2=6x6 |
|||
|cost2={{InfoboxCost |
|||
| planks = 50 |
|||
| stone = 25 |
|||
}} |
|||
|upkeep2=N/A |
|||
|produces2=N/A |
|||
|occupancy2=N/A |
|||
|upgrade_name2=Town Center - Tier 3 |
|||
|upgrade_cost2={{InfoboxCost |
|||
| planks = 100 |
|||
| clay = 100 |
|||
| gold = 1200 |
|||
}} |
|||
|desirability2=Positive |
|||
<!--TAB 2 COMPLETE--> |
|||
|name3=Town Center - Tier 3 |
|||
|image3=[[File:Building_TownCenter_T3.png|200px]] |
|||
|category3=Amenities and Services |
|||
|tier3=3 |
|||
|prereq3=[[Town Center|Town Center - Tier 2]]<br />25 [[Shelter|Homestead]]<br />1 [[School]]<br />1 [[Trading Post]]<br />150 [[Villagers]] |
|||
|size3=6x6 |
|||
|cost3={{InfoboxCost |
|||
| planks = 100 |
|||
| clay = 100 |
|||
| gold = 1200 |
|||
}} |
|||
|upkeep3=N/A |
|||
|produces3=N/A |
|||
|occupancy3=N/A |
|||
|upgrade_name3=Town Center - Tier 4 |
|||
|upgrade_cost3={{InfoboxCost |
|||
| planks = 100 |
|||
| clay = 150 |
|||
| iron = 100 |
|||
| gold = 3500 |
|||
}} |
|||
|desirability3=Positive |
|||
<!--TAB 3 COMPLETE--> |
|||
|name4=Town Center - Tier 4 |
|||
|image4=[[File:Building_TownCenter_T4.png|200px]] |
|||
|category4=Amenities and Services |
|||
|tier4=4 |
|||
|prereq4=[[Town Center|Town Center - Tier 3]]<br />25 [[Shelter|Large House]]<br />1 [[Theater]]<br />1 [[Trading Post|Trading Center]]<br />300 [[Villagers]] |
|||
|size4=6x6 |
|||
|cost4={{InfoboxCost |
|||
| planks = 100 |
|||
| clay = 150 |
|||
| iron = 100 |
|||
| gold = 3500 |
|||
}} |
|||
|upkeep4=N/A |
|||
|produces4=N/A |
|||
|occupancy4=N/A |
|||
|upgrade_name4=N/A |
|||
|upgrade_cost4=N/A |
|||
|desirability4=Positive |
|||
<!--TAB 4 COMPLETE--> |
|||
}} |
}} |
||
</pre> |
</pre> |
||
{{Infobox_Building4_Portable |
{{Infobox_Building4_Portable |
||
|name1= |
|name1=Town Center - Tier 1 |
||
|image1=[[File:Building_TownCenter_T1.png|200px]] |
|||
|image1= |
|||
|category1= |
|category1=Amenities and Services |
||
|tier1= |
|tier1=1 |
||
|prereq1= |
|prereq1=None |
||
|size1= |
|size1=6x6 |
||
|cost1= |
|cost1={{InfoboxCost |
||
| logs = 16 |
|||
|upkeep1= |
|||
}} |
|||
|produces1= |
|||
|upkeep1=N/A |
|||
|occupancy1= |
|||
|produces1=N/A |
|||
|upgrade_name1= |
|||
|occupancy1=N/A |
|||
|upgrade_cost1= |
|||
|upgrade_name1=Town Center - Tier 2 |
|||
|desirability1= |
|||
|upgrade_cost1={{InfoboxCost |
|||
|name2= |
|||
| |
| planks = 50 |
||
| |
| stone = 25 |
||
}} |
|||
|tier2= |
|||
|desirability1=Positive |
|||
|prereq2= |
|||
<!--TAB 1 COMPLETE--> |
|||
|size2= |
|||
|name2=Town Center - Tier 2 |
|||
|cost2= |
|||
|image2=[[File:Building_TownCenter_T2.png|200px]] |
|||
|upkeep2= |
|||
|category2=Amenities and Services |
|||
|produces2= |
|||
|tier2=2 |
|||
|occupancy2= |
|||
|prereq2=[[Town Center]]<br />8 [[Shelter]]<br />1 [[Market]]<br />30 [[Villagers]] |
|||
|upgrade_name2= |
|||
|size2=6x6 |
|||
|upgrade_cost2= |
|||
|cost2={{InfoboxCost |
|||
|desirability2= |
|||
| |
| planks = 50 |
||
| |
| stone = 25 |
||
}} |
|||
|category3= |
|||
|upkeep2=N/A |
|||
|tier3= |
|||
|produces2=N/A |
|||
|prereq3= |
|||
|occupancy2=N/A |
|||
|size3= |
|||
|upgrade_name2=Town Center - Tier 3 |
|||
|cost3= |
|||
|upgrade_cost2={{InfoboxCost |
|||
|upkeep3= |
|||
| planks = 100 |
|||
|produces3= |
|||
| clay = 100 |
|||
|occupancy3= |
|||
| gold = 1200 |
|||
|upgrade_name3= |
|||
}} |
|||
|upgrade_cost3= |
|||
|desirability2=Positive |
|||
|desirability3= |
|||
<!--TAB 2 COMPLETE--> |
|||
|name4= |
|||
|name3=Town Center - Tier 3 |
|||
|image4= |
|||
|image3=[[File:Building_TownCenter_T3.png|200px]] |
|||
|category4= |
|||
|category3=Amenities and Services |
|||
|tier4= |
|||
|tier3=3 |
|||
|prereq4= |
|||
|prereq3=[[Town Center|Town Center - Tier 2]]<br />25 [[Shelter|Homestead]]<br />1 [[School]]<br />1 [[Trading Post]]<br />150 [[Villagers]] |
|||
|size4= |
|||
|size3=6x6 |
|||
|cost4= |
|||
|cost3={{InfoboxCost |
|||
|upkeep4= |
|||
| planks = 100 |
|||
|produces4= |
|||
| clay = 100 |
|||
|occupancy4= |
|||
| gold = 1200 |
|||
|upgrade_name4= |
|||
}} |
|||
|upgrade_cost4= |
|||
|upkeep3=N/A |
|||
|desirability4= |
|||
|produces3=N/A |
|||
|occupancy3=N/A |
|||
|upgrade_name3=Town Center - Tier 4 |
|||
|upgrade_cost3={{InfoboxCost |
|||
| planks = 100 |
|||
| clay = 150 |
|||
| iron = 100 |
|||
| gold = 3500 |
|||
}} |
|||
|desirability3=Positive |
|||
<!--TAB 3 COMPLETE--> |
|||
|name4=Town Center - Tier 4 |
|||
|image4=[[File:Building_TownCenter_T4.png|200px]] |
|||
|category4=Amenities and Services |
|||
|tier4=4 |
|||
|prereq4=[[Town Center|Town Center - Tier 3]]<br />25 [[Shelter|Large House]]<br />1 [[Theater]]<br />1 [[Trading Post|Trading Center]]<br />300 [[Villagers]] |
|||
|size4=6x6 |
|||
|cost4={{InfoboxCost |
|||
| planks = 100 |
|||
| clay = 150 |
|||
| iron = 100 |
|||
| gold = 3500 |
|||
}} |
|||
|upkeep4=N/A |
|||
|produces4=N/A |
|||
|occupancy4=N/A |
|||
|upgrade_name4=N/A |
|||
|upgrade_cost4=N/A |
|||
|desirability4=Positive |
|||
<!--TAB 4 COMPLETE--> |
|||
}} |
}} |
||
{{Clear}} |
{{Clear}} |
||
== PortableInfobox Documentation == |
|||
* [https://www.mediawiki.org/wiki/Extension:PortableInfobox MediaWiki Extension Page] |
|||
* [https://portability.fandom.com/wiki/Portable_Infoboxes PortableInfobox Main Documentation (fandom)] |
|||
* [https://community.fandom.com/wiki/Help:Infoboxes#Examples Generalized Help Page with Examples (fandom)] |
|||
* [https://portability.fandom.com/wiki/Example_communities#Portable_Infoboxes Additional Implementation Examples (fandom)] |
|||
== See Also == |
== See Also == |
||
* [[:Category:Portable Infoboxes]] - Holder category for all infoboxes using PortableInfobox |
|||
* [[Template:Infobox Building1 Portable]] - Template for buildings with no upgrade |
* [[Template:Infobox Building1 Portable]] - Template for buildings with no upgrade |
||
* [[Template:Infobox Building2 Portable]] - Template for buildings with a baseline + |
* [[Template:Infobox Building2 Portable]] - Template for buildings with a baseline + one upgrade |
||
* [[Template:Infobox Building5Tree Portable]] - Template for decorative trees |
|||
[[Category:Portable Building Infoboxes]] |
[[Category:Portable Building Infoboxes]] |
Latest revision as of 03:47, 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 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= <!--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--> }}
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_Building4_Portable |name1=Town Center - Tier 1 |image1=[[File:Building_TownCenter_T1.png|200px]] |category1=Amenities and Services |tier1=1 |prereq1=None |size1=6x6 |cost1={{InfoboxCost | logs = 16 }} |upkeep1=N/A |produces1=N/A |occupancy1=N/A |upgrade_name1=Town Center - Tier 2 |upgrade_cost1={{InfoboxCost | planks = 50 | stone = 25 }} |desirability1=Positive <!--TAB 1 COMPLETE--> |name2=Town Center - Tier 2 |image2=[[File:Building_TownCenter_T2.png|200px]] |category2=Amenities and Services |tier2=2 |prereq2=[[Town Center]]<br />8 [[Shelter]]<br />1 [[Market]]<br />30 [[Villagers]] |size2=6x6 |cost2={{InfoboxCost | planks = 50 | stone = 25 }} |upkeep2=N/A |produces2=N/A |occupancy2=N/A |upgrade_name2=Town Center - Tier 3 |upgrade_cost2={{InfoboxCost | planks = 100 | clay = 100 | gold = 1200 }} |desirability2=Positive <!--TAB 2 COMPLETE--> |name3=Town Center - Tier 3 |image3=[[File:Building_TownCenter_T3.png|200px]] |category3=Amenities and Services |tier3=3 |prereq3=[[Town Center|Town Center - Tier 2]]<br />25 [[Shelter|Homestead]]<br />1 [[School]]<br />1 [[Trading Post]]<br />150 [[Villagers]] |size3=6x6 |cost3={{InfoboxCost | planks = 100 | clay = 100 | gold = 1200 }} |upkeep3=N/A |produces3=N/A |occupancy3=N/A |upgrade_name3=Town Center - Tier 4 |upgrade_cost3={{InfoboxCost | planks = 100 | clay = 150 | iron = 100 | gold = 3500 }} |desirability3=Positive <!--TAB 3 COMPLETE--> |name4=Town Center - Tier 4 |image4=[[File:Building_TownCenter_T4.png|200px]] |category4=Amenities and Services |tier4=4 |prereq4=[[Town Center|Town Center - Tier 3]]<br />25 [[Shelter|Large House]]<br />1 [[Theater]]<br />1 [[Trading Post|Trading Center]]<br />300 [[Villagers]] |size4=6x6 |cost4={{InfoboxCost | planks = 100 | clay = 150 | iron = 100 | gold = 3500 }} |upkeep4=N/A |produces4=N/A |occupancy4=N/A |upgrade_name4=N/A |upgrade_cost4=N/A |desirability4=Positive <!--TAB 4 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 Building5Tree Portable - Template for decorative trees