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(' | 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) | ||
elseif mainCat and (not date or date == '') then | elseif mainCat and (not date or date == '') then | ||
self:addCat('main', mainCat) | self:addCat('main', mainCat) | ||