Template:StatCompare: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
Added {{hint|}} template for hovertext |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{#if:{{{1|}}}{{{2|}}}|{{#ifexpr:{{#invoke:Unit|get|{{{1}}}|{{{3}}}}}>{{#invoke:Unit|get|{{{2}}}|{{{3}}}}}|<sup> | {{#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.


