今天是2024年十一月20日 第47周 星期三
代人,时大变了。
我们生活在大地上,但我们的梦想超越天空。
更改
跳到导航
跳到搜索
第343行:
第343行:
+
+
第357行:
第359行:
− +
+
+
+
+
无编辑摘要
-- 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
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