Documentation for this module may be created at Module:Utils/doc
-- roblox.fandom.com
local get_args = require('Module:Arguments').getArgs
local p = {}
function p.wrap_function(f, ppc)
if ppc then
return function(frame)
return frame:preprocess(f(get_args(frame)))
end
else
return function(frame)
return f(get_args(frame))
end
end
end
return p