Content deleted Content added
Jackmcbarn (talk | contribs) add parentName function |
Jackmcbarn (talk | contribs) figure out why this is so slow |
||
Line 2:
function p.main(frame)
local given = frame.args[1]
if given == nil or given == '' then
end▼
return ""
▲ end
local args = {}
given = given .. "!"
for item in given:gmatch( "(.-)!") do
local p = item:find('=', 1, true)
if p then
args[item:sub(1, p-1)] = item:sub(p+1)
else
table.insert(args, item)
end
end
return frame:expandTemplate{ title = "convert/old", args = args }
end
|