Module:AbilityInteraction: Difference between revisions

Vergir (talk | contribs)
Create module backing Template:AbilityInteraction: registry of interactions expanding into the generic Template:IconBox (with help from vergir-bot LLM)
 
Vergir (talk | contribs)
Remove the temporary raw-parameter passthrough now that all call sites use the interaction registry (with help from vergir-bot LLM)
Line 76: Line 76:
local state = mw.ustring.lower(mw.text.trim(args.state or ''))
local state = mw.ustring.lower(mw.text.trim(args.state or ''))
local key  = mw.ustring.lower(mw.text.trim(args.interaction or ''))
local key  = mw.ustring.lower(mw.text.trim(args.interaction or ''))
-- TEMPORARY: passthrough for call sites still passing raw IconBox parameters.
-- Removed once The Doorman is migrated.
if key == '' and mw.text.trim(args.title or '') ~= '' then
return frame:expandTemplate{
title = 'IconBox',
args  = {
title    = args.title,
type    = args.type or '',
iconfile = args.iconfile or '',
link    = args.link or '',
state    = state,
text    = args.text or '',
},
}
end


if key == '' then
if key == '' then