Changes

42 bytes removed ,  04:10, 24 October 2018
no edit summary
Line 119: Line 119:  
end
 
end
 
if sort then
 
if sort then
cat = string.format('[[Category:%s|%s]]', cat, sort)
+
cat = string.format('', cat, sort)
 
else
 
else
cat = string.format('[[Category:%s]]', cat)
+
cat = string.format('', cat)
 
end
 
end
 
self.hasCategories = true
 
self.hasCategories = true
Line 355: Line 355:  
local catTitle = string.format('%s %s %s', mainCat, preposition, date)
 
local catTitle = string.format('%s %s %s', mainCat, preposition, date)
 
self:addCat(0, catTitle)
 
self:addCat(0, catTitle)
catTitle = getTitleObject('Category:' .. catTitle)
+
catTitle = getTitleObject('' .. catTitle)
 
if not catTitle or not catTitle.exists then
 
if not catTitle or not catTitle.exists then
 
self:addCat(0, 'Articles with invalid date parameter in template')
 
self:addCat(0, 'Articles with invalid date parameter in template')