Content deleted Content added
MFD is called "Miscellany for deletion", not "Miscellanea for deletion" |
add DYK hook checks |
||
Line 1,868:
end,
makeData = function (articleHistoryObj)
return makeDateData(articleHistoryObj, 'dyk', {'entry', 'nom', 'ignoreerror'})
end,
text = function (articleHistoryObj, collapsibleNoticeObj)
Line 1,937:
end,
categories = function (articleHistoryObj, collapsibleNoticeObj)
local data = collapsibleNoticeObj:getData(articleHistoryObj)
return nil
end
local cats = {}
do
local status = articleHistoryObj:getStatusId()
local
▲ if status == 'FA' then
statusCat = 'Wikipedia Did you know articles that are featured articles' elseif status == 'FL' then
elseif status == 'GA' or status == 'FFA/GA' then
else
end
end
for _, t in ipairs(data) do
if not t.ignoreerror then
if t.entry then
local mCheckDYKEntry = require('Module:Check DYK hook')
if not mCheckDYKEntry._isValidHook(t.entry) then
cats[#cats + 1] = Category.new('Pages with a malformed DYK entry')
end
else
cats[#cats + 1] = Category.new('Pages with a missing DYK entry')
end
end
end
▲ cats[1] = Category.new(cat)
return cats
end
|