Template:StatDiff: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 7: Line 7:
         -->{{Translation|wiki_diff_increase|{{{lang|en}}} }} <!--
         -->{{Translation|wiki_diff_increase|{{{lang|en}}} }} <!--
         --><span style{{=}}'color:lime'>+{{#expr: {{{1}}}-{{{2}}}}}</span><!--
         --><span style{{=}}'color:lime'>+{{#expr: {{{1}}}-{{{2}}}}}</span><!--
        -->style=max-width:200px<!--
     -->}}<!--
     -->}}<!--
-->|}}<!--
-->|}}<!--
Line 15: Line 16:
         -->{{Translation|wiki_diff_base|{{{lang|en}}} }} {{{2}}}<br><!--
         -->{{Translation|wiki_diff_base|{{{lang|en}}} }} {{{2}}}<br><!--
         -->{{Translation|wiki_diff_decrease|{{{lang|en}}} }} <!--
         -->{{Translation|wiki_diff_decrease|{{{lang|en}}} }} <!--
         --><span style{{=}}'color:ff7676'>−{{#expr: {{{2}}}-{{{1}}}}}</span><!--
         --><span style{{=}}'color:#ff7676'>−{{#expr: {{{2}}}-{{{1}}}}}</span><!--
        -->style=max-width:200px<!--
     -->}}<!--
     -->}}<!--
-->|}}<!--
-->|}}<!--

Revision as of 10:45, 15 July 2026

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

Usage

1. Upwards:

Input: {{StatDiff|105|100}}

Output: {{{2}}}


2. Downwards:

Input: {{StatDiff|95|100}}

Output: {{{2}}}


3. Equality:

Input: {{StatDiff|100|100}}

Output:


4. Japanese:

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

Output: {{{2}}}