View source for Module:XfD old/AfD and MfD
MyWikiBiz, Author Your Legacy — Monday March 31, 2025
Jump to navigationJump to searchYou do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
-- Various hacky solutions to allow AfD and MfD to show up on [[Template:XFD Backlog]]
-- AfD is easy, as [[User:Mathbot]] already summarizes the total on each day
local p = {}
local lang = mw.getContentLanguage()
function p.afd(frame)
local month = frame.args.month
local pat
if month == "total" then
pat = "%(([0-9]+) open"
else
month = lang:formatDate("Y F", month)
pat = "%[%[Wikipedia:Articles for deletion/Log/" .. month .. "[^%]]*%]%] %(([0-9]+) open /"
end
local content = mw.title.new("Wikipedia:Articles for deletion/Old"):getContent()
local count = 0
for daycount in content:gmatch(pat) do
count = count + daycount
end
return count
end
-- MfD is much harder, because the only list of all active MfDs is the main
000
1:0
Template used on this page:
Return to Module:XfD old/AfD and MfD.