Template:Ability card v2/Card/AltBox: Difference between revisionsGive feedback
Tag: Undo |
Added support for "-" prefixes |
||
| Line 4: | Line 4: | ||
{{Icon/{{{icon_color|Grey}}}| | {{Icon/{{{icon_color|Grey}}}| | ||
{{#if:{{{icon|}}}|[[File:{{{icon}}}|{{{icon_size|18px}}}|link={{{icon_link}}}]]|{{#invoke:Abilities/card|get_attr_icon|{{{type|}}}}}}}| | {{#if:{{{icon|}}}|[[File:{{{icon}}}|{{{icon_size|18px}}}|link={{{icon_link}}}]]|{{#invoke:Abilities/card|get_attr_icon|{{{type|}}}}}}}| | ||
{{ValueAndUom|'''{{{value}}}'''|id={{{key}}}|{{Lang|key={{{key}}}_postfix}}|uom_style=font-size: 10px; color: #9C9C9C}} | <!-- Only show value_prefix if it is the minus symbol "-" --> | ||
{{#vardefine:value_prefix|{{Lang|key={{{key}}}_prefix}}}}{{#ifeq:{{#var:value_prefix}}|-|{{#var:value_prefix}}}}{{ValueAndUom|'''{{{value}}}'''|id={{{key}}}|{{Lang|key={{{key}}}_postfix}}|uom_style=font-size: 10px; color: #9C9C9C}} | |||
}} <span style="font-size: 0.75rem; white-space: nowrap">{{#if:{{{label|}}}|{{{label}}}|{{Lang|key={{{key}}}_label}}}}{{#ifeq: {{{scale_type}}}|spirit| {{Ability card v2/Spirit mult|{{{scale_value}}}|icon_size=35px}}}}</span></span> | }} <span style="font-size: 0.75rem; white-space: nowrap">{{#if:{{{label|}}}|{{{label}}}|{{Lang|key={{{key}}}_label}}}}{{#ifeq: {{{scale_type}}}|spirit| {{Ability card v2/Spirit mult|{{{scale_value}}}|icon_size=35px}}}}</span></span> | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
{{#invoke:Abilities/card|get_ability_card|Rem|1|false}} | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||