Template:Ability card v2/Card/AltBox: Difference between revisions

m Make use of Abilities/icon module
alt size for boon icon
 
Line 5: Line 5:
{{#if:{{{icon|}}}|[[File:{{{icon}}}|{{{icon_size|18px}}}|link={{{icon_link}}}]]|{{#invoke:Abilities/icon|getAttrIconFile|{{{type|}}}}}}}|
{{#if:{{{icon|}}}|[[File:{{{icon}}}|{{{icon_size|18px}}}|link={{{icon_link}}}]]|{{#invoke:Abilities/icon|getAttrIconFile|{{{type|}}}}}}}|
{{ValueAndUom|'''{{{value}}}'''|id={{{key}}}|class=ability-attr|{{Lang|key={{{key}}}_postfix}}|uom_style=font-size: 10px; color: #9C9C9C}}
{{ValueAndUom|'''{{{value}}}'''|id={{{key}}}|class=ability-attr|{{Lang|key={{{key}}}_postfix}}|uom_style=font-size: 10px; color: #9C9C9C}}
}}&nbsp;<span class="ac-altbox-label">{{#if:{{{label|}}}|{{{label}}}|{{Lang|key={{{key}}}_label}}}}{{#if: {{{scale_type|}}}|&nbsp;{{Ability card v2/Card/Scaling|{{{scale_value}}}||scale_type={{{scale_type}}}|id={{{key}}}-scale|icon_size=20px}}}}</span></span>
}}&nbsp;<span class="ac-altbox-label">{{#if:{{{label|}}}|{{{label}}}|{{Lang|key={{{key}}}_label}}}}{{#if: {{{scale_type|}}}|&nbsp;{{Ability card v2/Card/Scaling|{{{scale_value}}}||scale_type={{{scale_type}}}|id={{{key}}}-scale|icon_size={{#ifeq:{{{scale_type}}}|power_increase|15px|20px}}}}}}</span></span>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>