<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.parallelmc.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ASpriteFile_List</id>
	<title>Module:SpriteFile List - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.parallelmc.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ASpriteFile_List"/>
	<link rel="alternate" type="text/html" href="https://wiki.parallelmc.org/w/index.php?title=Module:SpriteFile_List&amp;action=history"/>
	<updated>2026-11-20T20:23:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://wiki.parallelmc.org/w/index.php?title=Module:SpriteFile_List&amp;diff=11077&amp;oldid=prev</id>
		<title>Diamondback88: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.parallelmc.org/w/index.php?title=Module:SpriteFile_List&amp;diff=11077&amp;oldid=prev"/>
		<updated>2026-11-18T21:18:12Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:18, 18 November 2026&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key s1667_MediaWiki:diff::1.12:old-11076:rev-11077 --&gt;
&lt;/table&gt;</summary>
		<author><name>Diamondback88</name></author>
	</entry>
	<entry>
		<id>https://wiki.parallelmc.org/w/index.php?title=Module:SpriteFile_List&amp;diff=11076&amp;oldid=prev</id>
		<title>minecraft&gt;Leo768 at 10:06, 20 September 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.parallelmc.org/w/index.php?title=Module:SpriteFile_List&amp;diff=11076&amp;oldid=prev"/>
		<updated>2026-09-20T10:06:10Z</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;
&lt;br /&gt;
function p.file (f)&lt;br /&gt;
	local title = mw.title.getCurrentTitle()&lt;br /&gt;
	local name, id = title.text:match(&amp;#039;^(%S+) (.+)%.&amp;#039;)&lt;br /&gt;
	local file = (title.redirectTarget or title).fullText&lt;br /&gt;
	local deprecated = f:getParent().args.deprecated ~= nil&lt;br /&gt;
	local cats = (&amp;#039;[[Category:%s images]]&amp;#039;):format(name)&lt;br /&gt;
	if name == &amp;#039;Invicon&amp;#039; then -- [[Module:SpriteFile#L-45--L-47]]&lt;br /&gt;
		name = &amp;#039;InvSprite&amp;#039;&lt;br /&gt;
		cats = &amp;#039;[[Category:InvSprite files]]&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	if deprecated then&lt;br /&gt;
		cats = cats .. &amp;#039;[[Category:Deprecated sprite names]]&amp;#039;&lt;br /&gt;
		if f:callParserFunction(&amp;#039;#dpl&amp;#039;, { &amp;#039;&amp;#039;, imageused = title.text, count = 1 }) ~= &amp;#039;&amp;#039; then&lt;br /&gt;
			cats = cats .. &amp;#039;[[Category:In-use deprecated sprite names]]&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	mw.ext.bucket(&amp;#039;spritefile&amp;#039;).put({&lt;br /&gt;
		name = name,&lt;br /&gt;
		id = id,&lt;br /&gt;
		file = file,&lt;br /&gt;
		deprecated = deprecated&lt;br /&gt;
	})&lt;br /&gt;
	return cats&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function continuedBucketQuery (query)&lt;br /&gt;
	local limit = 5000&lt;br /&gt;
	local result = {}&lt;br /&gt;
	local offset = 0&lt;br /&gt;
	query.limit(limit)&lt;br /&gt;
	while true do&lt;br /&gt;
		local response = query.run()&lt;br /&gt;
		if not response[1] then break end&lt;br /&gt;
		for _, value in ipairs(response) do&lt;br /&gt;
			table.insert(result, value)&lt;br /&gt;
		end&lt;br /&gt;
		offset = offset + limit&lt;br /&gt;
		query.offset(offset)&lt;br /&gt;
	end&lt;br /&gt;
	return result&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.doc (f)&lt;br /&gt;
	local args = f:getParent().args&lt;br /&gt;
	local bucket = continuedBucketQuery(mw.ext.bucket(&amp;#039;spritefile&amp;#039;)&lt;br /&gt;
		.where(&amp;#039;name&amp;#039;, args.name)&lt;br /&gt;
		.select(&amp;#039;page_name&amp;#039;, &amp;#039;id&amp;#039;, &amp;#039;file&amp;#039;, &amp;#039;deprecated&amp;#039;)&lt;br /&gt;
		.orderBy(&amp;#039;id&amp;#039;, &amp;#039;asc&amp;#039;)&lt;br /&gt;
	)&lt;br /&gt;
	local ids = {}&lt;br /&gt;
	local keyedIds = {}&lt;br /&gt;
	for _, object in ipairs(bucket) do&lt;br /&gt;
		if not keyedIds[object.file] then&lt;br /&gt;
			keyedIds[object.file] = {}&lt;br /&gt;
			table.insert(ids, keyedIds[object.file])&lt;br /&gt;
		end&lt;br /&gt;
		table.insert(keyedIds[object.file], object)&lt;br /&gt;
	end&lt;br /&gt;
	local height = args.height or args.size or &amp;#039;16&amp;#039;&lt;br /&gt;
	local width = args.width or args.size or &amp;#039;16&amp;#039;&lt;br /&gt;
	local body = mw.html.create(&amp;#039;ul&amp;#039;):addClass(&amp;#039;spritedoc-boxes&amp;#039;):addClass(&amp;#039;noviewer&amp;#039;)&lt;br /&gt;
	for _, data in ipairs(ids) do&lt;br /&gt;
		local box = body:tag(&amp;#039;li&amp;#039;):addClass(&amp;#039;spritedoc-box&amp;#039;)&lt;br /&gt;
			:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;spritedoc-image&amp;#039;)&lt;br /&gt;
				:wikitext((&amp;#039;[[%s|%sx%spx|class=pixel-image]]&amp;#039;):format(data[1].file, width, height))&lt;br /&gt;
				:done()&lt;br /&gt;
			:tag(&amp;#039;ul&amp;#039;):addClass(&amp;#039;spritedoc-names&amp;#039;)&lt;br /&gt;
		for _, id in ipairs(data) do&lt;br /&gt;
			box:tag(&amp;#039;li&amp;#039;):addClass(&amp;#039;spritedoc-name&amp;#039;):tag(&amp;#039;code&amp;#039;)&lt;br /&gt;
				:wikitext((&amp;#039;[%s %s]&amp;#039;):format(&lt;br /&gt;
					tostring(mw.uri.fullUrl(id.page_name, { redirect = &amp;#039;no&amp;#039; })),&lt;br /&gt;
					id.id&lt;br /&gt;
				))&lt;br /&gt;
				:addClass(id.deprecated and &amp;#039;spritedoc-deprecated&amp;#039; or nil)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return f:extensionTag{ name = &amp;#039;templatestyles&amp;#039;, args = { src = &amp;#039;Sprite/doc.css&amp;#039; }}&lt;br /&gt;
		.. tostring(body)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>minecraft&gt;Leo768</name></author>
	</entry>
</feed>