Template:BuildingLevels
Appearance
Renders a comparison table of every level of one building (levels as columns, stats as rows), reading Module:Data/Buildings through Module:BuildingStats. Companion to Template:BuildingInfobox, which shows a single level.
Usage: {{BuildingLevels|code=metal_mine}}
- code: the building code used by the game database, for example
metal_mine,barraks,aircraft_factory.
The table adapts to however many levels the export provides; a stat row is hidden when no level has a value for it. The numbers come from the game's building data and are refreshed by scripts/export-wiki-data.cjs. Do not correct them here: fix the game data and re-run the export.