Module:AbilitySection: Difference between revisionsGive feedback
Cleanup after go-live: remove unused hints arg and update grouping comment (with help from vergir-bot LLM) |
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', | { 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 | local notes = trim(args.notes or '') | ||
local tips | 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, | ||
interactions = interactions, | |||
} | } | ||