Module:Test2: Difference between revisions
From Elwiki
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
local args = getArgs(frame) | local args = getArgs(frame) | ||
local input_args = split(args.orig, '|') | local input_args = split(mw.text.unstrip(args.orig), '|') | ||
local old_args = {} | local old_args = {} | ||
for k, v in ipairs(input_args) do | for k, v in ipairs(input_args) do |
Revision as of 20:11, 25 April 2023
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(mw.text.unstrip(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
return inspect_dump(frame, input_args)
end
return p