Module:Test2

From Elwiki
Revision as of 21:07, 25 April 2023 by Ritsu (talk | contribs)

Documentation for this module may be created at Module:Test2/doc

require('Module:CommonFunctions');
local getArgs = require('Module:Arguments').getArgs
local p = {}

function p.Patch(frame)
    local args = getArgs(frame)

    local input_args = split(args.orig, '|')
    local old_args = {}
    for k, v in ipairs(input_args) do
        local old_arg = split(v, '=')
        old_args[old_arg[1]] = old_arg[2]
    end

    print(inspect_dump(frame, old_args))
  
end

return p