Jump to content

Template:UnitTiers: 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>{{UnitTiers|code=light_infantry}}</nowiki></code>
Usage: <code><nowiki>{{UnitTiers|code=light_infantry}}</nowiki></code>


* '''code''' – the unit code used by the game database, for example <code>light_infantry</code>, <code>heavy_tank</code>, <code>jet_fighter</code>.
* '''code''': the unit code used by the game database, for example <code>light_infantry</code>, <code>heavy_tank</code>, <code>jet_fighter</code>.


The table adapts to however many tiers the export provides; a stat row is hidden when no tier has a value for it. The numbers come straight from the game's <code>units_tier</code> table 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 table adapts to however many tiers the export provides; a stat row is hidden when no tier has a value for it. The numbers come straight from the game's <code>units_tier</code> table 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 a comparison table of every tier of one unit (tiers as columns, stats as rows), reading Module:Data/Units through Module:UnitStats. Companion to Template:UnitInfobox, which shows a single tier.

Usage: {{UnitTiers|code=light_infantry}}

  • code: the unit code used by the game database, for example light_infantry, heavy_tank, jet_fighter.

The table adapts to however many tiers the export provides; a stat row is hidden when no tier has a value for it. The numbers come straight from the game's units_tier table and are refreshed by scripts/export-wiki-data.cjs. Do not correct them here: fix the game data and re-run the export.