Difference between revisions of "Module:Message box"

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

Navigation menu