Template:Sandbox/Aurelain/UnitAbility/stats
From Heroes of Might and Magic: Olden Era Official Wiki
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:
{{Sandbox/Aurelain/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: Template:Sandbox/Aurelain/UnitAbilities/stats
2. With falsy values: Input:
{{Sandbox/Aurelain/UnitAbilities/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: Template:Sandbox/Aurelain/UnitAbilities/stats
3. Japanese:
{{Sandbox/Aurelain/UnitAbilities/stats
| lang = ja
| morale_hint = 士気
| morale_range = –3~3
| luck_hint = 幸運
| luck_range = –5~5
| necromancy_hint = 倒れた魔法クリーチャーは、戦闘後にアンデッドとして蘇生できる。
| necromancy = 1
}}
Output: Template:Sandbox/Aurelain/UnitAbilities/stats


