今天是2024年7月1日 第27周 星期一

代人,时大变了。

我们生活在大地上,但我们的梦想超越天空。

更改

跳到导航 跳到搜索
添加302字节 、 2023年12月24日 (日) 19:41
导入1个版本
第246行: 第246行:  
local sect
 
local sect
 
if args.sect == '' then
 
if args.sect == '' then
sect = ' ' .. (cfg.sectionDefault or '頁面')
+
sect = ' ' .. (cfg.sectionDefault or '頁面')
 
elseif type(args.sect) == 'string' then
 
elseif type(args.sect) == 'string' then
sect = ' ' .. args.sect
+
sect = ' ' .. args.sect
 
end
 
end
 
local issue = args.issue
 
local issue = args.issue
第293行: 第293行:  
-- Get other values.
 
-- Get other values.
 
local date
 
local date
if args.time and args.time ~= '' then
+
if args.date and args.date ~= '' then
date = args.time
+
date = args.date
 
elseif args.time == '' and self.isTemplatePage then
 
elseif args.time == '' and self.isTemplatePage then
 
date = lang:formatDate('Y年n月j日')
 
date = lang:formatDate('Y年n月j日')
 
elseif args.time and args.time ~= '' then
 
elseif args.time and args.time ~= '' then
date = lang:formatDate('Y年n月j日', time)
+
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
第399行: 第405行:  
[31] = '㏾'
 
[31] = '㏾'
 
}
 
}
if args.time and args.time ~= '' then
+
if args.date and args.date ~= '' then
date = args.time
+
date = args.date
 +
local ok, tempdate = pcall(lang.formatDate, lang, 'Y年n月', date) -- 正規化日期
 +
if ok then
 +
date = tempdate
 +
end
 
elseif args.time and args.time ~= '' then
 
elseif args.time and args.time ~= '' then
date = lang:formatDate('Y年n月', time)
+
date = lang:formatDate('Y年n月', args.time)
sortDay = lang:formatDate('j', time)
+
sortDay = lang:formatDate('j', args.time)
 
sortDay = tonumber(sortDay)
 
sortDay = tonumber(sortDay)
 
sortDay = dayName[sortDay]
 
sortDay = dayName[sortDay]
第602行: 第612行:  
:tag('div')
 
:tag('div')
 
:css('text-align', 'center')
 
:css('text-align', 'center')
:wikitext(format(' 訊息框使用無效的「type=%s」參數,需要修復。', self.type or ''))
+
:wikitext(format(' 訊息框使用無效的「type=%s」參數,需要修復。', self.type or ''))
 
end
 
end
  

导航菜单