Jump to content

Template:Ability card v2/Card: Difference between revisions

From Deadlock Wiki
Migrated the ability card to be less invoke-dependent. This enables creation of ability cards manually with the template instead of relying on Data:AbilityCard.json
mNo edit summary
Line 78: Line 78:
</div>
</div>
</div>}}</div></includeonly><noinclude>
</div>}}</div></includeonly><noinclude>
{{User:Saag/Sandbox/Ability card v2/manual card
{{Ability card v2/Card
   | name=Some Ability
   | name=Some Ability
   | icon=Catalyst.png
   | icon=Catalyst.png
Line 169: Line 169:
}}
}}
<pre><nowiki>Eg. {{
<pre><nowiki>Eg. {{
{{User:Saag/Sandbox/Ability card v2/manual card
Ability card v2/Card
   | name=Some Ability
   | name=Some Ability
   | icon=Catalyst.png
   | icon=Catalyst.png
Line 185: Line 185:
       | value=99  
       | value=99  
       | key=DPS
       | key=DPS
      | label=Deeps
       | icon=AttributeIconTechShieldHealth.png
       | icon=AttributeIconTechShieldHealth.png
       | icon_color=Purple
       | icon_color=Purple
     }}
     }}
   | info1_mainbox2=
   | info1_mainbox2=
    {{Template:Ability card v2/Card/MainBox
      | value=99
      | key=Heal
      | type=bullet_damage
      | label=Healy
    }}
   
  | info1_altbox1=
    {{Template:Ability card v2/Card/AltBox
      | value=99
      | key=DPS
      | type=bullet_damage
      | icon_color=Brown
    }}
   
  | info2_desc=This ability does something
  | info2_mainbox1=
     {{Template:Ability card v2/Card/MainBox
     {{Template:Ability card v2/Card/MainBox
       | value=99  
       | value=99  
Line 195: Line 211:
       | icon=AttributeIconTechShieldHealth.png
       | icon=AttributeIconTechShieldHealth.png
       | icon_color=Purple
       | icon_color=Purple
    }}
  | info2_mainbox2=
    {{Template:Ability card v2/Card/MainBox
      | value=99
      | key=Heal
      | type=bullet_damage
      | label=Healy
     }}
     }}
      
      
   | info1_altbox1=
   | info2_altbox1=
     {{Template:Ability card v2/Card/AltBox
     {{Template:Ability card v2/Card/AltBox
       | value=99  
       | value=99  
       | key=DPS
       | key=DPS
       | icon=AttributeIconTechShieldHealth.png
       | type=bullet_damage
       | icon_color=Purple
       | icon_color=Brown
     }}
     }}
   | info1_altbox2=
   | info2_altbox2=
     {{Template:Ability card v2/Card/AltBox
     {{Template:Ability card v2/Card/AltBox
       | value=99  
       | value=99  
       | key=DPS
       | key=DPS
       | icon=AttributeIconTechShieldHealth.png
       | label=Deeps
       | icon_color=Purple
       | type=tech_damage
     }}
     }}
   
 
   | upgrade1=
   | upgrade1=
     {{Template:Ability card v2/Card/UpgradeBox
     {{Template:Ability card v2/Card/UpgradeBox
Line 235: Line 258:
       | scale_type =  spirit
       | scale_type =  spirit
     }}
     }}
}}}}
}}
</nowiki></pre>
</nowiki></pre>
</noinclude>
</noinclude>

Revision as of 20:32, 2 January 2025

Some Ability

99m

99m


99s

99

99s

99s

This ability does something

link={{{icon_link}}} 99

DPS

99

Healy

99  DPS

This ability does something

link={{{icon_link}}} 99

DPS

99

Healy

99  DPS

99  Deeps

Ability Point 1
An upgrade
Spirit Power#Spirit Power Scalingx0.123
Ability Point 2
An upgrade
Spirit Power#Spirit Power Scalingx0.123
Ability Point 5
An upgrade
Spirit Power#Spirit Power Scalingx0.123
Eg. {{
Ability card v2/Card
  | name=Some Ability
  | icon=Catalyst.png
  | range=99
  | radius=99
  | duration=99
  | num_of_charges=99
  | charge_cooldown=99
  | cooldown=99
  | duration=99
  
  | info1_desc=This ability does something
  | info1_mainbox1=
    {{Template:Ability card v2/Card/MainBox
      | value=99 
      | key=DPS
      | icon=AttributeIconTechShieldHealth.png
      | icon_color=Purple
    }}
  | info1_mainbox2=
    {{Template:Ability card v2/Card/MainBox
      | value=99 
      | key=Heal
      | type=bullet_damage
      | label=Healy
    }}
    
  | info1_altbox1=
    {{Template:Ability card v2/Card/AltBox
      | value=99 
      | key=DPS
      | type=bullet_damage
      | icon_color=Brown
    }}
    
  | info2_desc=This ability does something
  | info2_mainbox1=
    {{Template:Ability card v2/Card/MainBox
      | value=99 
      | key=DPS
      | icon=AttributeIconTechShieldHealth.png
      | icon_color=Purple
    }}
  | info2_mainbox2=
    {{Template:Ability card v2/Card/MainBox
      | value=99 
      | key=Heal
      | type=bullet_damage
      | label=Healy
    }}
    
  | info2_altbox1=
    {{Template:Ability card v2/Card/AltBox
      | value=99 
      | key=DPS
      | type=bullet_damage
      | icon_color=Brown
    }}
  | info2_altbox2=
    {{Template:Ability card v2/Card/AltBox
      | value=99 
      | key=DPS
      | label=Deeps
      | type=tech_damage
    }}

   | upgrade1=
    {{Template:Ability card v2/Card/UpgradeBox
      | cost = 1
      | description = An upgrade
      | scale_value = 0.123
      | scale_type =  spirit
    }}
    
   | upgrade2=
    {{Template:Ability card v2/Card/UpgradeBox
      | cost = 2
      | description = An upgrade
      | scale_value = 0.123
      | scale_type =  spirit
    }}
    
   | upgrade3=
    {{Template:Ability card v2/Card/UpgradeBox
      | cost = 5
      | description = An upgrade
      | scale_value = 0.123
      | scale_type =  spirit
    }}
}}