Module:AbilitySection: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m get rid of inline-styling for font |
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', | { key = 'notes', label = 'Notes' }, | ||
{ key = 'tips', label = 'Tips' }, | |||
{ key = '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 | local args = frame.args | ||
local hero_name | local hero_name = trim(args.hero_name or '') | ||
local ability_num | local ability_num = trim(args.ability_num or '') | ||
local notes | local notes = trim(args.notes or '') | ||
local tips = trim(args.tips or '') | |||
local tips | |||
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, | ||
tips = tips, | |||
tips | |||
} | } | ||