Template:StatDiff: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
-->}}<!-- | -->}}<!-- | ||
-->|}}<!-- | -->|}}<!-- | ||
-->{{#ifexpr: {{{1|}}} | -->{{#ifexpr: {{{1|}}}<{{{2|}}}|<!-- | ||
-->{{Hint<!-- | -->{{Hint<!-- | ||
-->|<sup>[[File:Battleframe_debuff.png|10px|link=]]</sup><!-- | -->|<sup>[[File:Battleframe_debuff.png|10px|link=]]</sup><!-- | ||
| Line 31: | Line 31: | ||
{{Color|lime|Output:}} {{StatDiff|95|100}} | {{Color|lime|Output:}} {{StatDiff|95|100}} | ||
---- | ---- | ||
Revision as of 10:02, 15 July 2026
Compares two numbers and displays an upwards/downwards arrow, with an explicatory Hint.
Usage
1. Upwards:
Input: {{StatDiff|105|100}}
Output:
Higher than base (100) by +5
2. Downwards:
Input: {{StatDiff|95|100}}
Output:
Lower than base (100) by -5
3. Equality:
Input: {{StatDiff|100|100}}
Output:
4. Japanese:
Input: {{StatDiff|105|100|lang=ja}}
Output:
Higher than base (100) by +5


