Module:Ustring: Difference between revisions

Content deleted Content added
use require("Module:LuaCall").import(mw.ustring)
Undid revision 885636134 by Ans (talk) What is the purpose of proxying this through Module:LuaCall?
Line 1:
p = {}
p = require("Module:LuaCall").import(mw.ustring)
 
for k, v in pairs(pmw.ustring) do
p[k] = function(frame)
local args = frame.args
--for _, v in ipairs(args) do
-- args[_] = tonumber(v) or v:gsub("^\\", "", 1)
--end
if args.tag then
local tag = {name = args.tag, content = vmw.ustring[k](frameunpack(args)), args = {}}
for x, y in pairs(args) do
if type(x)~='number' and x~='tag' then tag.args[x] = y end
Line 14:
return frame:extensionTag(tag)
end
return (vmw.ustring[k](frameunpack(args)))
end
end