Jump to content

Template:FortificationLevels

From WarExpand Wiki
Revision as of 22:48, 21 August 2026 by Warmaninger (talk | contribs) (Import generated wiki content (units, buildings, fortifications, overview, categories))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Renders a comparison table of every level of one fortification (levels as columns, stats as rows), reading Module:Data/Fortifications through Module:FortificationStats. Companion to Template:FortificationInfobox, which shows a single level.

Usage: {{FortificationLevels|code=auto_turret}}

  • code: the fortification code used by the game database, for example auto_turret, strategic_radar, silo_launcher.

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 country fortification data and are refreshed by scripts/export-wiki-data.cjs. Do not correct them here: fix the game data and re-run the export.