<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.celestek.xyz/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.celestek.xyz/index.php?action=history&amp;feed=atom&amp;title=Module%3AInfobox"/>
		<link rel="alternate" type="text/html" href="https://wiki.celestek.xyz/index.php?title=Module:Infobox&amp;action=history"/>
		<updated>2026-04-29T06:34:54Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.24.2</generator>

	<entry>
		<id>//wiki.celestek.xyz/index.php?title=Module:Infobox&amp;diff=145&amp;oldid=prev</id>
		<title>Celestek at 19:10, 20 April 2015</title>
		<link rel="alternate" type="text/html" href="https://wiki.celestek.xyz/index.php?title=Module:Infobox&amp;diff=145&amp;oldid=prev"/>
				<updated>2015-04-20T19:10:34Z</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;
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;
		local grid&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( 'File:' .. 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.png|' .. size .. '|link=File:' .. title .. '.png|Upload ' .. title .. '.png]]'&lt;br /&gt;
				else&lt;br /&gt;
					image = '[[File:No image.png|' .. 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 grid&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;
					local imageTitle = mw.title.new( 'File:Grid ' .. title .. '.png' )&lt;br /&gt;
					if imageTitle and imageTitle.exists 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;
					if not grid then&lt;br /&gt;
						grid = require( 'Module:Grid' ).cell&lt;br /&gt;
					end&lt;br /&gt;
					table.insert( invImages, grid{ image, link = 'none' } )&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			if #invImages &amp;gt; 0 then&lt;br /&gt;
				invImages = '&amp;lt;div class=&amp;quot;infobox-invimages&amp;quot;&amp;gt;' .. table.concat( invImages, '' ) .. '&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&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>Celestek</name></author>	</entry>

	</feed>