Module:MakeMWModule

local getArgs = require('Module:Arguments').getArgs

local makeMWModule = function (base, opts) local p = {} for k, v in pairs(base) do   p['_' .. k] = v   p[k] = function (frame) return v(getArgs(frame, opts), frame) end end return p end

return { makeMWModule = makeMWModule, }