Template:Building infobox: Difference between revisions
From Beyond These Stars Official Wiki
Created to serve Module that renders the infobox from a cargo query and joins |
changing module name |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#invoke: | <includeonly>{{#invoke:Building_infobox|render | ||
|page_name={{{ | |page_name={{{name|{{{1|{{FULLPAGENAME}}}}}}}} | ||
}} | }} | ||
[[Category: Buildings]] | |||
</includeonly><noinclude> | |||
{{Template doc | |||
|overview=Generates an infobox for the specified building based on game data and adds the page to the '''Buildings''' category. | |||
|usage=Use at the top of articles dedicated to one building. Not designed for use anywhere else. | |||
|parameters={{Parameters table | |||
| name | the name of the building<br />OR as an unnamed parameter<br />OR leave blank to use the [https://www.mediawiki.org/wiki/Manual:Page_naming#FULLPAGENAME page's name.] | |||
}} | |||
|examples=<pre>{{Building infobox|Ore Smelter}}</pre> | |||
{{Building infobox|Ore Smelter}} | |||
Yields the box over to the right for the Ore Smelter building. | |||
|copypasta=<pre>{{Building infobox | |||
|name= | |||
}}</pre> | |||
|add_categories=[[Category: Infobox templates]] | |||
}} | |||
== Further examples == | |||
<pre>{{Building infobox|Home Spaceship}}</pre> | |||
{{Building infobox|Home Spaceship}} | |||
</noinclude> | |||
Latest revision as of 02:34, 9 October 2026
Generates an infobox for the specified building based on game data and adds the page to the Buildings category.
Usage
Use at the top of articles dedicated to one building. Not designed for use anywhere else.
| Parameter | Purpose |
|---|---|
name | the name of the building OR as an unnamed parameter OR leave blank to use the page's name. |
Examples
{{Building infobox|Ore Smelter}}
Ore Smelter
Construction Building
The molten metals make the air shimmer.
Refines Ore into Ingots.
Also produces the Soot By-Product.
Produces Medium levels of Pollution while working.
Refines Ore into Ingots.
Also produces the Soot By-Product.
Produces Medium levels of Pollution while working.
Tech tree prerequisite
Construction costs
Work
| Task | (Time) |
|---|---|
| Iron_1 | (5s) |
| Copper_1 | (5s) |
Yields the box over to the right for the Ore Smelter building.
Copypasta
{{Building infobox
|name=
}}
Further examples
{{Building infobox|Home Spaceship}}
Home Spaceship
Other Building
A reminder of how the Peeps left.
Slowly produces everything the Peeps need to start an outpost.
Requires an Upgrade in order to be launched again.
Produces no Pollution.
Slowly produces everything the Peeps need to start an outpost.
Requires an Upgrade in order to be launched again.
Produces no Pollution.
Work
| Task | (Time) |
|---|---|
| Water | (20s) |
| Potatoes | (20s) |
| Wood | (6s) |
| Mine_Iron | (6s) |
| Mine_Stone | (6s) |
| Tool_1 | (6s) |


