More actions
m Migrated to Abilities/card module |
m Added support for a type attribute to retrieve all icon information |
||
Line 9: | Line 9: | ||
<div style="display:flex; flex-direction:column; flex-grow: 1; justify-content: center; {{#ifeq: {{{scale_type}}} | spirit | background: rgb(42,41,43); | <div style="display:flex; flex-direction:column; flex-grow: 1; justify-content: center; {{#ifeq: {{{scale_type}}} | spirit | background: rgb(42,41,43); | ||
background: radial-gradient(circle, rgba(42,41,43,1) 0%, rgba(59,49,69,1) 100%); |background-color: #2A2A2A}}; text-align: center; border: 3px solid {{#ifeq: {{{scale_type}}} | spirit | #583D6F | #2A2A2A}}; box-shadow: 0 0 10px {{#ifeq: {{{scale_type}}} | spirit | #3d2c4d | #2A2A2A}}; border-radius: 1px"> | background: radial-gradient(circle, rgba(42,41,43,1) 0%, rgba(59,49,69,1) 100%); |background-color: #2A2A2A}}; text-align: center; border: 3px solid {{#ifeq: {{{scale_type}}} | spirit | #583D6F | #2A2A2A}}; box-shadow: 0 0 10px {{#ifeq: {{{scale_type}}} | spirit | #3d2c4d | #2A2A2A}}; border-radius: 1px"> | ||
<div style="font-weight: bold;">{{Icon/{{{icon_color}}}|[[File:{{{icon}}}|{{{icon_size|18px}}}|link={{{icon_link}}}]]|{{ValueAndUom|'''{{{value}}}'''|{{Lang|key={{{key}}}_postfix}}|uom_style=font-size: calc(1em - 4px); color: #9C9C9C}}}}</div> | <div style="font-weight: bold;"> | ||
{{Icon/{{{icon_color}}}| | |||
{{#if:{{{type|}}}|{{#invoke:Abilities/card|get_attr_icon|{{{type}}}}}| | |||
[[File:{{{icon}}}|{{{icon_size|18px}}}|link={{{icon_link}}}]]}}| | |||
{{ValueAndUom|'''{{{value}}}'''|{{Lang|key={{{key}}}_postfix}}|uom_style=font-size: calc(1em - 4px); color: #9C9C9C}} | |||
}}</div> | |||
<div style="font-size: 0.8rem">{{Lang|key={{{key}}}_label}}</div> | <div style="font-size: 0.8rem">{{Lang|key={{{key}}}_label}}</div> | ||
</div></div> | </div></div> |