Module:Message box: Difference between revisions

control for blank values of args.date
(useId --> allowId)
(control for blank values of args.date)
Line 331:
mainCat = type(mainCat) == 'string' and mainCat
allCat = type(allCat) == 'string' and allCat
if mainCat and date and date ~= '' then
local catTitle = format('%s %s %s', mainCat, preposition, date)
self:addCat('main', catTitle)