Module:MultiRequire

require('Module:LibraryUtil')

return function(...) local tp = type(({ ... })[1])	local ret = {} if tp == 'string' then for i, module in forEachArgs('string', ...) do 			local success, res = pcall(require, module) if not success then formattedError('Module %q does not exist', 2, module) end table.insert(ret, res) end else for i, module in ipairs(({ ... })[1]) do			local success, res = pcall(require, module) if not success then formattedError('Module %q does not exist', 2, module) end

table.insert(ret, res) end end if tp == 'string' then return unpack(ret) else return ret end end