Project Rebearth
Menu
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Search
What links here
Related changes
Page information
Recent changes
Help
Not logged in
Talk
Contributions
Create account
Log in
Actions
Template
Discussion
Edit
View history
Template
Editing
Building
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
<includeonly><templatestyles src="Building/styles.css" /><templatestyles src="Main page/styles.css" /><div class="rb-infobox-building"><div class="rb-ib-border rb-scooped-corners"><div class="rb-ib-inner rb-scooped-corners"><!-- ---- HEADER ---- --><div class="rb-ib-header">{{{name|{{PAGENAME}}}}}</div><!-- ---- IMAGE (single) ---- -->{{#if:{{{image|}}}|<div class="rb-ib-image">[[File:{{{image}}}|270px]]</div>}}<!-- ---- IMAGE (biome variants) ---- -->{{#if:{{{image_wood|}}}{{{image_stone|}}}{{{image_earth|}}}|<div class="rb-ib-biome-gallery"><!-- -->{{#if:{{{image_wood|}}}|<div class="rb-ib-biome-item">[[File:{{{image_wood}}}|125px]]<div class="rb-ib-biome-label">Wood</div></div>}}<!-- -->{{#if:{{{image_stone|}}}|<div class="rb-ib-biome-item">[[File:{{{image_stone}}}|125px]]<div class="rb-ib-biome-label">Stone</div></div>}}<!-- -->{{#if:{{{image_earth|}}}|<div class="rb-ib-biome-item">[[File:{{{image_earth}}}|125px]]<div class="rb-ib-biome-label">Earth</div></div>}}<!-- --></div>}}<!-- ---- CAPTION ---- -->{{#if:{{{caption|}}}|<div class="rb-ib-caption">{{{caption}}}</div>}}<!-- ---- GENERAL INFO SECTION ---- --><div class="rb-ib-section">General</div><!-- ---- Category ---- -->{{#if:{{{category|}}}|<div class="rb-ib-row"><div class="rb-ib-label">Category</div><div class="rb-ib-data"><span class="rb-ib-badge">{{{category}}}</span></div></div>}}<!-- ---- Type ---- -->{{#if:{{{type|}}}|<div class="rb-ib-row"><div class="rb-ib-label">Type</div><div class="rb-ib-data">{{{type}}}</div></div>}}<!-- ---- Production ---- -->{{#if:{{{production|}}}|<div class="rb-ib-row"><div class="rb-ib-label">Production</div><div class="rb-ib-data">{{{production}}}</div></div>}}<!-- ---- Placement ---- -->{{#if:{{{placement|}}}|<div class="rb-ib-row"><div class="rb-ib-label">Placement</div><div class="rb-ib-data">{{{placement}}}</div></div>}}<!-- ---- COST SECTION ---- -->{{#if:{{{cost|}}}|<div class="rb-ib-section">Construction</div><div class="rb-ib-fullrow">{{{cost}}}</div>}}<!-- ---- PRODUCTION SECTION ---- -->{{#if:{{{rate|}}}{{{storage|}}}|<div class="rb-ib-section">Economy</div>}}<!-- ---- Rate ---- -->{{#if:{{{rate|}}}|<div class="rb-ib-row"><div class="rb-ib-label">Rate</div><div class="rb-ib-data">{{{rate}}}</div></div>}}<!-- ---- Storage ---- -->{{#if:{{{storage|}}}|<div class="rb-ib-row"><div class="rb-ib-label">Storage</div><div class="rb-ib-data">{{{storage}}}</div></div>}}<!-- ---- POPULATION SECTION ---- -->{{#if:{{{population|}}}|<div class="rb-ib-section">Population</div><div class="rb-ib-row"><div class="rb-ib-label">Workers</div><div class="rb-ib-data">{{{population}}}</div></div>}}<!-- ---- UPGRADES ---- -->{{#if:{{{upgrades_to|}}}{{{upgraded_from|}}}|<div class="rb-ib-section">Upgrades</div>}}<!-- -->{{#if:{{{upgraded_from|}}}|<div class="rb-ib-row"><div class="rb-ib-label">From</div><div class="rb-ib-data">{{{upgraded_from}}}</div></div>}}<!-- -->{{#if:{{{upgrades_to|}}}|<div class="rb-ib-row"><div class="rb-ib-label">To</div><div class="rb-ib-data">{{{upgrades_to}}}</div></div>}}<!-- ---- SPECIAL ---- -->{{#if:{{{special|}}}|<div class="rb-ib-section">Special</div><div class="rb-ib-fullrow">{{{special}}}</div>}}<!-- ---- FOOTER ---- --><div class="rb-ib-footer">[[Buildings|View all buildings]]</div><!-- --></div></div></div></includeonly><noinclude> == Building == A styled infobox for all building pages on the Project Rebearth Wiki. Matches the wiki's visual identity with warm browns, golds, and scooped corners. == Usage == <pre> {{Building | name = Bakery | image = | image_wood = BakeryWood.png | image_stone = BakeryStone.png | image_earth = BakeryClay.png | caption = | category = Food | type = Point | production = Yes | placement = | cost = | rate = [[Flour]]: -50/day, [[Food]]: +50/day, [[Tools]]: -0.1/day | population = -5 | storage = 100 ([[Food]]) | upgrades_to = | upgraded_from = | special = }} </pre> Use <code>image</code> for buildings with a single appearance across all biomes, '''or''' use <code>image_wood</code> / <code>image_stone</code> / <code>image_earth</code> for biome-specific variants. Do not combine both. == Parameters == {| class="wikitable" |- ! Parameter !! Required !! Description |- | <code>name</code> || No || Building name. Defaults to the page title. |- | <code>image</code> || No || Image filename for buildings with a single appearance (e.g. <code>museum.png</code>). |- | <code>image_wood</code> || No || Biome variant image for the Wood biome. |- | <code>image_stone</code> || No || Biome variant image for the Stone biome. |- | <code>image_earth</code> || No || Biome variant image for the Earth biome (assets use "Clay" in filenames). |- | <code>caption</code> || No || Caption displayed below the image. |- | <code>category</code> || Yes || Building category (e.g. Food, Housing, Production, Town, Storage, Territory). |- | <code>type</code> || Yes || Building type (e.g. Point). |- | <code>production</code> || No || Whether the building produces resources (<code>Yes</code> or <code>No</code>). |- | <code>placement</code> || No || Placement restrictions (e.g. "Within 100m of [[Center]]"). |- | <code>cost</code> || No || Construction cost. Supports raw wikitext for simple or complex biome-based cost tables. |- | <code>rate</code> || No || Production and consumption rates per day. |- | <code>population</code> || No || Population effect (positive = provides, negative = requires). |- | <code>storage</code> || No || Storage capacity and resource type. |- | <code>upgrades_to</code> || No || The building this upgrades to (link). |- | <code>upgraded_from</code> || No || The building this is upgraded from (link). |- | <code>special</code> || No || Any special effects or unlocks. |} == Examples == === Production Building (Bakery) === {{Building | name = Bakery | image_wood = BakeryWood.png | image_stone = BakeryStone.png | image_earth = BakeryClay.png | category = Food | type = Point | production = Yes | rate = [[Flour]]: -50/day, [[Food]]: +50/day, [[Tools]]: -0.1/day | population = -5 | storage = 100 ([[Food]]) }} {{clear}} === Housing Building (House) === {{Building | name = House | image_wood = HouseWood.png | image_stone = HouseStone.png | image_earth = HouseClay.png | category = Housing | type = Point | placement = Within 100m of [[Center]], [[Square]], or [[Market]] | population = +6 }} === Single-Image Building (Museum) === {{Building | name = Museum | image = museum.png | category = Research | type = Point }} {{clear}} === Upgrade Chain (Windmill → Improved Windmill) === {{Building | name = Windmill | image_wood = WindmillWood.png | image_stone = WindmillStone.png | image_earth = WindmillClay.png | category = Food | type = Point | production = Yes | rate = [[Grain]]: -50/day, [[Flour]]: +50/day | population = -5 | upgrades_to = [[Improved Windmill]] }} {{clear}} === Special Building (Town Hall) === {{Building | name = Town Hall | image_wood = TownHallWood.png | image_stone = TownHallStone.png | image_earth = TownHallClay.png | category = Town | type = Point | population = -20 | special = Unlocks global ranking, [[Trade Alliance|alliances]], and [[Choices|choices]]. }} {{clear}} [[Category:Infobox templates]] </noinclude>
Summary:
Please note that all contributions to Project Rebearth may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project Rebearth:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Pages included on this page:
Template:Building
(
edit
)
Template:Building/styles.css
(
edit
)
Template:Clear
(
edit
)
Template:Main page/styles.css
(
edit
)