Template:StatDiff: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#ifexpr: {{{1|}}}>{{{2|}}}|<!--
-->{{#ifexpr: {{{1|}}}>{{{2|}}}|<!--
     --><sup>{{Hint
     --><sup>{{Hint<!--
         |[[File:Battleframe_buff.png|10px|link=]]
         -->|[[File:Battleframe_buff.png|10px|link=]]<!--
         |This stat is higher compared to the base unit.<!--
         -->|This stat is higher compared to the base unit.<!--
     -->}}</sup>|}}<!--
     -->}}</sup>|}}<!--
-->{{#ifexpr: {{{1|}}}<{{{2|}}}|<!--
-->{{#ifexpr: {{{1|}}}<{{{2|}}}|<!--
     --><sup>{{Hint
     --><sup>{{Hint<!--
         |[[File:Battleframe_debuff.png|10px|link=]]
         -->|[[File:Battleframe_debuff.png|10px|link=]]<!--
         |This stat is lower compared to the base unit.<!--
         -->|This stat is lower compared to the base unit.<!--
     -->}}</sup>|}}<!--
     -->}}</sup>|}}<!--
--></includeonly><!--
--></includeonly><!--

Revision as of 09:55, 15 July 2026

Compares two numbers and displays an upwards/downwards arrow, with an explicatory Hint.

Usage

1. Upwards:

Input: {{StatDiff|105|100}}

Output: This stat is higher compared to the base unit.


2. Downwards:

Input: {{StatDiff|95|100}}

Output: This stat is lower compared to the base unit.



3. Equality:

Input: {{StatDiff|100|100}}

Output:


4. Japanese:

Input: {{StatDiff|105|100|lang=ja}}

Output: This stat is higher compared to the base unit.