Template:Ability card v2/Card: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Saag (talk | contribs)
added notes area
Snes (talk | contribs)
Match in game card - added subtly gap between ability charge and cooldown boxes, and increased cast cooldown text size.
 
(48 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{anchor|{{{name}}}}}<div style="font-size: 16px; font-family: 'PT Serif', 'Palatino', 'Georgia'; color: #FFEFD7; display:flex; flex-direction:column;   background: rgb(52,52,52);
<includeonly>{{anchor|{{{name}}}}}<div style="font-size: 1rem; line-height: 1.4; font-family: 'Retail Demo Regular', 'PT Serif', serif; color: #FFEFD7; display:flex; flex-direction:column; background: rgb(52,52,52); 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; width: 100%; max-width: 500px; border-radius: 4px;">
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: 700px">


   <!-- HEADER -->
   <!-- HEADER -->
   <div style="display:flex; flex-direction:row; justify-content: space-between; width: 100%; background: #121212; font-size: 14px;">     
   <div style="width: 100%">
    <div style="display:flex; flex-direction:column; padding: 20px">
    <div style="display:flex; flex-direction:row; justify-content: space-between; background: #121212; font-size: calc(1em - 2px); border-radius: 13px; padding: 0 8px 14px 8px">     
      <div style="font-size: 26px">{{#if:{{{name_link}}}|[[{{{name_link}}}|{{{name}}}]]|{{{name}}}}}</div>
      <div style="display:flex; flex-direction:column;">
      <div style="display:flex; flex-direction:row; margin-left: 10px;">
        <div style="font-size: 1.6rem;">
        {{User:Saag/Sandbox/AbilityCard/HeaderAttr|{{{range|}}}|uom=m|icon=CastRange.png}}
<span style="filter: brightness(0) saturate(100%) invert(98%) sepia(19%) saturate(1458%) hue-rotate(301deg) brightness(102%) contrast(109%); padding: 0 5px 0 7px">[[File:{{{icon}}}|45px|link=]]</span><span style="font-family:Retail Demo bold;">{{#if:{{{name_link|}}}|[[{{{name_link}}}|{{{name}}}]]|{{{name}}}}}</span>
        {{User:Saag/Sandbox/AbilityCard/HeaderAttr|{{{radius|}}}|uom=m|icon=AttributeIconTechRange.png}}
    </div>
        {{User:Saag/Sandbox/AbilityCard/HeaderAttr|{{{ability_width|}}}|uom=m|icon=AttributeIconTechRange.png}}
        <div style="display:flex; flex-direction:row; margin-left: 10px;">
        {{User:Saag/Sandbox/AbilityCard/HeaderAttr|{{{duration|}}}|uom=m|icon=AttributeIconMaxChargesIncrease.png}}
          {{Ability_card_v2/HeaderAttr|{{{range|}}}|uom=m|icon=[[File:CastRange.png|20px|link=Ability_Range]]}}
          {{Ability_card_v2/HeaderAttr|{{{radius|}}}|uom=m|icon=[[File:AttributeIconTechRange.png|20px|link=Ability_Range]]}}
          {{Ability_card_v2/HeaderAttr|{{{ability_width|}}}|uom=m|icon=[[File:AttributeIconTechRange.png|20px|link=Ability_Range]]}}
          {{Ability_card_v2/HeaderAttr|{{{duration|}}}|uom=s|icon=[[File:AttributeIconTechDuration.png|20px|link=]]}}
        </div>
       </div>
       </div>
    </div>
      <div style="display:flex; flex-direction:column; align-items: end; justify-content: flex-end;">
    <div style="display:flex; flex-direction:column; align-items: end; padding: 20px">
        <div style="display:flex; flex-direction:row; justify-content: flex-end; margin-bottom: 5px; margin-right: 20px;">
      <div style="display:flex; flex-direction:row; justify-content: flex-end; margin-bottom: 5px">
          {{Ability_card_v2/HeaderAttr|{{{num_of_charges|}}}|icon=[[File:AttributeIconMaxChargesIncrease.png|20px|link=]]|style=margin-right: 0;}}
        {{User:Saag/Sandbox/AbilityCard/HeaderAttr|{{{num_of_charges|}}}|icon=AttributeIconMaxChargesIncrease.png}}
          {{Ability_card_v2/HeaderAttr|{{{charge_cooldown|}}}|uom=s|icon=[[File:AttributeIconTechCooldownBetweenChargeUses.png|16px|link=Cooldowns]]|style=margin-left: 1px; margin-right: 0}}
        {{User:Saag/Sandbox/AbilityCard/HeaderAttr|{{{charge_cooldown|}}}|uom=s|icon=AttributeIconTechCooldownBetweenChargeUses.png|style=font-size: 12px; background-color: #242424;|icon_size=15px}}
        </div>
          {{Ability_card_v2/HeaderAttr|{{{cooldown|}}}|uom=s|icon=[[File:AttributeIconTechCooldown.png|20px|link=Cooldowns]]}}
       </div>
       </div>
        {{User:Saag/Sandbox/AbilityCard/HeaderAttr|{{{cooldown|}}}|uom=s|icon=AttributeIconTechCooldown.png}}
     </div>
     </div>
   </div>
   </div>
    
    
   <!-- INFO SECTIONS -->
   <!-- INFO SECTIONS -->
  <div style="display:flex; flex-direction:column; align-items: center; margin: 5px 10px 20px 10px; width: calc(100% - 18px);">
<div style="margin: 5px 10px 0px 10px; padding: 3px 0 5px 0; width: calc(100% - 18px);">
     <div style="padding: 20px 10px 20px 10px">{{{description}}}</div>
     {{#invoke: Abilities/card|get_all_info_sections|{{{hero_key}}}|{{{ability_num}}}}}
      <div style="display:flex; flex-direction:row; flex-wrap: wrap; justify-content: center; width: calc(90% - 5px);">
</div>
        {{#invoke: AbilityData|get_info_main|{{{hero_name}}}|{{{ability_num}}}|1}}
 
      </div>
      <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}}
      </div>
  </div>
 
   <!-- UPGRADES -->
   <!-- UPGRADES -->
   <div style="display:flex; flex-direction:row; flex-wrap: wrap; margin-bottom: 10px; justify-content: center; width: calc(90% - 16px);>
   <div style="display:flex; flex-direction:row; flex-wrap: wrap; margin-bottom: 5px; justify-content: center; width: calc(97% - 16px); min-width: 280px;>
     {{#invoke: AbilityData|get_upgrades|{{{hero_name}}}|{{{ability_num}}}}}
     {{#invoke: Abilities/card|get_upgrades|{{{hero_key}}}|{{{ability_num}}}}}
   </div>
   </div>
 
   <!-- NOTES -->
   <!-- NOTES -->
   {{#if: {{{notes|}}}|
   {{#if: {{{notes|}}}|
   <div style="align-self: flex-start; margin: 10px 0 10px 20px">
   <div style="align-self: flex-start; margin: 10px 0 10px 20px; font-size: 0.9rem;">
     <div style="font-size:20px"> Notes </div>
     <div style="font-size:1.25rem;"> {{#if: {{{name_link|}}}|
    <div>{{{notes}}}</div>
    {{#vardefine:notes_localized|{{#invoke:Dictionary|translate|Notes|show_needs_translation=false}}}}
[[{{{name_link}}}/{{#var:notes_localized}}|{{#var:notes_localized}}]]
|
{{#invoke:Dictionary|translate|Notes}}
}} </div>
<div class="mw-collapsible mw-collapsed" style="align-self: flex-start; margin: 10px 0 10px 20px; font-size: 0.9rem;">
<div>
{{{notes}}}
</div>
</div>
   </div>}}
   </div>}}
</div></includeonly><noinclude>
</div></includeonly><noinclude>
{{#invoke:AbilityData|get_ability_card|McGinnis|1|true}}
<code><nowiki>Eg. {{#invoke:Abilities/card|get_ability_card|<hero_name>|<ability_number>|<link_on_name>|<notes>}}
</nowiki></code>
{{#invoke:Abilities/card|get_ability_card|Abrams|3|false}}
</noinclude>
</noinclude>

Latest revision as of 17:22, 31 October 2024

Eg. {{#invoke:Abilities/card|get_ability_card|<hero_name>|<ability_number>|<link_on_name>|<notes>}}

Infernal Resilience




Regenerate a portion of incoming damage over time.

11%

Damage regenerated


20s

Regeneration Time


1  Health Regen

Ability Point 1
+1.5 Health Regen


Ability Point 2
+150 Health


Ability Point 5
+5.5% Damage regenerated