<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.boxofrocks.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AInfobox</id>
	<title>Module:Infobox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.boxofrocks.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AInfobox"/>
	<link rel="alternate" type="text/html" href="https://wiki.boxofrocks.net/index.php?title=Module:Infobox&amp;action=history"/>
	<updated>2026-05-30T21:52:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.boxofrocks.net/index.php?title=Module:Infobox&amp;diff=465&amp;oldid=prev</id>
		<title>BoxWiki: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.boxofrocks.net/index.php?title=Module:Infobox&amp;diff=465&amp;oldid=prev"/>
		<updated>2021-05-13T17:23:45Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:23, 13 May 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>BoxWiki</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.boxofrocks.net/index.php?title=Module:Infobox&amp;diff=464&amp;oldid=prev</id>
		<title>Crafting&gt;Nixinova: Revert consecutive edits by Nixinova (talk)</title>
		<link rel="alternate" type="text/html" href="https://wiki.boxofrocks.net/index.php?title=Module:Infobox&amp;diff=464&amp;oldid=prev"/>
		<updated>2019-07-10T00:28:36Z</updated>

		<summary type="html">&lt;p&gt;Revert consecutive edits by &lt;a href=&quot;/Special:Contributions/Nixinova&quot; title=&quot;Special:Contributions/Nixinova&quot;&gt;Nixinova&lt;/a&gt; (&lt;a href=&quot;/index.php?title=User_talk:Nixinova&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Nixinova (page does not exist)&quot;&gt;talk&lt;/a&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;
function p.infobox( f )&lt;br /&gt;
	local args = require( 'Module:ProcessArgs' ).merge( true )&lt;br /&gt;
	local titleObject = mw.title.getCurrentTitle()&lt;br /&gt;
	local title = args.title or titleObject.baseText&lt;br /&gt;
	&lt;br /&gt;
	local imageArea = args.imagearea&lt;br /&gt;
	if not imageArea and imageArea ~= 'none' then&lt;br /&gt;
		local images = {}&lt;br /&gt;
		local invImages = {}&lt;br /&gt;
		local defaultImageSize = args.defaultimagesize or '150px'&lt;br /&gt;
		args.image1 = args.image1 or args.image or 'title'&lt;br /&gt;
		args.image1size = args.image1size or args.imagesize&lt;br /&gt;
		args.invimage1 = args.invimage1 or args.invimage or 'title'&lt;br /&gt;
		&lt;br /&gt;
		local imgCount = {}&lt;br /&gt;
		local invImgCount = {}&lt;br /&gt;
		for k, v in pairs( args ) do&lt;br /&gt;
			if type( k ) == 'string' then&lt;br /&gt;
				local image, num = k:match( '^(image)(%d+)$' )&lt;br /&gt;
				local invImage, invNum = k:match( '^(invimage)(%d+)$' )&lt;br /&gt;
				if v:lower() ~= 'none' then&lt;br /&gt;
					if image then&lt;br /&gt;
						table.insert( imgCount, tonumber( num ) )&lt;br /&gt;
					elseif invImage then&lt;br /&gt;
						table.insert( invImgCount, tonumber( invNum ) )&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		table.sort( imgCount )&lt;br /&gt;
		local animate&lt;br /&gt;
		for k, v in ipairs( imgCount ) do&lt;br /&gt;
			local image = args['image' .. v]&lt;br /&gt;
			local size = args['image' .. v .. 'size'] or defaultImageSize&lt;br /&gt;
			&lt;br /&gt;
			if image == 'title' then&lt;br /&gt;
				local imageTitle = mw.title.new( 'Media:' .. title .. '.png' )&lt;br /&gt;
				if imageTitle and imageTitle.exists then&lt;br /&gt;
					image = '[[File:' .. title .. '.png|' .. size .. ']]'&lt;br /&gt;
				elseif titleObject.namespace == 0 then&lt;br /&gt;
					image = '[[File:No image.svg|' .. size .. '|link=File:' .. title .. '.png|Upload ' .. title .. '.png]]'&lt;br /&gt;
				else&lt;br /&gt;
					image = '[[File:No image.svg|' .. size .. '|link=]]'&lt;br /&gt;
				end&lt;br /&gt;
			elseif image:match( ';' ) then&lt;br /&gt;
				if not animate then&lt;br /&gt;
					animate = require( 'Module:Animate' ).animate&lt;br /&gt;
				end&lt;br /&gt;
				image = animate{ image, size }&lt;br /&gt;
			else&lt;br /&gt;
				image = '[[File:' .. image .. '|' .. size .. ']]'&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			table.insert( images, '&amp;lt;div&amp;gt;' .. image .. '&amp;lt;/div&amp;gt;' )&lt;br /&gt;
		end&lt;br /&gt;
		images = table.concat( images, '\n' )&lt;br /&gt;
		&lt;br /&gt;
		if #invImgCount &amp;gt; 0 then&lt;br /&gt;
			table.sort( invImgCount )&lt;br /&gt;
			local slot&lt;br /&gt;
			local invIds = mw.loadData( 'Module:InvSprite' ).ids&lt;br /&gt;
			local invAliases = mw.loadData( 'Module:Inventory slot/Aliases' )&lt;br /&gt;
			for k, v in ipairs( invImgCount ) do&lt;br /&gt;
				local image = args['invimage' .. v]&lt;br /&gt;
				if image == 'title' then&lt;br /&gt;
					if invIds[title] or invAliases[title] then&lt;br /&gt;
						image = title&lt;br /&gt;
					else&lt;br /&gt;
						image = false&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
				&lt;br /&gt;
				if image == '----' then&lt;br /&gt;
					table.insert( invImages, '&amp;lt;/div&amp;gt;&amp;lt;div style=&amp;quot;padding-top:.5em&amp;quot;&amp;gt;' )&lt;br /&gt;
				elseif image then&lt;br /&gt;
					if not slot then&lt;br /&gt;
						slot = require( 'Module:Inventory slot' ).slot&lt;br /&gt;
					end&lt;br /&gt;
					table.insert( invImages, slot{ image, link = 'none' } )&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			if slot and #invImages &amp;gt; 0 then&lt;br /&gt;
				invImages = '&amp;lt;div class=&amp;quot;infobox-invimages&amp;quot;&amp;gt;&amp;lt;div&amp;gt;' .. table.concat( invImages, '' ) .. '&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;'&lt;br /&gt;
			else&lt;br /&gt;
				invImages = ''&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			invImages = ''&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		if images ~= '' or invImages ~= '' then&lt;br /&gt;
			imageArea = images .. '\n' .. invImages&lt;br /&gt;
		else&lt;br /&gt;
			imageArea = 'none'&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if imageArea and imageArea ~= 'none' then&lt;br /&gt;
		imageArea = '&amp;lt;div class=&amp;quot;infobox-imagearea animated-container&amp;quot;&amp;gt;' .. imageArea .. '&amp;lt;/div&amp;gt;'&lt;br /&gt;
	else&lt;br /&gt;
		imageArea = ''&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local footer = args.footer&lt;br /&gt;
	if footer then&lt;br /&gt;
		footer = '| class=&amp;quot;infobox-footer&amp;quot; colspan=&amp;quot;2&amp;quot; | ' .. footer&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local html = {&lt;br /&gt;
		'&amp;lt;div class=&amp;quot;notaninfobox&amp;quot;&amp;gt;',&lt;br /&gt;
			'&amp;lt;div class=&amp;quot;mcwiki-header infobox-title&amp;quot;&amp;gt;' .. title .. '&amp;lt;/div&amp;gt;',&lt;br /&gt;
			imageArea,&lt;br /&gt;
			'{| class=&amp;quot;infobox-rows&amp;quot; cellspacing=&amp;quot;1&amp;quot; cellpadding=&amp;quot;4&amp;quot;',&lt;br /&gt;
			'|-',&lt;br /&gt;
			args.rows or '',&lt;br /&gt;
			footer or '',&lt;br /&gt;
			'|}',&lt;br /&gt;
		'&amp;lt;/div&amp;gt;'&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	return table.concat( html, '\n' )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Crafting&gt;Nixinova</name></author>
		
	</entry>
</feed>