模块:Message box:修订间差异

添加316字节 、​ 2021年2月9日 (星期二)
fix和sect代码矫正
无编辑摘要
(fix和sect代码矫正)
第238行: 第238行:
table.insert(issues, issue)
table.insert(issues, issue)
table.insert(issues, text)
table.insert(issues, text)
self.issue = table.concat(issues, ' ')
self.issue = table.concat(issues)
end
end


第291行: 第291行:


-- Get other values.
-- Get other values.
self.fix = args.fix ~= '' and args.fix or nil
local date
local date
if args.date and args.date ~= '' then
if args.date and args.date ~= '' then
date = args.date
date = args.date
elseif args.date == '' and self.isTemplatePage then
elseif args.time == '' and self.isTemplatePage then
date = lang:formatDate('F Y')
date = lang:formatDate('Y年n月j日')
elseif args.time and args.time ~= '' then
date = lang:formatDate('Y年n月j日', args.time)
end
if date then
local ok, tempdate = pcall(lang.formatDate, lang, 'Y年n月j日', date)
if ok then
date = tempdate
end
end
end
if date then
if date then
self.date = string.format(" <small class='date-container'>''(<span class='date'>%s</span>)''</small>", date)
self.date = string.format(" <small class='date-container'>''(<span class='date'>%s</span>)''</small>", date)
end
if args.fix and args.fix ~= '' then
self.fix = format("<br /><small>%s</small>", args.fix)
else
self.fix = ''
end
end
self.info = args.info
self.info = args.info