45,342
edits
No edit summary |
Tag: Undo |
||
(5 intermediate revisions by the same user not shown) | |||
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:" .. | out_categories[key] = "[[Category:" .. cat .. (sort_key and "|" .. sort_key or "") .. "]]" | ||
end | end | ||
Line 170: | Line 170: | ||
function export.catfix(lang, sc) | function export.catfix(lang, sc) | ||
local canonicalName = lang:getCanonicalName() or error('The first argument to the function "catfix" should be a language object from Module:languages.') | local canonicalName = lang:getCanonicalName() or error('The first argument to the function "catfix" should be a language object from Module:languages.') | ||