<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cern.ch/index.php?action=history&amp;feed=atom&amp;title=Module%3AMultiple_image</id>
	<title>Module:Multiple image - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cern.ch/index.php?action=history&amp;feed=atom&amp;title=Module%3AMultiple_image"/>
	<link rel="alternate" type="text/html" href="https://wiki.cern.ch/index.php?title=Module:Multiple_image&amp;action=history"/>
	<updated>2026-04-04T08:53:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.cern.ch/index.php?title=Module:Multiple_image&amp;diff=11287&amp;oldid=prev</id>
		<title>Vigen: 1 revision imported from :wikipedia:Module:Multiple_image</title>
		<link rel="alternate" type="text/html" href="https://wiki.cern.ch/index.php?title=Module:Multiple_image&amp;diff=11287&amp;oldid=prev"/>
		<updated>2026-03-31T21:29:30Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://en.wikipedia.org/wiki/Module:Multiple_image&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Module:Multiple image&quot;&gt;wikipedia:Module:Multiple_image&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:29, 31 March 2026&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>Vigen</name></author>
	</entry>
	<entry>
		<id>https://wiki.cern.ch/index.php?title=Module:Multiple_image&amp;diff=11286&amp;oldid=prev</id>
		<title>wikipedia&gt;Zackmann08: Wrapping cat in Template:Main other</title>
		<link rel="alternate" type="text/html" href="https://wiki.cern.ch/index.php?title=Module:Multiple_image&amp;diff=11286&amp;oldid=prev"/>
		<updated>2026-01-01T01:04:43Z</updated>

		<summary type="html">&lt;p&gt;Wrapping cat in &lt;a href=&quot;/index.php/Template:Main_other&quot; title=&quot;Template:Main other&quot;&gt;Template:Main other&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- implements [[template:multiple image]]&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local autoscaledimages&lt;br /&gt;
