Module:Ustring: Difference between revisions

Content deleted Content added
no need to check, since the item never duplicate
no need copy of args
Line 3:
for k, v in pairs(mw.ustring) do
p[k] = function(frame)
local args = {}frame.args
for _, v in ipairs(frame.args) do
table.insert(args,[_] = tonumber(v) or v:gsub("^\\", "", 1))
end
if frame.args.tag then
local tag = {name = frame.args.tag, content = mw.ustring[k](unpack(args)), args = {}}
for x, y in pairs(frame.args) do
if type(x)~='number' and x~='tag' then tag.args[x] = y end
end