Module:utilities: Difference between revisions

no edit summary
No edit summary
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:" .. table.concat(cat) .. (sort_key and "|" .. sort_key or "") .. "]]"
out_categories[key] = "[[Category:" .. cat .. (sort_key and "|" .. sort_key or "") .. "]]"
end
end