Module:Sandbox/LVL: Difference between revisions

LVL (talk | contribs)
Fix scaling not appearing?
LVL (talk | contribs)
No edit summary
Line 491: Line 491:
end
end
-- Build cell content with scaling icons inline
-- Keep numeric value in its own span, scaling HTML as sibling
local cell_content = stat_value .. scaling_strs
local cell_inner = string.format(
local cell_inner = string.format('<span class="stat-num">%s</span>', cell_content)
    '<span class="stat-num">%s</span><span class="stat-scaling">%s</span>',
    stat_value,
    scaling_strs
)
-- Build data attributes for JavaScript manipulation
-- Build data attributes for JavaScript manipulation