[dismiss]
The wiki is currently a work in progress. If you'd like to help out, please check the Community Portal and our getting started guide. Also, check out our sister project on poewiki.net.
View source for Module:Sandbox
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local p = {}
function p.main(frame)
local origArgs
if frame == mw.getCurrentFrame() then -- Module called via #invoke.
-- If the invoking template passed any arguments, use them.
for k, v in pairs(frame.args) do
origArgs = frame.args
break
end
-- Otherwise, use the arguments that were passed into the template.
if not origArgs then
origArgs = frame:getParent().args
end
else -- Module called from another module or from the debug console.
-- Assume the arguments are passed in directly.
origArgs = frame
end
local args = {}
for k, v in pairs(origArgs) do
000
1:0
Templates used on this page:
Return to Module:Sandbox.