<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AXfD_old%2FAfD_and_MfD</id>
	<title>Module:XfD old/AfD and MfD - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tachyony.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AXfD_old%2FAfD_and_MfD"/>
	<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Module:XfD_old/AfD_and_MfD&amp;action=history"/>
	<updated>2026-05-15T13:31:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.5</generator>
	<entry>
		<id>https://wiki.tachyony.co.uk/w/index.php?title=Module:XfD_old/AfD_and_MfD&amp;diff=5766&amp;oldid=prev</id>
		<title>Tachyony: Created page with &quot;-- 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 == &quot;total&quot; then 		pat = &quot;%(([0-9]+) open&quot; 	else 		month = lang:formatDate(&quot;Y F&quot;, month) 		pat = &quot;%[%[Wikipedia:Articles for deletion/Log/&quot; .. month .. &quot;[^%]]*%]%] %(([0-9]+) open /&quot; 	en...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tachyony.co.uk/w/index.php?title=Module:XfD_old/AfD_and_MfD&amp;diff=5766&amp;oldid=prev"/>
		<updated>2022-01-15T01:21:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- Various hacky solutions to allow AfD and MfD to show up on &lt;a href=&quot;/w/index.php?title=Template:XFD_Backlog&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Template:XFD Backlog (page does not exist)&quot;&gt;Template:XFD Backlog&lt;/a&gt; -- AfD is easy, as &lt;a href=&quot;/w/index.php?title=User:Mathbot&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User:Mathbot (page does not exist)&quot;&gt;User:Mathbot&lt;/a&gt; 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 == &amp;quot;total&amp;quot; then 		pat = &amp;quot;%(([0-9]+) open&amp;quot; 	else 		month = lang:formatDate(&amp;quot;Y F&amp;quot;, month) 		pat = &amp;quot;%[%[Wikipedia:Articles for deletion/Log/&amp;quot; .. month .. &amp;quot;[^%]]*%]%] %(([0-9]+) open /&amp;quot; 	en...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Various hacky solutions to allow AfD and MfD to show up on [[Template:XFD Backlog]]&lt;br /&gt;
-- AfD is easy, as [[User:Mathbot]] already summarizes the total on each day&lt;br /&gt;
local p = {}&lt;br /&gt;
local lang = mw.getContentLanguage()&lt;br /&gt;
function p.afd(frame) &lt;br /&gt;
	local month = frame.args.month&lt;br /&gt;
	local pat&lt;br /&gt;
	if month == &amp;quot;total&amp;quot; then&lt;br /&gt;
		pat = &amp;quot;%(([0-9]+) open&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		month = lang:formatDate(&amp;quot;Y F&amp;quot;, month)&lt;br /&gt;
		pat = &amp;quot;%[%[Wikipedia:Articles for deletion/Log/&amp;quot; .. month .. &amp;quot;[^%]]*%]%] %(([0-9]+) open /&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	local content = mw.title.new(&amp;quot;Wikipedia:Articles for deletion/Old&amp;quot;):getContent()&lt;br /&gt;
	local count = 0&lt;br /&gt;
	for daycount in content:gmatch(pat) do&lt;br /&gt;
		count = count + daycount&lt;br /&gt;
	end&lt;br /&gt;
	return count&lt;br /&gt;
end&lt;br /&gt;
-- MfD is much harder, because the only list of all active MfDs is the main&lt;br /&gt;
-- [[Wikipedia:Miscellany for deletion]] page itself&lt;br /&gt;
function p.mfd(frame)&lt;br /&gt;
	local month = frame.args.month&lt;br /&gt;
	local content = mw.title.new(&amp;quot;Wikipedia:Miscellany for deletion&amp;quot;):getContent()&lt;br /&gt;
	local rightmonth = true&lt;br /&gt;
	local pat;&lt;br /&gt;
	if month ~= &amp;quot;total&amp;quot; then&lt;br /&gt;
		pat = lang:formatDate(&amp;quot;^=== ?F [0-9]*, Y ?===$&amp;quot;, month)&lt;br /&gt;
		rightmonth = false&lt;br /&gt;
	end&lt;br /&gt;
	local _, endindex = content:find(&amp;quot;==Old business==&amp;quot;)&lt;br /&gt;
	local count = 0&lt;br /&gt;
	for line in mw.text.gsplit(content:sub(endindex,#content), &amp;quot;\n&amp;quot;) do&lt;br /&gt;
		if line:find(&amp;quot;{{Wikipedia:Miscellany for deletion/&amp;quot;) and rightmonth then&lt;br /&gt;
			count = count + 1&lt;br /&gt;
		elseif month == &amp;quot;total&amp;quot; then&lt;br /&gt;
			-- don&amp;#039;t worry about month section headers&lt;br /&gt;
		elseif line:find(pat) then&lt;br /&gt;
			rightmonth = true&lt;br /&gt;
		elseif line:find(&amp;quot;=== ?.* ?===&amp;quot;) then&lt;br /&gt;
			-- A section header for the wrong month&lt;br /&gt;
			if rightmonth then&lt;br /&gt;
				-- We&amp;#039;re now looking at MfDs before the month in question&lt;br /&gt;
				break&lt;br /&gt;
			end&lt;br /&gt;
			-- We still haven&amp;#039;t reached the month in question yet&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return count&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Tachyony</name></author>
	</entry>
</feed>