<?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%3ADBR_index</id>
	<title>Module:DBR index - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ADBR_index"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:DBR_index&amp;action=history"/>
	<updated>2026-05-28T17:58:19Z</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:DBR_index&amp;diff=135888&amp;oldid=prev</id>
		<title>imported&gt;MZMcBride: try this</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:DBR_index&amp;diff=135888&amp;oldid=prev"/>
		<updated>2022-07-20T16:53:05Z</updated>

		<summary type="html">&lt;p&gt;try this&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 title = mw.title.getCurrentTitle()&lt;br /&gt;
&lt;br /&gt;
-- The point of this module is to keep the [[WP:PEIS]] lower than is possible&lt;br /&gt;
-- with nested templates.&lt;br /&gt;
&lt;br /&gt;
local function sizeof(n)&lt;br /&gt;
	return tonumber(mw.getCurrentFrame():callParserFunction(&amp;#039;PAGESIZE&amp;#039;, {title.fullText .. &amp;#039;/&amp;#039; .. n, &amp;#039;R&amp;#039;}))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local description = frame.args.description or&lt;br /&gt;
		frame:getParent().args.description or&lt;br /&gt;
		title.subpageText:lower()&lt;br /&gt;
	local as_of = &amp;#039;; data as of &amp;#039; ..&lt;br /&gt;
			frame:expandTemplate{ title = title.fullText .. &amp;#039;/1&amp;#039;, args = {} } .. &amp;#039;.\n&amp;#039;&lt;br /&gt;
	if sizeof(2) &amp;gt; 50 then&lt;br /&gt;
		-- Make a bulleted list of pages&lt;br /&gt;
		local result = {&amp;#039;Index of &amp;#039; .. description .. as_of ..&lt;br /&gt;
			&amp;#039;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;[[/1|Page 1]]&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;[[/2|Page 2]]&amp;lt;/li&amp;gt;&amp;#039;}&lt;br /&gt;
		for i = 3, 50 do&lt;br /&gt;
			if sizeof(i) &amp;gt; 50 then&lt;br /&gt;
				result[#result + 1] = &amp;#039;&amp;lt;li&amp;gt;[[/&amp;#039; .. i .. &amp;#039;|Page &amp;#039; .. i .. &amp;#039;]]&amp;lt;/li&amp;gt;&amp;#039;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		result[#result + 1] = &amp;#039;&amp;lt;/ul&amp;gt;&amp;#039;&lt;br /&gt;
		return table.concat(result)&lt;br /&gt;
	end&lt;br /&gt;
	-- There&amp;#039;s only one page so extract the table from its content.&lt;br /&gt;
	local content = mw.title.new(title.fullText .. &amp;#039;/1&amp;#039;):getContent():match(&amp;#039;{|.*|}&amp;#039;)&lt;br /&gt;
	content = frame:getParent():preprocess(content)&lt;br /&gt;
	return mw.getContentLanguage():ucfirst(description) .. as_of .. content&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;MZMcBride</name></author>
	</entry>
</feed>