Jump to content

Template:BuildingInfobox: Difference between revisions

From WarExpand Wiki
Import generated wiki content (units, buildings, fortifications, overview, categories)
 
Import generated wiki content (units, buildings, fortifications, overview, categories)
 
Line 4: Line 4:
Usage: <code><nowiki>{{BuildingInfobox|code=metal_mine|level=1}}</nowiki></code>
Usage: <code><nowiki>{{BuildingInfobox|code=metal_mine|level=1}}</nowiki></code>


* '''code''' – the building code used by the game database, for example <code>metal_mine</code>, <code>barraks</code>, <code>aircraft_factory</code>.
* '''code''': the building code used by the game database, for example <code>metal_mine</code>, <code>barraks</code>, <code>aircraft_factory</code>.
* '''level''' – building level, defaults to <code>1</code>.
* '''level''': building level, defaults to <code>1</code>.


The numbers come from the game's building data and are refreshed by <code>scripts/export-wiki-data.cjs</code>. Do not correct them here – fix the game data and re-run the export.
The numbers come from the game's building data and are refreshed by <code>scripts/export-wiki-data.cjs</code>. Do not correct them here: fix the game data and re-run the export.
</noinclude>
</noinclude>

Latest revision as of 22:48, 21 August 2026

Renders the stat box for one building level, reading Module:Data/Buildings through Module:BuildingStats. Companion to Template:BuildingLevels, which shows every level.

Usage: {{BuildingInfobox|code=metal_mine|level=1}}

  • code: the building code used by the game database, for example metal_mine, barraks, aircraft_factory.
  • level: building level, defaults to 1.

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.