Difference between revisions of "Module:Message box"
Jump to navigation
Jump to search
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 | ||
date = args.date | |||
elseif args.date == '' and self.isTemplatePage then | elseif args.date == '' and self.isTemplatePage then | ||
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 |