Module:Message box: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
remove the presentButBlank function, fix bug with blank date values, and trim whitespace from all arguments
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