Template:UnitAbility/stats: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
Created page with "<includeonly><!-- -->{{Hint<!-- -->|24px|link= {{{morale_range}}}<!-- -->|{{{morale_hint}}}<!-- -->}}<!-- --> | {{Hint<!-- -->|24px|link= {{{luck_range}}}<!-- -->|{{{luck_hint}}}<!-- -->}}<!-- --> | {{Hint<!-- -->|24px|link= <!-- -->{{Translation|wiki_{{#ifexpr: {{{necromancy}}}=1|yes|no}}|{{{lang}}}}}<!-- -->|{{{necromancy_hint}}}<!-- -->}}<!-- --></..."
 
No edit summary
Line 12: Line 12:
         -->{{Translation|wiki_{{#ifexpr: {{{necromancy}}}=1|yes|no}}|{{{lang}}}}}<!--
         -->{{Translation|wiki_{{#ifexpr: {{{necromancy}}}=1|yes|no}}|{{{lang}}}}}<!--
     -->|{{{necromancy_hint}}}<!--
     -->|{{{necromancy_hint}}}<!--
    -->|side=left<!--
-->}}<!--
-->}}<!--
--></includeonly><!--
--></includeonly><!--

Revision as of 19:09, 31 July 2026

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: Template:UnitAbilities/stats

2. With falsy values: Input:

{{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:UnitAbilities/stats


3. Japanese:

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

Output: Template:UnitAbilities/stats