Template:UnitAbility/stats

From Heroes of Might and Magic: Olden Era Official Wiki
Revision as of 23:46, 4 August 2026 by N (talk | contribs) (Newer formatting, implemented screen-size responsive hints)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Renders the Morale, Luck and Necromancy stats for an ability.

This is normally instantiated by the Module:UnitAbility/buildStats() function, by parsing the game description of a creature type.

Usage

1. With truthy values:

Input:

{{UnitAbility/stats
| lang = en
| morale_hint = Morale range
| morale_range = -5 to 5
| luck_hint = Luck range
| luck_range = -3 to 3
| necromancy_hint = Fallen Living creatures can be raised as Undead after battle.
| necromancy = 1
}}

Output:

-5 to 5Morale range
-3 to 3Luck range
YesFallen Living creatures can be raised as Undead after battle.

2. With falsy values: Input:

{{UnitAbility/stats
| lang = en
| morale_hint = Morale
| morale_range = Always neutral
| luck_hint = Luck
| luck_range = Always neutral
| necromancy_hint = Fallen Constructs cannot be raised as Undead after battle.
| necromancy = 0
}}

Output:

Always neutralMorale
Always neutralLuck
NoFallen Constructs cannot be raised as Undead after battle.

3. Japanese:

{{UnitAbility/stats
| lang = ja
| morale_hint = 士気
| morale_range = –3~3
| luck_hint = 幸運
| luck_range = –5~5
| necromancy_hint = 倒れた魔法クリーチャーは、戦闘後にアンデッドとして蘇生できる。
| necromancy = 1
}}

Output:

–3~3士気
–5~5幸運
Yes💬倒れた魔法クリーチャーは、戦闘後にアンデッドとして蘇生できる。