Module:AbilitySection: Difference between revisions

Jump to navigation Jump to search
Vergir (talk | contribs)
m Enable ability hints for existing hero pages
Vergir (talk | contribs)
Cleanup after go-live: remove unused hints arg and update grouping comment (with help from vergir-bot LLM)
Line 76: Line 76:
local notes      = trim(args.notes or '')
local notes      = trim(args.notes or '')
local tips        = trim(args.tips or '')
local tips        = trim(args.tips or '')
local hints      = trim(args.hints or '')


local hero_key    = get_hero_key(hero_name)
local hero_key    = get_hero_key(hero_name)
Line 114: Line 113:
end
end


-- When hints are present, group the card and the hint rail together so the
-- Group the card and the hint rail together so the rail wraps with the card
-- rail wraps together with the card (and never onto the notes' line).
-- (never onto the notes' line). Abilities with no interactions have no rail,
-- Without hints the structure stays flat, so real pages are unchanged.
-- so they keep the flat single-card structure.
local card_block = '<div class="ability-section-card">' .. card .. '</div>'
local card_block = '<div class="ability-section-card">' .. card .. '</div>'
local left_col
local left_col