Template:StatDiff: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 3: Line 3:
     -->{{Hint<!--
     -->{{Hint<!--
         -->|<sup>[[File:Battleframe_buff.png|10px|link=]]</sup><!--
         -->|<sup>[[File:Battleframe_buff.png|10px|link=]]</sup><!--
         -->|Higher than base ({{{2}}}) by +{{#expr: {{{1}}}-{{{2}}}}}<!--
         -->|{{Translation|wiki_diff_higher|{{{lang|en}}} }}<br><br><!--
         -->|style=max-width:none;width:100px<!--
        -->{{Translation|wiki_diff_base|{{{lang|en}}} }} {{{2}}}<br><!--
            -->{{Translation|wiki_diff_increase|{{{lang|en}}} }} <!--
            --><span style{{=}}'color:lime'>+{{#expr: {{{1}}}-{{{2}}}}}</span><!--
         -->|style=max-width:none;width:150px<!--
     -->}}<!--
     -->}}<!--
-->|}}<!--
-->|}}<!--
Line 10: Line 13:
     -->{{Hint<!--
     -->{{Hint<!--
         -->|<sup>[[File:Battleframe_debuff.png|10px|link=]]</sup><!--
         -->|<sup>[[File:Battleframe_debuff.png|10px|link=]]</sup><!--
         -->|Lower than base ({{{2}}}) by -{{#expr: {{{2}}}-{{{1}}}}}<!--
         -->|{{Translation|wiki_diff_lower|{{{lang|en}}} }}<br><br><!--
        -->{{Translation|wiki_diff_base|{{{lang|en}}} }} {{{2}}}<br><!--
            -->{{Translation|wiki_diff_decrease|{{{lang|en}}} }} <!--
            --><span style{{=}}'color:#ff7676'>−{{#expr: {{{2}}}-{{{1}}}}}</span><!--
        -->|style=max-width:none;width:150px<!--
     -->}}<!--
     -->}}<!--
-->|}}<!--
-->|}}<!--

Latest revision as of 10:46, 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.

Base: 100
Increase: +5


2. Downwards:

Input: {{StatDiff|95|100}}

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

Base: 100
Decrease: −5


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.💬

Base:💬 100
Increase:💬 +5