Content deleted Content added
minor optimizations by avoiding extraneous multi-table references and returning most common cases first |
m Changed protection settings for "Module:Ustring": Used by fully protected Template:Str rightc -> Template:New page DYM -> Template:No article text (-> WP:CASC) ([Edit=Require administrator access] (indefinite)) |
||
(6 intermediate revisions by 5 users not shown) | |||
Line 1:
require('
return setmetatable({}, {
__index = function(t, k)
Line 7:
end
return function(frame)
local
local fargsused = { tag = true }
for _, v in ipairs(args) do▼
local args = {}
args[_] = tonumber(v) or v:gsub("^\\", "", 1)▼
local str_i = 1
while fargs['s' .. str_i] do
fargsused['s' .. str_i] = true
args[str_i] = fargs['s' .. str_i]
str_i = str_i + 1
end
if not args.tag then▼
fargsused[i] = true
end
return (what(unpack(args))) -- Outside parens truncate to first result avoiding tail call
end
local tagargs = {}
for x, y in pairs(
if
end
return frame:extensionTag{name =
end
end
|