<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AXfD_old%2FAfD_and_MfD%2Fsandbox</id>
	<title>Module:XfD old/AfD and MfD/sandbox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AXfD_old%2FAfD_and_MfD%2Fsandbox"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:XfD_old/AfD_and_MfD/sandbox&amp;action=history"/>
	<updated>2026-05-24T16:19:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:XfD_old/AfD_and_MfD/sandbox&amp;diff=147744&amp;oldid=prev</id>
		<title>imported&gt;RAN1 at 03:39, 12 November 2022</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:XfD_old/AfD_and_MfD/sandbox&amp;diff=147744&amp;oldid=prev"/>
		<updated>2022-11-12T03:39:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
-- RfD is even worse, since we have to manually parse all log pages&lt;br /&gt;
-- and &amp;quot;Old&amp;quot; discussions aren&amp;#039;t displayed separately from &amp;quot;Current&amp;quot; ones&lt;br /&gt;
function p.rfd(frame)&lt;br /&gt;
	local month = frame.args.month&lt;br /&gt;
	local rfd = &amp;quot;Wikipedia:Redirects for discussion&amp;quot;&lt;br /&gt;
	local logprefix = &amp;quot;Wikipedia:Redirects for discussion/Log/&amp;quot;&lt;br /&gt;
	-- threshold is 7 days ago&lt;br /&gt;
	local threshold = os.date(&amp;quot;%F&amp;quot;,os.time() - (86400*7))&lt;br /&gt;
	local ymd = require(&amp;quot;Module:YMD to ISO&amp;quot;)._main&lt;br /&gt;
	local lang = mw.getContentLanguage()&lt;br /&gt;
	-- Find the daily pages&lt;br /&gt;
	local content = mw.title.new(rfd):getContent()&lt;br /&gt;
	local dayPattern = &amp;quot;{{&amp;quot; .. logprefix .. &amp;quot;(.-)}}&amp;quot;;&lt;br /&gt;
	local total = 0&lt;br /&gt;
	local lastTitle&lt;br /&gt;
	for day in content:gmatch(dayPattern) do&lt;br /&gt;
		local datestamp = ymd(day)&lt;br /&gt;
		if datestamp &amp;gt;= threshold then&lt;br /&gt;
			-- These discussions aren&amp;#039;t seven days old yet&lt;br /&gt;
		elseif month == &amp;quot;total&amp;quot; or month == lang:formatDate(&amp;quot;F Y&amp;quot;, datestamp) then&lt;br /&gt;
			local dayTitle = logprefix .. day;&lt;br /&gt;
			local dayContent = mw.title.new(dayTitle):getContent()&lt;br /&gt;
			-- Match only title sections starting with lists or templates&lt;br /&gt;
			local titlePattern = &amp;quot;==== ?([^\n]-) ?====%s+[%*#{]&amp;quot;;&lt;br /&gt;
			for title in dayContent:gmatch(titlePattern) do&lt;br /&gt;
				total = total + 1&lt;br /&gt;
				lastTitle = title&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if month == &amp;quot;total&amp;quot; then&lt;br /&gt;
		if total &amp;gt; 0 then&lt;br /&gt;
			return &amp;quot;[[&amp;quot; .. rfd .. &amp;quot;#&amp;quot; .. lastTitle .. &amp;quot;|&amp;quot; .. total .. &amp;quot;]]&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			return &amp;quot;[[&amp;quot; .. rfd .. &amp;quot;|0]]&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		return total&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;RAN1</name></author>
	</entry>
</feed>