Module:utilities: Difference between revisions

no edit summary
(Created page with "local export = {} local data = mw.loadData("Module:utilities/data") local notneeded = data.notneeded local neededhassubpage = data.neededhassubpage -- A helper function to e...")
 
No edit summary
Line 115: Line 115:
local out_categories = {}
local out_categories = {}
for key, cat in ipairs(categories) do
for key, cat in ipairs(categories) do
out_categories[key] = "[[Category:" .. cat .. (sort_key and "|" .. sort_key or "") .. "]]"
out_categories[key] = "[[Category:" .. table.concat(cat) .. (sort_key and "|" .. sort_key or "") .. "]]"
end
end