10,731
edits
TheNightAvl (talk | contribs) mNo edit summary |
TheNightAvl (talk | contribs) mNo edit summary |
||
Line 27: | Line 27: | ||
local cats = "" | local cats = "" | ||
local skip_comma = false | local skip_comma = false | ||
local it = 1 | |||
-- split parameters at / | |||
while labels[it] do | |||
if mw.ustring.find(labels[it], "^[^/]+/.+") then | |||
local before = mw.ustring.gsub(labels[it], "^([^/]+)/(.+)", "%1") | |||
local after = mw.ustring.gsub(labels[it], "^([^/]+)/(.+)", "%2") | |||
labels[it] = before | |||
table.insert(labels, it, after) | |||
table.insert(labels, it, "/") | |||
end | |||
it = it + 1 | |||
end | |||
for i, l_id in ipairs(labels) do | for i, l_id in ipairs(labels) do |