跳转到内容

Module:Message box:修订间差异

云南百科留言 | 贡献
创建页面,内容为“-- This is a meta-module for producing message box templates, including {{mbox}}, {{ambox}}, {{imbox}}, {{tmbox}}, {{ombox}}, {{cmbox}} and {{fmbox}}. -- Require ne…”
 
无编辑摘要
 
(未显示同一用户的1个中间版本)
第425行: 第425行:
allCat = type(allCat) == 'string' and allCat
allCat = type(allCat) == 'string' and allCat
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', mainCat)
if sortDay then
if sortDay then
self:addCat('main', catTitle, sortDay)
self:addCat('main', catTitle, sortDay)
第432行: 第432行:
end
end
catTitle = getTitleObject('Category:' .. catTitle)
catTitle = getTitleObject('Category:' .. catTitle)
if not catTitle or not catTitle.exists then
self:addCat('main', '模板中使用无效日期参数的条目')
end
elseif mainCat and (not date or date == '') then
elseif mainCat and (not date or date == '') then
self:addCat('main', mainCat)
self:addCat('main', mainCat)
我们为您提供服务需要使用Cookie。使用我们的服务即表示您同意我们使用Cookie。