Template:FortificationInfobox: Difference between revisions
Appearance
Warmaninger (talk | contribs) Import generated wiki content (units, buildings, fortifications, overview, categories) |
Warmaninger (talk | contribs) Import generated wiki content (units, buildings, fortifications, overview, categories) |
||
| Line 4: | Line 4: | ||
Usage: <code><nowiki>{{FortificationInfobox|code=auto_turret|level=1}}</nowiki></code> | Usage: <code><nowiki>{{FortificationInfobox|code=auto_turret|level=1}}</nowiki></code> | ||
* '''code''' | * '''code''': the fortification code used by the game database, for example <code>auto_turret</code>, <code>strategic_radar</code>, <code>silo_launcher</code>. | ||
* '''level''' | * '''level''': fortification level, defaults to <code>1</code>. | ||
The numbers come from the game's country fortification data and are refreshed by <code>scripts/export-wiki-data.cjs</code>. Do not correct them here | The numbers come from the game's country fortification 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 fortification level, reading Module:Data/Fortifications through Module:FortificationStats. Companion to Template:FortificationLevels, which shows every level.
Usage: {{FortificationInfobox|code=auto_turret|level=1}}
- code: the fortification code used by the game database, for example
auto_turret,strategic_radar,silo_launcher. - level: fortification level, defaults to
1.
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.