Module:Sandbox/LVL: Difference between revisions

Jump to navigation Jump to search
LVL (talk | contribs)
No edit summary
LVL (talk | contribs)
No edit summary
Line 331: Line 331:
         local hero_cell_content = hero_icon
         local hero_cell_content = hero_icon
         if has_alt then
         if has_alt then
             hero_cell_content = '[[#alt-fire-' .. hero_key .. '|+]] ' .. hero_cell_content
            local tooltip_html = mw.getCurrentFrame():expandTemplate{
                title = 'Tooltip',
                args = { '+', 'Toggle Alt‑fire stats' }
            }
             hero_cell_content = '[[#alt-fire-' .. hero_key .. '|' .. tooltip_html .. ']] ' .. hero_cell_content
         end
         end
         row_str = row_str .. '<td style="position: sticky; left: 0; z-index: 10; background-color: #202122; isolation: isolate; overflow: hidden;">' .. hero_cell_content .. '</td>'
         row_str = row_str .. '<td style="position: sticky; left: 0; z-index: 10; background-color: #202122; isolation: isolate; overflow: hidden;">' .. hero_cell_content .. '</td>'