Module:Native name/sandbox: Difference between revisions

Content deleted Content added
fix match
fix insert
Line 171:
for param, _ in pairs (args_t) do
-- loop through all parameters
local tag_match = mw.ustring.match(param, "^tag(%d+)$")
local name_match = mw.ustring.match(param, "^name(%d+)$")
if tag_match then
active_param[tonumber(tag_match)] = true
Line 182:
local param_list = {}
for n, _ in pairs(active_param) do
param_listtable.insert(param_list, n)
end
param_list.sort()