Module:Message box: Difference between revisions

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