Module:AbilitySection: Difference between revisions

Jump to navigation Jump to search
Vergir (talk | contribs)
m get rid of inline-styling for font
Vergir (talk | contribs)
Remove interactions param from AbilitySection module (with help from vergir-bot LLM)
Line 9: Line 9:
-- 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 = 'interactions', label = 'Interactions' },
{ key = 'tips', label = 'Tips' },
{ key = 'tips',         label = 'Tips'         },
}
}


Line 71: Line 70:
-- Entry point. Called via {{#invoke:AbilitySection|render}}.
-- Entry point. Called via {{#invoke:AbilitySection|render}}.
function p.render(frame)
function p.render(frame)
local args         = frame.args
local args       = frame.args
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 interactions = trim(args.interactions or '')
local tips       = trim(args.tips or '')
local tips         = trim(args.tips or '')


local hero_key = get_hero_key(hero_name)
local hero_key = get_hero_key(hero_name)
Line 97: Line 95:


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