User:Saag/AbilityCircle: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
initial integration with ability module |
||
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={{{ | {{#if:{{{displayicon|}}}|[[File:{{{displayicon}}}|{{{iconsize|90}}}x{{{iconsize|90}}}px|middle|center|link={{#invoke:AbilityData|get_ability_name|{{{hero}}}|{{{ability_num}}}}}]]|[[File:{{#invoke:AbilityData|get_ability_name|{{{hero}}}|{{{ability_num}}}}}.png|link={{#invoke:AbilityData|get_ability_name|{{{hero}}}|{{{ability_num}}}}}|{{{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"> | ||
{{#invoke:AbilityData|get_ability_card|{{{ | {{#invoke:AbilityData|get_ability_card|{{{hero}}}|{{{ability_num}}}}} | ||
</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|hero_name=Bebop| | {{User:Saag/AbilityCircle|hero_name=Bebop|ability_num=1}} {{AbilityCircle|hero_name=Abrams|ability_name=2}} {{AbilityCircle|ability_name=Infernal Resilience}} | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
Line 38: | Line 38: | ||
"hero_name": { | "hero_name": { | ||
"description": "Name of the Hero", | "description": "Name of the Hero", | ||
"example": " | "example": "Bebop", | ||
"required": true | "required": true | ||
}, | }, | ||
" | "ability_num": { | ||
"description": " | "description": "Number of the ability", | ||
"example": " | "example": "1", | ||
"required": true | "required": true | ||
}, | }, | ||
Line 53: | Line 53: | ||
"paramOrder": [ | "paramOrder": [ | ||
"hero_name", | "hero_name", | ||
" | "ability_num", | ||
"iconsize", | "iconsize", | ||
"bgsize", | "bgsize", |
Revision as of 12:50, 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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
hero_name | hero_name | Name of the Hero
| Unknown | required |
ability_num | ability_num | Number of the ability
| Unknown | required |
iconsize | iconsize | Size of the whole icon. Defaults to 90
| Unknown | optional |
bgsize | bgsize | Size of the background circle. Should almost always be larger than the icon
| Unknown | optional |
displayicon | displayicon | Use if the ability icon has a different name or uses another icon.
| Unknown | optional |