Template:StatCompare: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{#if:{{{1|}}}{{{2|}}}|{{#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>|}}}}<noinclude>[[Category:Utility templates]] | {{#if:{{{1|}}}{{{2|}}}|{{#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>|}}}}<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]] | |||
Revision as of 22:42, 28 April 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.


