More actions
Created page with "-- roblox.fandom.com local get_args = require('Module:Arguments') local p = {} function p.wrap_function(f, ppc) if ppc then return function(frame) return frame:preprocess(func(get_args(frame))) end else return function(frame) return func(get_args(frame)) end end end return p" |
m Protected "Module:Utils" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
-- roblox.fandom.com | -- roblox.fandom.com | ||
local get_args = require('Module:Arguments') | local get_args = require('Module:Arguments').getArgs | ||
local p = {} | local p = {} | ||
Line 7: | Line 7: | ||
if ppc then | if ppc then | ||
return function(frame) | return function(frame) | ||
return frame:preprocess( | return frame:preprocess(f(get_args(frame))) | ||
end | end | ||
else | else | ||
return function(frame) | return function(frame) | ||
return | return f(get_args(frame)) | ||
end | end | ||
end | end |
Latest revision as of 01:12, 4 April 2025
Documentation for this module may be created at Module:Utils/doc