User:Saag/AbilityCircle: Difference between revisions

From Deadlock Wiki
Jump to navigation Jump to search
Saag (talk | contribs)
No edit summary
Saag (talk | contribs)
No edit summary
Line 4: Line 4:
               <div class="ability-icon popover-wrapper nopreview"
               <div class="ability-icon popover-wrapper nopreview"
                 style="width:100%; height:100%; display:flex; flex-direction:column; justify-content:center;">
                 style="width:100%; height:100%; display:flex; flex-direction:column; justify-content:center;">
                 {{#if:{{{displayicon|}}}|[[File:{{{displayicon}}}|{{{iconsize|90}}}x{{{iconsize|90}}}px|middle|center|link={{{name|Smoke Bomb}}}]]|[[File:{{{name|Smoke Bomb}}}.png|link={{{name|Smoke Bomb}}}|{{{iconsize|90}}}x{{{iconsize|90}}}px|middle|center]]}}
                 {{#if:{{{displayicon|}}}|[[File:{{{displayicon}}}|{{{iconsize|90}}}x{{{iconsize|90}}}px|middle|center|link={{{ability_name|Smoke Bomb}}}]]|[[File:{{{ability_name|Smoke Bomb}}}.png|link={{{ability_name|Smoke Bomb}}}|{{{iconsize|90}}}x{{{iconsize|90}}}px|middle|center]]}}
               </div>
               </div>
                
                
               <div class="popover-content" style="text-align:left">
               <div class="popover-content" style="text-align:left">
                   {{Abilities/{{{name}}}}}
                   {{#invoke:AbilityData|get_ability_card|{{{hero_name}}}|{{{ability_name}}}}}
               </div>
               </div>
Line 22: Line 22:
Isolated port of the ability circle and background from [[Template:Ability card]]. Intended for use on [[Heroes]].
Isolated port of the ability circle and background from [[Template:Ability card]]. Intended for use on [[Heroes]].


{{User:Saag/AbilityCircle|name=Hook}} {{AbilityCircle|name=Shoulder Charge}} {{AbilityCircle|name=Infernal Resilience}} {{AbilityCircle|name=Seismic Impact}}
{{User:Saag/AbilityCircle|hero_name=Bebop|ability_name=Hook}} {{AbilityCircle|hero_name=Abrams|ability_name=Shoulder Charge}} {{AbilityCircle|ability_name=Infernal Resilience}} {{AbilityCircle|ability_name=Seismic Impact}}
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 36: Line 36:
"default": "90"
"default": "90"
},
},
"name": {
"hero_name": {
"description": "Name of the Hero",
"example": "Smoke Bomb",
"required": true
},
        "ability_name": {
"description": "Name of the ability",
"description": "Name of the ability",
"example": "Smoke Bomb",
"example": "Smoke Bomb",
Line 47: Line 52:
},
},
"paramOrder": [
"paramOrder": [
"name",
"hero_name",
        "ability_name",
"iconsize",
"iconsize",
"bgsize",
"bgsize",

Revision as of 12:14, 14 September 2024

                 Script error: The function "get_ability_card" does not exist.


test Abrams


Isolated port of the ability circle and background from Template:Ability card. Intended for use on Heroes.


                 Script error: The function "get_ability_card" does not exist.


No description.

Template parameters

ParameterDescriptionTypeStatus
hero_namehero_name

Name of the Hero

Example
Smoke Bomb
Unknownrequired
ability_nameability_name

Name of the ability

Example
Smoke Bomb
Unknownrequired
iconsizeiconsize

Size of the whole icon. Defaults to 90

Default
90
Example
20
Unknownoptional
bgsizebgsize

Size of the background circle. Should almost always be larger than the icon

Example
128
Unknownoptional
displayicondisplayicon

Use if the ability icon has a different name or uses another icon.

Example
Smoke Bomb.png
Unknownoptional