Template:StatCompare: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
N (talk | contribs)
Added {{hint|}} template for hovertext
 
(12 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr:{{#invoke:Unit|get|{{{1}}}|{{{3}}}}}>{{#invoke:Unit|get|{{{2}}}|{{{3}}}}}|<sup><span title='This stat is higher compared to the base unit.'>[[File:Battleframe_buff.png|10px|link=]]</span></sup>|}}{{#ifexpr:{{#invoke:Unit|get|{{{1}}}|{{{3}}}}}<{{#invoke:Unit|get|{{{2}}}|{{{3}}}}}|<sup><span title='This stat is lower compared to the base unit.'>[[File:Battleframe debuff.png|10px|link=]]</span></sup>|}}</includeonly>
{{#if:{{{1|}}}{{{2|}}}|{{#ifexpr:{{#invoke:Unit|get|{{{1}}}|{{{3}}}}}>{{#invoke:Unit|get|{{{2}}}|{{{3}}}}}|<sup>{{hint|[[File:Battleframe_buff.png|10px|link=]]|This stat is higher compared to the base unit.|0}}</sup>}}{{#ifexpr:{{#invoke:Unit|get|{{{1}}}|{{{3}}}}}<{{#invoke:Unit|get|{{{2}}}|{{{3}}}}}|<sup>{{hint|[[File:Battleframe debuff.png|10px|link=]]|This stat is lower compared to the base unit.|0}}</sup>|}}}}<noinclude>
This template uses [[Module:Unit]] to compare stats between base and upgraded versions of the unit.
<nowiki>{</nowiki>{'''StatCompare''' or '''SC'''|''Upgraded unit''|''Base unit''|''Stat name''}}
* <code>''Upgraded unit''</code> — the in-game name of the unit being compared (upgraded version), in English.
* <code>''Base unit''</code> — the in-game name of the unit being compared with (base version), in English.
* <code>''Stat name''</code> — for list of possible stats, see [[Module:Unit]].
[[Category:Utility templates]]

Latest revision as of 15:47, 30 May 2026

This template uses Module:Unit to compare stats between base and upgraded versions of the unit.

{{StatCompare or SC|Upgraded unit|Base unit|Stat name}}
  • Upgraded unit — the in-game name of the unit being compared (upgraded version), in English.
  • Base unit — the in-game name of the unit being compared with (base version), in English.
  • Stat name — for list of possible stats, see Module:Unit.