Content deleted Content added
remove new 's<n>' args from "tagargs" |
Add onerror option |
||
Line 19:
fargsused[i] = true
args[i + str_i - 1] = tonumber(v) or v:gsub("^\\", "", 1)
end
local result = nil
if fargs.onerror then
local success
success, result = pcall(what, unpack(args))
if not success then
return fargs.onerror
end
else
result = what(unpack(args))
end
if not fargs.tag then
return result
end
local tagargs = {}
Line 27 ⟶ 37:
if not fargsused[x] then tagargs[x] = y end
end
return frame:extensionTag{name = fargs.tag, content =
end
end
|