Module:AbilitySection: Difference between revisions

Jump to navigation Jump to search
Vergir (talk | contribs)
Make AbilitySection insert heading with ability's name
Vergir (talk | contribs)
Make Ability names in Valve Occult font (I wish we didn't have to use inline-important)
Line 85: Line 85:
local ability_name = lang.get_string(ability.Key)
local ability_name = lang.get_string(ability.Key)
local icon_html = icon_module._render(ability_name, { size = '30px', ['icon-only'] = 'true', ['no-link'] = 'true' })
local icon_html = icon_module._render(ability_name, { size = '30px', ['icon-only'] = 'true', ['no-link'] = 'true' })
heading = '<h3 class="ability-name">' .. icon_html .. ' ' .. ability_name .. '</h3>'
            heading = '<h3 class="ability-name" style="font-family: \'Valve Occult\' !important;">' .. icon_html .. ' ' .. ability_name .. '</h3>'
end
        end
end
end