User:Saag/AbilityCircle: Difference between revisions
Jump to navigation
Jump to search
limit width of popover |
mNo edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
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=]]|[[File:{{#invoke: | {{#if:{{{displayicon|}}}|[[File:{{{displayicon}}}|{{{iconsize|90}}}x{{{iconsize|90}}}px|middle|center|link=]]|[[File:{{#invoke:Abilities|get_ability_name|{{{hero_name}}}|{{{ability_num}}}}}.png|link=|{{{iconsize|90}}}x{{{iconsize|90}}}px|middle|center]]}} | ||
</div> | </div> | ||
<div class="popover-content" style="text-align:left; margin-top: -30px; max-width: 550px"> | <div class="popover-content" style="position: absolute; margin-left: auto; margin-right: auto; left: 0; right: 0; text-align:left; margin-top: -30px; max-width: 550px; min-width: 320px; width: 50vw; left: 0;"> | ||
<div style="max-width: 350px; height: 30px"></div> | <div style="max-width: 350px; height: 30px"></div> | ||
{{#invoke: | {{#invoke:Abilities/card|get_ability_card|{{{hero_name}}}|{{{ability_num}}}|true}} | ||
</div> | </div> | ||
Line 17: | Line 17: | ||
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/HeroRosterCard|Abrams|Ability1=Siphon Life|Ability2=Shoulder Charge|Ability3=Infernal Resilience|Ability4=Seismic Impact}} | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> |
Latest revision as of 09:57, 15 November 2024
Lua error in Module:Abilities/card at line 68: attempt to concatenate local 'hero_key' (a nil value).
Isolated port of the ability circle and background from Template:Ability card. Intended for use on Heroes.
Abrams | ||
Charges into close combat | ||
Abrams has the bulk and sustain to lead from the front, often running into the middle of his foes and watching them scatter. If his enemies waste their fire on him, his back-line teammates can lay out damage with impunity. | ||
1.2s |
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 |