local nonautoscaledimages&lt;br /&gt;
&lt;br /&gt;
local function isnotempty(s)&lt;br /&gt;
	return s and s:match( &amp;#039;^%s*(.-)%s*$&amp;#039; ) ~= &amp;#039;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function removepx(s)&lt;br /&gt;
	return tostring(s or &amp;#039;&amp;#039;):match(&amp;#039;^(.*)[Pp][Xx]%s*$&amp;#039;) or s&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getdimensions(s, w, h)&lt;br /&gt;
	if tonumber(w) and tonumber(h) then&lt;br /&gt;
		nonautoscaledimages = true&lt;br /&gt;
		return tonumber(w), tonumber(h)&lt;br /&gt;
	end&lt;br /&gt;
	local file = s and mw.title.new(&amp;#039;File:&amp;#039; .. mw.uri.decode(mw.ustring.gsub(s,&amp;#039;%|.*$&amp;#039;,&amp;#039;&amp;#039;), &amp;#039;WIKI&amp;#039;))&lt;br /&gt;
	file = file and file.file or {width = 0, height = 0}&lt;br /&gt;
	w = tonumber(file.width) or 0&lt;br /&gt;
	h = tonumber(file.height) or 0&lt;br /&gt;
	autoscaledimages = true&lt;br /&gt;
	return w, h&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderImageCell(image, width, height, link, alt, thumbtime, caption, class, textalign, istyle, border)&lt;br /&gt;
	local root = mw.html.create(&amp;#039;&amp;#039;)&lt;br /&gt;
	local altstr = &amp;#039;&amp;#039;&lt;br /&gt;
	local classstr = class and (&amp;#039;|class=&amp;#039; .. class) or &amp;#039;&amp;#039;&lt;br /&gt;
	local linkstr = link and (&amp;#039;|link=&amp;#039; .. link) or &amp;#039;&amp;#039;&lt;br /&gt;
	local widthstr = &amp;#039;|&amp;#039; .. tostring(width) .. &amp;#039;px&amp;#039;&lt;br /&gt;
	local thumbtimestr = &amp;#039;&amp;#039;&lt;br /&gt;
	if isnotempty( alt ) then&lt;br /&gt;
		altstr = &amp;#039;|alt=&amp;#039; .. alt&lt;br /&gt;
	end&lt;br /&gt;
	if widthstr == &amp;#039;|-nanpx&amp;#039; then&lt;br /&gt;
		widthstr = &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	if isnotempty( thumbtime ) then&lt;br /&gt;
		thumbtimestr = &amp;#039;|thumbtime=&amp;#039; .. thumbtime&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local imagediv = root:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
	imagediv:addClass((border ~= &amp;#039;infobox&amp;#039;) and &amp;#039;thumbimage&amp;#039; or nil)&lt;br /&gt;
	imagediv:cssText(istyle)&lt;br /&gt;
	if( height ) then&lt;br /&gt;
		imagediv:css(&amp;#039;height&amp;#039;, tostring(height) .. &amp;#039;px&amp;#039;)&lt;br /&gt;
		imagediv:css(&amp;#039;overflow&amp;#039;, &amp;#039;hidden&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	imagediv:wikitext(&amp;#039;[[file:&amp;#039; .. image .. classstr .. widthstr .. linkstr .. altstr .. thumbtimestr .. &amp;#039;]]&amp;#039;)&lt;br /&gt;
	if isnotempty(caption) then&lt;br /&gt;
		local captiondiv = root:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
		captiondiv:addClass((border ~= &amp;#039;infobox&amp;#039;) and &amp;#039;thumbcaption&amp;#039; or nil)&lt;br /&gt;
		if isnotempty(textalign) then&lt;br /&gt;
			captiondiv:addClass(&amp;#039;text-align-&amp;#039; .. textalign)&lt;br /&gt;
		end&lt;br /&gt;
		captiondiv:wikitext(caption)&lt;br /&gt;
	end&lt;br /&gt;
	return tostring(root)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getWidth(w1, w2)&lt;br /&gt;
	local w&lt;br /&gt;
	if isnotempty(w1) then&lt;br /&gt;
		w = tonumber(w1)&lt;br /&gt;
	elseif isnotempty(w2) then&lt;br /&gt;
		w = tonumber(w2)&lt;br /&gt;
	end&lt;br /&gt;
	return w or 200&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function getPerRow(pstr, ic)&lt;br /&gt;
	-- split string into array using any non-digit as a dilimiter&lt;br /&gt;
	local pr = mw.text.split(pstr or &amp;#039;&amp;#039;, &amp;#039;[^%d][^%d]*&amp;#039;)&lt;br /&gt;
	-- if split failed, assume a single row&lt;br /&gt;
	if (#pr &amp;lt; 1) then&lt;br /&gt;
		pr = {tostring(ic)}&lt;br /&gt;
	end&lt;br /&gt;
	-- convert the array of strings to an array of numbers,&lt;br /&gt;
	-- adding any implied/missing numbers at the end of the array&lt;br /&gt;
	local r = 1&lt;br /&gt;
	local thisrow = tonumber(pr[1] or ic) or ic&lt;br /&gt;
	local prownum = {}&lt;br /&gt;
	while( ic &amp;gt; 0 ) do&lt;br /&gt;
		prownum[r] = thisrow&lt;br /&gt;
		ic = ic - thisrow&lt;br /&gt;
		r = r + 1&lt;br /&gt;
		-- use the previous if the next is missing and&lt;br /&gt;
		-- make sure we don&amp;#039;t overstep the number of images&lt;br /&gt;
		thisrow = math.min(tonumber(pr[r] or thisrow) or ic, ic)&lt;br /&gt;
	end&lt;br /&gt;
	return prownum&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderMultipleImages(frame)&lt;br /&gt;
	local pargs = frame:getParent().args&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
	local width = removepx(pargs[&amp;#039;width&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
	local dir = pargs[&amp;#039;direction&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local border = pargs[&amp;#039;border&amp;#039;] or args[&amp;#039;border&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local align = pargs[&amp;#039;align&amp;#039;] or args[&amp;#039;align&amp;#039;] or (border == &amp;#039;infobox&amp;#039; and &amp;#039;center&amp;#039; or &amp;#039;&amp;#039;)&lt;br /&gt;
	local capalign = pargs[&amp;#039;caption_align&amp;#039;] or args[&amp;#039;caption_align&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local totalwidth = removepx(pargs[&amp;#039;total_width&amp;#039;] or args[&amp;#039;total_width&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
	local imgstyle = pargs[&amp;#039;image_style&amp;#039;] or args[&amp;#039;image_style&amp;#039;]&lt;br /&gt;
	local header = pargs[&amp;#039;header&amp;#039;] or pargs[&amp;#039;title&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local footer = pargs[&amp;#039;footer&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local imagegap = tonumber(pargs[&amp;#039;image_gap&amp;#039;] or &amp;#039;1&amp;#039;) or 1&lt;br /&gt;
	local perrow = nil&lt;br /&gt;
	local thumbclass = {&lt;br /&gt;
		[&amp;quot;left&amp;quot;] = &amp;#039;tleft&amp;#039;,&lt;br /&gt;
		[&amp;quot;none&amp;quot;] = &amp;#039;tnone&amp;#039;,&lt;br /&gt;
		[&amp;quot;center&amp;quot;] = &amp;#039;tnone&amp;#039;,&lt;br /&gt;
		[&amp;quot;centre&amp;quot;] = &amp;#039;tnone&amp;#039;,&lt;br /&gt;
		[&amp;quot;right&amp;quot;] = &amp;#039;tright&amp;#039;&lt;br /&gt;
		}&lt;br /&gt;
&lt;br /&gt;
	-- find all the nonempty images&lt;br /&gt;
	local imagenumbers = {}&lt;br /&gt;
	local imagecount = 0&lt;br /&gt;
	for k, v in pairs( pargs ) do&lt;br /&gt;
		local i = tonumber(tostring(k):match( &amp;#039;^%s*image([%d]+)%s*$&amp;#039; ) or &amp;#039;0&amp;#039;)&lt;br /&gt;
		if( i &amp;gt; 0 and isnotempty(v) ) then&lt;br /&gt;
			table.insert( imagenumbers, i)&lt;br /&gt;
			imagecount = imagecount + 1&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- sort the imagenumbers&lt;br /&gt;
	table.sort(imagenumbers)&lt;br /&gt;
&lt;br /&gt;
	-- create an array with the number of images per row&lt;br /&gt;
	perrow = getPerRow(dir == &amp;#039;vertical&amp;#039; and &amp;#039;1&amp;#039; or pargs[&amp;#039;perrow&amp;#039;], imagecount)&lt;br /&gt;
&lt;br /&gt;
	-- compute the number of rows&lt;br /&gt;
	local rowcount = #perrow&lt;br /&gt;
&lt;br /&gt;
	-- store the image widths and compute row widths and maximum row width&lt;br /&gt;
	local heights = {}&lt;br /&gt;
	local widths = {}&lt;br /&gt;
	local widthmax = 0&lt;br /&gt;
	local widthsum = {}&lt;br /&gt;
	local k = 0&lt;br /&gt;
	for r=1,rowcount do&lt;br /&gt;
		widthsum[r] = 0&lt;br /&gt;
		for c=1,perrow[r] do&lt;br /&gt;
			k = k + 1&lt;br /&gt;
			if( k &amp;lt;= imagecount ) then&lt;br /&gt;
				local i = imagenumbers[k]&lt;br /&gt;
				if( isnotempty(totalwidth) ) then&lt;br /&gt;
					widths[k], heights[k] = getdimensions(pargs[&amp;#039;image&amp;#039; .. i], pargs[&amp;#039;width&amp;#039; .. i], pargs[&amp;#039;height&amp;#039; .. i])&lt;br /&gt;
				else&lt;br /&gt;
					widths[k] = getWidth(width, pargs[&amp;#039;width&amp;#039; .. i])&lt;br /&gt;
				end&lt;br /&gt;
				widthsum[r] = widthsum[r] + widths[k]&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		widthmax = math.max(widthmax, widthsum[r])&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- make sure the gap is non-negative&lt;br /&gt;
	if imagegap &amp;lt; 0 then imagegap = 0 end&lt;br /&gt;
&lt;br /&gt;
	-- if total_width has been specified, rescale the image widths&lt;br /&gt;
	if( isnotempty(totalwidth) ) then&lt;br /&gt;
		totalwidth = tonumber(totalwidth)&lt;br /&gt;
		widthmax = 0&lt;br /&gt;
		local k = 0&lt;br /&gt;
		for r=1,rowcount do&lt;br /&gt;
			local koffset = k&lt;br /&gt;
			local tw = totalwidth - (3 + imagegap) * (perrow[r] - 1) - 12&lt;br /&gt;
			local ar = {}&lt;br /&gt;
			local arsum = 0&lt;br /&gt;
			for j=1,perrow[r] do&lt;br /&gt;
				k = k + 1&lt;br /&gt;
				if( k&amp;lt;= imagecount ) then&lt;br /&gt;
					local i = imagenumbers[k]&lt;br /&gt;
					local h = heights[k] or 0&lt;br /&gt;
					if (h &amp;gt; 0) then&lt;br /&gt;
						ar[j] = widths[k]/h&lt;br /&gt;
						heights[k] = h&lt;br /&gt;
					else&lt;br /&gt;
						ar[j] = widths[k]/100&lt;br /&gt;
					end&lt;br /&gt;
					arsum = arsum + ar[j]&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			local ht = tw/arsum&lt;br /&gt;
			local ws = 0&lt;br /&gt;
			k = koffset&lt;br /&gt;
			for j=1,perrow[r] do&lt;br /&gt;
				k = k + 1&lt;br /&gt;
				if( k&amp;lt;= imagecount ) then&lt;br /&gt;
					local i = imagenumbers[k]&lt;br /&gt;
					widths[k] = math.floor(ar[j]*ht + 0.5)&lt;br /&gt;
					ws = ws + widths[k]&lt;br /&gt;
					if heights[k] then&lt;br /&gt;
						heights[k] = math.floor(ht)&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			widthsum[r] = ws&lt;br /&gt;
			widthmax = math.max(widthmax, widthsum[r])&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- start building the array of images, if there are images&lt;br /&gt;
	if( imagecount &amp;gt; 0 ) then&lt;br /&gt;
		-- compute width of outer div&lt;br /&gt;
		local bodywidth = 0&lt;br /&gt;
		for r=1,rowcount do&lt;br /&gt;
			if( widthmax == widthsum[r] ) then&lt;br /&gt;
				bodywidth = widthmax + (3 + imagegap) * (perrow[r] - 1) + 12&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		-- The body has a min-width of 100, which needs to be taken into account on specific widths&lt;br /&gt;
		bodywidth = math.max( 100, bodywidth - 8);&lt;br /&gt;
&lt;br /&gt;
		local bg = pargs[&amp;#039;background color&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
		-- create the array of images&lt;br /&gt;
		local root = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
		root:addClass(&amp;#039;thumb&amp;#039;)&lt;br /&gt;
		root:addClass(&amp;#039;tmulti&amp;#039;)&lt;br /&gt;
		-- root:addClass(&amp;#039;tmulti-sandbox&amp;#039;)&lt;br /&gt;
		root:addClass(thumbclass[align] or &amp;#039;tright&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
		if( align == &amp;#039;center&amp;#039; or align == &amp;#039;centre&amp;#039; ) then&lt;br /&gt;
			root:addClass(&amp;#039;center&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
		if( bg ~= &amp;#039;&amp;#039; ) then&lt;br /&gt;
			root:css(&amp;#039;background-color&amp;#039;, bg)&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		local div = root:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
		div:addClass((border ~= &amp;#039;infobox&amp;#039;) and &amp;#039;thumbinner multiimageinner&amp;#039; or &amp;#039;multiimageinner&amp;#039;)&lt;br /&gt;
		div:css(&amp;#039;width&amp;#039;, tostring(bodywidth) .. &amp;#039;px&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;max-width&amp;#039;, tostring(bodywidth) .. &amp;#039;px&amp;#039;)&lt;br /&gt;
		if( bg ~= &amp;#039;&amp;#039; ) then&lt;br /&gt;
			div:css(&amp;#039;background-color&amp;#039;, bg)&lt;br /&gt;
		end&lt;br /&gt;
		if( border == &amp;#039;infobox&amp;#039; or border == &amp;#039;none&amp;#039;) then&lt;br /&gt;
			div:css(&amp;#039;border&amp;#039;, &amp;#039;none&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
		-- add the header&lt;br /&gt;
		if( isnotempty(header) ) then&lt;br /&gt;
			div:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
				:addClass(&amp;#039;trow&amp;#039;)&lt;br /&gt;
				:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
					:addClass(&amp;#039;theader&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;text-align&amp;#039;, pargs[&amp;#039;header_align&amp;#039;])&lt;br /&gt;
					:css(&amp;#039;background-color&amp;#039;, &lt;br /&gt;
						(pargs[&amp;#039;header_background&amp;#039;] ~= &amp;#039;&amp;#039;) and pargs[&amp;#039;header_background&amp;#039;] or nil)&lt;br /&gt;
					:wikitext(header)&lt;br /&gt;
		end&lt;br /&gt;
		-- loop through the images&lt;br /&gt;
		local k = 0&lt;br /&gt;
		for r=1,rowcount do&lt;br /&gt;
			local rowdiv = div:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;trow&amp;#039;);&lt;br /&gt;
			for j=1,perrow[r] do&lt;br /&gt;
				k = k + 1&lt;br /&gt;
				if( k &amp;lt;= imagecount ) then&lt;br /&gt;
					local imagediv = rowdiv:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
					imagediv:addClass(&amp;#039;tsingle&amp;#039;)&lt;br /&gt;
					if bg ~= &amp;#039;&amp;#039; then&lt;br /&gt;
						imagediv:css(&amp;#039;background-color&amp;#039;, bg);&lt;br /&gt;
					end&lt;br /&gt;
					if imagegap &amp;gt; 1 and k &amp;lt; imagecount then&lt;br /&gt;
						if dir == &amp;#039;vertical&amp;#039; then&lt;br /&gt;
							imagediv:css(&amp;#039;margin-bottom&amp;#039;, tostring(imagegap) .. &amp;#039;px&amp;#039;)	&lt;br /&gt;
						elseif j &amp;lt; perrow[r] then&lt;br /&gt;
							imagediv:css(&amp;#039;margin-right&amp;#039;, tostring(imagegap) .. &amp;#039;px&amp;#039;)&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
					local i = imagenumbers[k]&lt;br /&gt;
					local img = pargs[&amp;#039;image&amp;#039; .. i]&lt;br /&gt;
					local w = widths[k]&lt;br /&gt;
					imagediv:css(&amp;#039;width&amp;#039;, tostring(2 + w) .. &amp;#039;px&amp;#039;)&lt;br /&gt;
						:css(&amp;#039;max-width&amp;#039;, tostring(2 + w) .. &amp;#039;px&amp;#039;)&lt;br /&gt;
					imagediv:wikitext(renderImageCell(img, w, heights[k],&lt;br /&gt;
						pargs[&amp;#039;link&amp;#039; .. i], pargs[&amp;#039;alt&amp;#039; .. i],&lt;br /&gt;
						pargs[&amp;#039;thumbtime&amp;#039; .. i], pargs[&amp;#039;caption&amp;#039; .. i], pargs[&amp;#039;class&amp;#039; .. i], capalign, imgstyle, border))&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		-- add the footer&lt;br /&gt;
		if( isnotempty(footer) ) then&lt;br /&gt;
			local falign = string.lower(pargs[&amp;#039;footer_align&amp;#039;] or args[&amp;#039;footer_align&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
			falign = (falign == &amp;#039;centre&amp;#039;) and &amp;#039;center&amp;#039; or falign&lt;br /&gt;
			div:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
				:addClass(&amp;#039;trow&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;display&amp;#039;, (falign ~= &amp;#039;&amp;#039;) and &amp;#039;flow-root&amp;#039; or &amp;#039;flex&amp;#039;)&lt;br /&gt;
				:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
					:addClass((border ~= &amp;#039;infobox&amp;#039;) and &amp;#039;thumbcaption&amp;#039; or nil)&lt;br /&gt;
					:css(&amp;#039;text-align&amp;#039;, (falign ~= &amp;#039;&amp;#039;) and falign or nil)&lt;br /&gt;
					:css(&amp;#039;background-color&amp;#039;, &lt;br /&gt;
						(pargs[&amp;#039;footer_background&amp;#039;] ~= &amp;#039;&amp;#039;) and pargs[&amp;#039;footer_background&amp;#039;] or nil)&lt;br /&gt;
					:wikitext(footer)&lt;br /&gt;
		end&lt;br /&gt;
		return tostring(root)&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.render( frame )&lt;br /&gt;
	autoscaledimages = false&lt;br /&gt;
	nonautoscaledimages = false&lt;br /&gt;
&lt;br /&gt;
	local check = require(&amp;#039;Module:Check for unknown parameters&amp;#039;)._check&lt;br /&gt;
	local tracking = check({&lt;br /&gt;
		[&amp;#039;unknown&amp;#039;] = frame:expandTemplate{&lt;br /&gt;
			title = &amp;#039;main other&amp;#039;,&lt;br /&gt;
			args = {&amp;#039;[[Category:Pages using multiple image with unknown parameters|_VALUE_ ]]&amp;#039;}&lt;br /&gt;
		},&lt;br /&gt;
		[&amp;#039;preview&amp;#039;] = &amp;#039;Page using [[Template:Multiple image]] with unknown parameter &amp;quot;_VALUE_&amp;quot;&amp;#039;,&lt;br /&gt;
		[&amp;#039;ignoreblank&amp;#039;] = &amp;#039;y&amp;#039;,&lt;br /&gt;
		regexp1 = &amp;#039;image%d+&amp;#039;,&lt;br /&gt;
		regexp2 = &amp;#039;width%d+&amp;#039;,&lt;br /&gt;
		regexp3 = &amp;#039;height%d+&amp;#039;,&lt;br /&gt;
		regexp4 = &amp;#039;class%d+&amp;#039;,&lt;br /&gt;
		regexp5 = &amp;#039;alt%d+&amp;#039;,&lt;br /&gt;
		regexp6 = &amp;#039;link%d+&amp;#039;,&lt;br /&gt;
		regexp7 = &amp;#039;thumbtime%d+&amp;#039;,&lt;br /&gt;
		regexp8 = &amp;#039;caption%d+&amp;#039;,&lt;br /&gt;
		&amp;#039;align&amp;#039;, &amp;#039;direction&amp;#039;, &amp;#039;background color&amp;#039;, &amp;#039;header_background&amp;#039;, &lt;br /&gt;
		&amp;#039;header_align&amp;#039;, &amp;#039;header&amp;#039;, &amp;#039;width&amp;#039;, &amp;#039;total_width&amp;#039;, &lt;br /&gt;
		&amp;#039;caption_align&amp;#039;, &amp;#039;footer_background&amp;#039;, &amp;#039;footer_align&amp;#039;, &amp;#039;footer&amp;#039;, &lt;br /&gt;
		&amp;#039;perrow&amp;#039;, &amp;#039;title&amp;#039;, &amp;#039;image_gap&amp;#039;, &amp;#039;border&amp;#039;, &amp;#039;image_style&amp;#039; &lt;br /&gt;
	}, frame:getParent().args)&lt;br /&gt;
	&lt;br /&gt;
	return frame:extensionTag {name = &amp;#039;templatestyles&amp;#039;, args = {src = &amp;#039;Multiple image/styles.css&amp;#039;, wrapper = &amp;quot;.tmulti&amp;quot;}}&lt;br /&gt;
		.. renderMultipleImages( frame )&lt;br /&gt;
		.. (autoscaledimages and &amp;#039;[[Category:Pages using multiple image with auto scaled images]]&amp;#039; or &amp;#039;&amp;#039;)&lt;br /&gt;
		.. (nonautoscaledimages and &amp;#039;[[Category:Pages using multiple image with manual scaled images]]&amp;#039; or &amp;#039;&amp;#039;)&lt;br /&gt;
		.. tracking&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p[&amp;#039;&amp;#039;] = function( frame ) return p.render( frame:newChild{title = frame:getTitle()} ) end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Zackmann08</name></author>
	</entry>
</feed>