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 ret[i] = 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 ret[i] = res end end return tp == 'string' and unpack(ret) or ret end