Module:labels: Difference between revisions

m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 36: Line 36:
local after = mw.ustring.gsub(labels[it], "^([^/]+)/(.+)", "%2")
local after = mw.ustring.gsub(labels[it], "^([^/]+)/(.+)", "%2")
labels[it] = before
labels[it] = before
table.insert(labels, it, after)
table.insert(labels, it + 1, after)
table.insert(labels, it, "/")
table.insert(labels, it + 1, "/")
end
end
it = it + 1
it = it + 1
end
end
--generate
for i, l_id in ipairs(labels) do
for i, l_id in ipairs(labels) do