Module:Message box: Difference between revisions
Content added Content deleted
Enwikipedia>Mr. Stradivarius (control for blank values of args.date) |
Enwikipedia>Mr. Stradivarius (more controlling for blank dates) |
||
Line 338: | Line 338: | ||
self:addCat('main', 'Articles with invalid date parameter in template') |
self:addCat('main', 'Articles with invalid date parameter in template') |
||
end |
end |
||
elseif mainCat and not date then |
elseif mainCat and (not date or date == '') then |
||
self:addCat('main', mainCat) |
self:addCat('main', mainCat) |
||
end |
end |