Module:Abilities/card: Difference between revisionsGive feedback
Reverted temp healradius fix as its now fixed in in the data page. |
Test for ability icon |
||
| Line 127: | Line 127: | ||
local upgrades = get_upgrade_boxes(hero_key, ability_num) | local upgrades = get_upgrade_boxes(hero_key, ability_num) | ||
-- invisible span so Module:Icon can read the ability number | |||
local numSpan = string.format('<span class="abi-num" data-num="%s"></span>', ability_num) | |||
return frame:expandTemplate{ | return frame:expandTemplate{ | ||
| Line 135: | Line 138: | ||
-- Header info defined in various attributes | -- Header info defined in various attributes | ||
name = ability_name_localized, | name = numSpan .. ability_name_localized, | ||
name_link = name_link, | name_link = name_link, | ||
icon = lang.get_string(ability.Key, 'en') .. '.png', | icon = lang.get_string(ability.Key, 'en') .. '.png', | ||