The following lines were added (+) and removed (-):
local getArgs = require('Module:Arguments').getArgslocal box = {}---------------------------------------------------------------------------------- Helper functions--------------------------------------------------------------------------------end---------------------------------------------------------------------------------- Box class definition--------------------------------------------------------------------------------local box = {}box.__index = boxfunction box.new() local obj = {} setmetatable(obj, box) return obj end if yesno(args.hidden) then self:addClass('infobox editsection') box:setTitle(args) local outputBox = box.new() local cfg = box:getConfig(boxType) outputBox:setTitle(args) args = box:removeBlankArgs(cfg, args) local cfg = outputBox:getConfig(boxType) box:setBoxParameters(cfg, args) args = outputBox:removeBlankArgs(cfg, args) return box:export() outputBox:setBoxParameters(cfg, args) return outputBox:export() -- If called via #invoke, use the args passed into the invoking local args = getArgs(frame, {trim = false, removeBlanks = false}) -- template, or the args passed to #invoke if any exist. Otherwise -- assume args are being passed directly in from the debug console -- or from another Lua module. local origArgs if frame == mw.getCurrentFrame() then origArgs = frame:getParent().args for k, v in pairs(frame.args) do origArgs = frame.args break end else origArgs = frame end -- Trim whitespace. local args = {} for k, v in pairs(origArgs) do if type(v) == 'string' then v = trim(v) end args[k] = v end