Module:Arguments/doc
Jump to navigation
Jump to search
This is the documentation page for Module:Arguments
This is a utility module that lets you use arguments from either the current frame (i.e., {{#invoke:...}}
) or the parent frame (i.e., {{Template:...}}
) without having to care which frame is the correct one. Using getArgs
also lets you call a module from another module without passing a frame (i.e., by passing arguments normally).
Usage
local getArgs = require('Module:Arguments').getArgs
local p = {}
function p.main(...)
local args = getArgs(...)
-- Main module code goes here.
end
return p