Content deleted Content added
Resolve category redirects |
Shonebrooks (talk | contribs) m I corrected the spelling of "Canadian." WP:TYPO |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 40:
-- globals for this module
local debugging =
local debugmsg = ""
local tableRowNum = 0
Line 93:
local function publishDebugLog()
if not debugging then
return "NOT DEBUGGING\n"
end
return "==Debugging ==\n\n" .. debugmsg .. "\n== Output ==\n"
Line 222:
for i, aProvince in ipairs(provinceList) do
debugLog(4, "No. " .. tostring(i) .. ": [" .. aProvince .. "]")
myCatName = makeCatName
myResolvedCatName = ResolveCategoryRedirect(makeCatName(aProvince, title_prefix, title_suffix))
debugLog(5, myCatName .. "--> " ..myResolvedCatName)
table.insert(list_args, makeCatLink(myCatName, aProvince))
end
Line 427 ⟶ 429:
-- some error parsing the title, so don't proceed to output
local trackingCatInvalid = "[[Category:" .. templateName .. " on invalid category]]"
return makeErrorMsg('the name of this category does not include a valid
end
|