[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
-- We're being called via #invoke. If the invoking template
-- passed any arguments, use them. Otherwise, use the
-- arguments that were passed into the template.
origArgs = frame:getParent().args
else
-- We're being called from another module or from the debug
-- console, so assume the arguments are passed in directly.
origArgs = frame
end
local args = {}
for k, v in pairs(origArgs) do
if type(k) == 'number' and k >= 1 and math.floor(k) == k and mw.ustring.match(v, '%S') then
table.insert(args, k)
end
end
000
1:0
Templates used on this page:
Return to Module:Sandbox.