Difference between revisions of "Module:Message box"

Jump to navigation Jump to search
71 bytes added ,  08:33, 3 October 2013
fix date formatting order
>Mr. Stradivarius
(remove the presentButBlank function, fix bug with blank date values, and trim whitespace from all arguments)
>Mr. Stradivarius
(fix date formatting order)
Line 257: Line 257:
         -- Get other values.
         -- Get other values.
         self.fix = args.fix
         self.fix = args.fix
        local date
         if args.date and args.date ~= '' then
         if args.date and args.date ~= '' then
             self.date = format(" <small>''(%s)''</small>", args.date)
             date = args.date
         elseif args.date == '' and self.isTemplatePage then
         elseif args.date == '' and self.isTemplatePage then
             self.date = lang:formatDate('F Y')
             date = lang:formatDate('F Y')
        end
        if date then
            self.date = format(" <small>''(%s)''</small>", date)
         end
         end
         self.info = args.info
         self.info = args.info
Anonymous user

Navigation menu