今天是2024年7月5日 第27周 星期五

代人,时大变了。

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

變更

跳至導覽 跳至搜尋
增加 138 位元組 、 2014年1月27日 (一) 08:01
無編輯摘要
第343行: 第343行:  
-- The following is roughly equivalent to the old {{Ambox/category}}.
 
-- The following is roughly equivalent to the old {{Ambox/category}}.
 
local date
 
local date
 +
local sortDay
 
if args.date and args.date ~= '' then
 
if args.date and args.date ~= '' then
 
date = args.date
 
date = args.date
 
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月', time)
 +
sortDay = lang:formatDate('j', time)
 
end
 
end
 
date = type(date) == 'string' and date
 
date = type(date) == 'string' and date
第357行: 第359行:  
if mainCat and date and date ~= '' then
 
if mainCat and date and date ~= '' then
 
local catTitle = format('%s%s%s', preposition, date, mainCat)
 
local catTitle = format('%s%s%s', preposition, date, mainCat)
self:addCat('main', catTitle)
+
if sortDay then
 +
self:addCat('main', catTitle, sortDay)
 +
else
 +
self:addCat('main', catTitle)
 +
end
 
catTitle = getTitleObject('Category:' .. catTitle)
 
catTitle = getTitleObject('Category:' .. catTitle)
 
if not catTitle or not catTitle.exists then
 
if not catTitle or not catTitle.exists then

導覽菜單