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

m Added type and label attributes
m Default icon to grey
Line 2: Line 2:
<div style="display:flex; flex-direction:row; flex-grow: 1; flex-basis: 0; justify-content: left; background-color: #2A2A2A; font-size: 0.85em; margin: 3px; text-align: center; box-shadow: 0 0 10px #2A2A2A; border-radius: 1px; white-space: nowrap">
<div style="display:flex; flex-direction:row; flex-grow: 1; flex-basis: 0; justify-content: left; background-color: #2A2A2A; font-size: 0.85em; margin: 3px; text-align: center; box-shadow: 0 0 10px #2A2A2A; border-radius: 1px; white-space: nowrap">
<span style="white-space: nowrap">
<span style="white-space: nowrap">
{{Icon/{{{icon_color}}}|
{{Icon/{{{icon_color|Grey}}}|
{{#if:{{{type|}}}|{{#invoke:Abilities/card|get_attr_icon|{{{type}}}}}|
{{#if:{{{type|}}}|{{#invoke:Abilities/card|get_attr_icon|{{{type}}}}}|
[[File:{{{icon}}}|20px|link={{{icon_link}}}]]}}|
[[File:{{{icon}}}|20px|link={{{icon_link}}}]]}}|