Module:AbilitySection: Difference between revisions

Jump to navigation Jump to search
Vergir (talk | contribs)
Cleanup after go-live: remove unused hints arg and update grouping comment (with help from vergir-bot LLM)
Vergir (talk | contribs)
Add Interactions tab/parameter alongside Notes and Tips (with help from vergir-bot LLM)
Line 10: Line 10:
-- Tab definitions — order here determines display order.
-- Tab definitions — order here determines display order.
local TABS = {
local TABS = {
{ key = 'notes', label = 'Notes' },
{ key = 'notes',       label = 'Notes'       },
{ key = 'tips', label = 'Tips' },
{ key = 'tips',         label = 'Tips'         },
{ key = 'interactions', label = 'Interactions' },
}
}


Line 74: Line 75:
local hero_name  = trim(args.hero_name or '')
local hero_name  = trim(args.hero_name or '')
local ability_num = trim(args.ability_num or '')
local ability_num = trim(args.ability_num or '')
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 interactions = trim(args.interactions or '')


local hero_key    = get_hero_key(hero_name)
local hero_key    = get_hero_key(hero_name)
Line 103: Line 105:


local wikitext_map = {
local wikitext_map = {
notes = notes,
notes       = notes,
tips = tips,
tips         = tips,
interactions = interactions,
}
}