<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://petitplanet.wiki/Module:BucketCount?action=history&amp;feed=atom</id>
	<title>Module:BucketCount - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://petitplanet.wiki/Module:BucketCount?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://petitplanet.wiki/Module:BucketCount?action=history"/>
	<updated>2026-10-28T09:24:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://petitplanet.wiki/index.php?title=Module:BucketCount&amp;diff=24146&amp;oldid=prev</id>
		<title>ReisuDesign: Created page with &quot;local p = {}  function p.main(frame) 	local args = frame:getParent().args 	local bucket_name = mw.text.trim(args[1] or &#039;&#039;) 	local select_field = mw.text.trim(args[2] or &#039;&#039;) 	local count = 0 	while(true) do 		local b = bucket(bucket_name).select(select_field).limit(5000).offset(count) 		for k, v in pairs(args) do 			if k ~= 1 and k ~= 2 then -- https://runescape.wiki/w/Module:BucketCount?action=edit -- creds to these geezers 				v = mw.text.decode(v) -- {{PAGENAME}} will...&quot;</title>
		<link rel="alternate" type="text/html" href="https://petitplanet.wiki/index.php?title=Module:BucketCount&amp;diff=24146&amp;oldid=prev"/>
		<updated>2026-09-16T15:48:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = {}  function p.main(frame) 	local args = frame:getParent().args 	local bucket_name = mw.text.trim(args[1] or &amp;#039;&amp;#039;) 	local select_field = mw.text.trim(args[2] or &amp;#039;&amp;#039;) 	local count = 0 	while(true) do 		local b = bucket(bucket_name).select(select_field).limit(5000).offset(count) 		for k, v in pairs(args) do 			if k ~= 1 and k ~= 2 then -- https://runescape.wiki/w/Module:BucketCount?action=edit -- creds to these geezers 				v = mw.text.decode(v) -- {{PAGENAME}} will...&amp;quot;&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;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
	local bucket_name = mw.text.trim(args[1] or &amp;#039;&amp;#039;)&lt;br /&gt;
	local select_field = mw.text.trim(args[2] or &amp;#039;&amp;#039;)&lt;br /&gt;
	local count = 0&lt;br /&gt;
	while(true) do&lt;br /&gt;
		local b = bucket(bucket_name).select(select_field).limit(5000).offset(count)&lt;br /&gt;
		for k, v in pairs(args) do&lt;br /&gt;
			if k ~= 1 and k ~= 2 then -- https://runescape.wiki/w/Module:BucketCount?action=edit -- creds to these geezers&lt;br /&gt;
				v = mw.text.decode(v) -- {{PAGENAME}} will urlencode apostrophe, so we have to undo it&lt;br /&gt;
				if string.sub(k, 1, 1) == &amp;#039;!&amp;#039; then&lt;br /&gt;
					k = string.sub(k, 2, #k)&lt;br /&gt;
					b.where(bucket.Not({k, v}))	&lt;br /&gt;
				else&lt;br /&gt;
					b.where(k, v)&lt;br /&gt;
				end&lt;br /&gt;
					&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		local data = b.run()&lt;br /&gt;
		count = count + #data&lt;br /&gt;
		&lt;br /&gt;
		if #data &amp;lt; 5000 then&lt;br /&gt;
			return count&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>ReisuDesign</name></author>
	</entry>
</feed>