Module:Native name/sandbox: Difference between revisions

Content deleted Content added
accept any pattern of tag# and name# parameters
fix match
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