Template:Ability card v2/Card: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{anchor|{{{name}}}}} | <includeonly>{{anchor|{{{name}}}}} | ||
<div style="font-size: 16px; font-family: 'PT Serif', 'Palatino', 'Georgia'; color: #FFEFD7; display:flex; flex-direction:column; | <div style="font-size: 16px; font-family: 'PT Serif', 'Palatino', 'Georgia'; color: #FFEFD7; display:flex; flex-direction:column; background: rgb(52,52,52); | ||
background: linear-gradient(90deg, rgba( | background: linear-gradient(90deg, rgba(52,52,52,1) 0%, rgba(66,66,66,1) 14%, rgba(77,77,77,1) 100%); align-items: center; max-width: 550px"> | ||
<!-- HEADER --> | <!-- HEADER --> | ||
<div style="display:flex; flex-direction:row; justify-content: space-between; width: 100%; background: #121212;"> | <div style="display:flex; flex-direction:row; justify-content: space-between; width: 100%; background: #121212;"> | ||
<div style="display:flex; flex-direction:column; padding: 10px"> | <div style="display:flex; flex-direction:column; padding: 10px"> | ||
<div style="font-size: 26px">{{{name}}}</div> | <div style="font-size: 26px">{{{name}}}</div> | ||
<div>{{{ | <div style="display:flex; flex-direction:row;"> | ||
{{#if: {{{range|}}}|<div style="background-color: #2C2C2C; margin-right: 20px; padding: 1px 3px 1px 3px">{{Icon/Grey|[[File:CastRange.png|20px]]|{{{range}}}}}</div>}}{{#if: {{{radius|}}}|<div style="background-color: #2C2C2C; margin-right: 20px; padding: 1px 3px 1px 3px; border-radius: 1px">{{Icon/Grey|[[File:AttributeIconTechRange.png|20px]]|{{{radius}}}}}</div>}}{{#if: {{{ability_width|}}}|<div style="background-color: #2C2C2C; padding: 1px 3px 1px 3px; border-radius: 1px">{{{ability_width}}}</div>}}{{#if: {{{duration|}}}|<div style="background-color: #2C2C2C; padding: 1px 3px 1px 3px">{{{duration}}}</div>}} | |||
</div> | |||
</div> | </div> | ||
<div style="display:flex; flex-direction:column; padding: 10px"> | <div style="display:flex; flex-direction:column; padding: 10px"> | ||
<div style="display:flex; flex-direction:row;"> | <div style="display:flex; flex-direction:row;"> | ||
<div>{{{num_of_charges|}}}</div> | {{#if: {{{num_of_charges|}}}|<div style="background-color: #2C2C2C; padding: 1px 3px 1px 3px; border-radius: 1px">{{Icon/Grey|[[File:AttributeIconMaxChargesIncrease.png|20px]]|{{{num_of_charges|}}}}}</div>}}{{#if: {{{charge_cooldown|}}}|<div style="background-color: #242424; padding: 1px 3px 1px 3px; border-radius: 1px">{{Icon/Grey|[[File:AttributeIconTechCooldown.png|20px]]|{{{charge_cooldown|}}}}}</div>}} | ||
</div> | </div> | ||
<div>{{{cooldown|}}}</div> | {{#if: {{{cooldown|}}}|<div style="background-color: #2C2C2C; padding: 1px 3px 1px 3px; border-radius: 1px">{{Icon/Grey|[[File:AttributeIconTechCooldown.png|20px]]|{{{cooldown|}}}}}</div>}} | ||
</div> | </div> | ||
</div> | </div> | ||
Line 23: | Line 20: | ||
<!-- INFO SECTIONS --> | <!-- INFO SECTIONS --> | ||
<div style="display:flex; flex-direction:column; align-items: center; margin: 5px 10px 20px 10px"> | <div style="display:flex; flex-direction:column; align-items: center; margin: 5px 10px 20px 10px"> | ||
<div style=" | <div style="padding: 20px 10px 20px 10px">{{{description}}}</div> | ||
<div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center"> | <div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; width: calc(90% - 5px);"> | ||
{{#invoke: AbilityData|get_info_main|{{{hero_name}}}|{{{ability_num}}}|1}} | {{#invoke: AbilityData|get_info_main|{{{hero_name}}}|{{{ability_num}}}|1}} | ||
</div> | </div> | ||
<div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; background-color: #2A2A2A;"> | <div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; background-color: #2A2A2A; width: calc(90% - 11px);"> | ||
{{#invoke: AbilityData|get_info_alt|{{{hero_name}}}|{{{ability_num}}}|1}} | {{#invoke: AbilityData|get_info_alt|{{{hero_name}}}|{{{ability_num}}}|1}} | ||
</div> | </div> | ||
Line 33: | Line 30: | ||
<!-- UPGRADES --> | <!-- UPGRADES --> | ||
<div style="display:flex; flex-direction:row; margin-bottom: 10px | <div style="display:flex; flex-direction:row; margin-bottom: 10px; justify-content: center; width: calc(90% - 18px);> | ||
{{#invoke: AbilityData|get_upgrades|{{{hero_name}}}|{{{ability_num}}}}} | {{#invoke: AbilityData|get_upgrades|{{{hero_name}}}|{{{ability_num}}}}} | ||
</div> | </div> | ||
</div> | </div></includeonly> | ||
</includeonly> | |||
<noinclude> | <noinclude> | ||
{{#invoke:AbilityData|get_ability_card| | {{#invoke:AbilityData|get_ability_card|Bebop|2|true}} | ||
</noinclude> | </noinclude> |
Revision as of 21:06, 22 September 2024
Script error: The function "get_ability_card" does not exist.