Content deleted Content added
Create sandbox version of Module:Native name |
accept any pattern of tag# and name# parameters |
||
Line 167:
end
local active_param = {}
for param, _ in pairs (args_t) do
-- loop through all parameters local
local name_match = mw.ustring.match("^name(%d+)$")
if tag_match then
active_param[tonumber(tag_match)] = true
elseif name_match then
active_param[tonumber(name_match)] = true
end
end
local param_list = {}
for n, _ in pairs(active_param) do
param_list.insert(n)
end
param_list.sort()
local list_t = {}; -- list of formatted native names goes here
table.insert (list_t, table.concat ({
'<li>', -- open the list item
Line 196 ⟶ 207:
'</li>' -- close the list item
}));
end
|