<?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%3ADashboard_entry</id>
	<title>Module:Dashboard entry - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ADashboard_entry"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Dashboard_entry&amp;action=history"/>
	<updated>2026-04-16T01:44:43Z</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:Dashboard_entry&amp;diff=135933&amp;oldid=prev</id>
		<title>imported&gt;Jonesey95: Undid revision 1022967627 by Jonesey95 (talk). overzealous. This should be a better fix</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Dashboard_entry&amp;diff=135933&amp;oldid=prev"/>
		<updated>2021-05-13T15:03:41Z</updated>

		<summary type="html">&lt;p&gt;Undid revision 1022967627 by &lt;a href=&quot;/research/Special:Contributions/Jonesey95&quot; title=&quot;Special:Contributions/Jonesey95&quot;&gt;Jonesey95&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:Jonesey95&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Jonesey95 (page does not exist)&quot;&gt;talk&lt;/a&gt;). overzealous. This should be a better fix&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;
local plain = require(&amp;quot;Module:Plain text&amp;quot;)._main&lt;br /&gt;
function p.main(frame) &lt;br /&gt;
	local page = frame.args[1]&lt;br /&gt;
	local pipe = frame.args[2]&lt;br /&gt;
	local content = mw.title.new(page):getContent()&lt;br /&gt;
	-- Unfortunately, the bot that this is replacing uses &amp;quot;prop=sections&amp;quot;, which isn&amp;#039;t accessible to Lua.&lt;br /&gt;
	-- Therefore, we have to parse the page manuallly&lt;br /&gt;
	local sections = content:gmatch(&amp;quot;\n== *([^=]+) *==&amp;quot;)&lt;br /&gt;
	local count = 0&lt;br /&gt;
	local sect&lt;br /&gt;
	-- copy array to table so it can be iterated in reverse&lt;br /&gt;
	local secttable = {}&lt;br /&gt;
	for sect in sections do&lt;br /&gt;
		secttable[#secttable + 1] = sect&lt;br /&gt;
	end&lt;br /&gt;
	local plural, declutter&lt;br /&gt;
	if #secttable &amp;lt; 3 then&lt;br /&gt;
		declutter = &amp;quot;|class=&amp;quot;&lt;br /&gt;
		if #secttable == 1 then&lt;br /&gt;
			plural = &amp;quot;&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			plural = &amp;quot;s&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		plural = &amp;quot;s&amp;quot;&lt;br /&gt;
		declutter = &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	local output = string.format(&amp;quot;{{Dashboard grouping%s|1=&amp;#039;&amp;#039;&amp;#039;[[%s|%s]]&amp;#039;&amp;#039;&amp;#039; (%s thread%s)&amp;lt;div style=&amp;#039;font-size:85%%; padding-left:1.5em;&amp;#039;&amp;gt;&amp;#039;&amp;#039;Most recent:&amp;#039;&amp;#039;&amp;quot;,&lt;br /&gt;
	declutter, page, pipe, #secttable, plural)&lt;br /&gt;
	local count = 0&lt;br /&gt;
	for i = #secttable, 1, -1 do&lt;br /&gt;
		sect = secttable[i]&lt;br /&gt;
		output = output .. string.format(&amp;quot;\n* [[%s#%s|%s]]&amp;quot;, page, mw.uri.anchorEncode(sect), plain(sect))&lt;br /&gt;
		count = count + 1&lt;br /&gt;
		if count == 3 then&lt;br /&gt;
			output = output .. &amp;quot;\n&amp;lt;/div&amp;gt;}}\n&amp;lt;div style=\&amp;quot;padding-left:3em;\&amp;quot;&amp;gt;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if count &amp;lt; 3 then&lt;br /&gt;
		output = output .. &amp;quot;&amp;lt;/div&amp;gt;}} {{end}}&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		output = output .. &amp;quot;&amp;lt;/div&amp;gt;\n{{end}}&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	return frame:preprocess(output)&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Jonesey95</name></author>
	</entry>
</feed>