<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AIce_hockey_box%2Fsandbox</id>
	<title>Module:Ice hockey box/sandbox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AIce_hockey_box%2Fsandbox"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Ice_hockey_box/sandbox&amp;action=history"/>
	<updated>2026-05-24T13:49:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Ice_hockey_box/sandbox&amp;diff=136847&amp;oldid=prev</id>
		<title>imported&gt;Frietjes at 16:36, 13 November 2016</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Ice_hockey_box/sandbox&amp;diff=136847&amp;oldid=prev"/>
		<updated>2016-11-13T16:36:43Z</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;-- implements [[template:IceHockeybox]]&lt;br /&gt;
local p = {}&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 mysplit(s)&lt;br /&gt;
	-- Change &amp;lt;br&amp;gt; tags to slashes&lt;br /&gt;
	s = mw.ustring.gsub(s or &amp;#039;&amp;#039;, &amp;#039;&amp;lt;[\/%s]*[Bb][Rr][^&amp;lt;&amp;gt;]*&amp;gt;&amp;#039;, &amp;#039; / &amp;#039;)&lt;br /&gt;
	-- Split into a table&lt;br /&gt;
	s = mw.text.split(s .. &amp;#039; / &amp;#039;, &amp;#039;[%s]*/[%s]*&amp;#039;)&lt;br /&gt;
	-- Remove empty rows&lt;br /&gt;
	local t = {}&lt;br /&gt;
	for k=1,#s do&lt;br /&gt;
		if isnotempty(s[k]) then&lt;br /&gt;
			table.insert(t, s[k])&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return t&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function scoringtable(g1, g2, p)&lt;br /&gt;
	local errorcats = &amp;#039;&amp;#039;&lt;br /&gt;
	local root = &amp;#039;&amp;#039;&lt;br /&gt;
	-- Split into tables&lt;br /&gt;
	local gt1 = mysplit(g1)&lt;br /&gt;
	local gt2 = mysplit(g2)&lt;br /&gt;
	local pt  = mysplit(p)&lt;br /&gt;
	-- Align goals with scores in progression&lt;br /&gt;
	local score1, score2 = 0, 0&lt;br /&gt;
	for k = 1,#pt do&lt;br /&gt;
		local s1 = tonumber(mw.ustring.gsub(pt[k] or &amp;#039;&amp;#039;, &amp;#039;^[%s]*([0-9][0-9]*)[^0-9][^0-9]*([0-9][0-9]*)[%s]*$&amp;#039;, &amp;#039;%1&amp;#039;) or &amp;#039;-1&amp;#039;) or -1&lt;br /&gt;
		local s2 = tonumber(mw.ustring.gsub(pt[k] or &amp;#039;&amp;#039;, &amp;#039;^[%s]*([0-9][0-9]*)[^0-9][^0-9]*([0-9][0-9]*)[%s]*$&amp;#039;, &amp;#039;%2&amp;#039;) or &amp;#039;-1&amp;#039;) or -1&lt;br /&gt;
		if s1 == (score1 + 1) and s2 == score2 then&lt;br /&gt;
			score1 = s1&lt;br /&gt;
			table.insert(gt2, k, &amp;#039;&amp;#039;)&lt;br /&gt;
		elseif s2 == (score2 + 1) and s1 == score1 then&lt;br /&gt;
			score2 = s2&lt;br /&gt;
			table.insert(gt1, k, &amp;#039;&amp;#039;)&lt;br /&gt;
		else&lt;br /&gt;
			errorcats = errorcats .. &amp;#039;[[Category:Pages using icehockeybox with improperly formatted progression or goals]]&amp;#039;&lt;br /&gt;
			errorcats = errorcats .. &amp;#039;&amp;lt;span style=&amp;quot;display:none&amp;quot;&amp;gt;E S1 = &amp;#039; .. s1 .. &amp;#039; S2 = &amp;#039; .. s2 .. &amp;#039; GT1 = &amp;#039; .. (gt1[k] or &amp;#039;&amp;#039;) .. &amp;#039; GT2 = &amp;#039; .. (gt2[k] or &amp;#039;&amp;#039;) .. &amp;#039;&amp;lt;/span&amp;gt;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- Now build the score table&lt;br /&gt;
	for k=1,#pt do&lt;br /&gt;
		if k == 1 then&lt;br /&gt;
			root = mw.html.create(&amp;#039;table&amp;#039;)&lt;br /&gt;
			root&lt;br /&gt;
				:attr(&amp;#039;cellspacing&amp;#039;, &amp;#039;0&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;width&amp;#039;, &amp;#039;100%&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
		local row = root:tag(&amp;#039;tr&amp;#039;):css(&amp;#039;text-align&amp;#039;,&amp;#039;top&amp;#039;)&lt;br /&gt;
		row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;text-align&amp;#039;,&amp;#039;right&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;39%&amp;#039;)&lt;br /&gt;
			:wikitext(gt1[k] or &amp;#039;&amp;#039;)&lt;br /&gt;
		row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;text-align&amp;#039;,&amp;#039;center&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;22%&amp;#039;)&lt;br /&gt;
			:wikitext(pt[k] or &amp;#039;&amp;#039;)&lt;br /&gt;
		row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;text-align&amp;#039;,&amp;#039;left&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;39%&amp;#039;)&lt;br /&gt;
			:wikitext(gt2[k] or &amp;#039;&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return tostring(root) .. errorcats&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.box( frame )&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
	local res = &amp;#039;&amp;#039;&lt;br /&gt;
	local id = args[&amp;#039;id&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	id = mw.ustring.gsub(id,&amp;#039;^&amp;quot;(.-)&amp;quot;$&amp;#039;, &amp;#039;%1&amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	local root = mw.html.create(&amp;#039;table&amp;#039;)&lt;br /&gt;
	root&lt;br /&gt;
		:attr(&amp;#039;cellspacing&amp;#039;, &amp;#039;0&amp;#039;)&lt;br /&gt;
		:attr(&amp;#039;id&amp;#039;, id )&lt;br /&gt;
		:css(&amp;#039;width&amp;#039;, &amp;#039;100%&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;background-color&amp;#039;, args[&amp;#039;bg&amp;#039;] or &amp;#039;#eeeeee&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;vevent&amp;#039;)&lt;br /&gt;
	local row = root:tag(&amp;#039;tr&amp;#039;):addClass(&amp;#039;summary&amp;#039;)&lt;br /&gt;
	-- Date and time&lt;br /&gt;
	local cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;width&amp;#039;, &amp;#039;15%&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;font-size&amp;#039;, &amp;#039;85%&amp;#039;)&lt;br /&gt;
	cell:wikitext(args[&amp;#039;date&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
	cell:wikitext(isnotempty(args[&amp;#039;time&amp;#039;]) and &amp;#039;&amp;lt;br&amp;gt;&amp;#039; .. args[&amp;#039;time&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
	-- Team 1&lt;br /&gt;
	cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;width&amp;#039;, &amp;#039;25%&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;text-align&amp;#039;, &amp;#039;right&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;vcard attendee&amp;#039;)&lt;br /&gt;
	cell:tag(&amp;#039;span&amp;#039;):addClass(&amp;#039;fn org&amp;#039;):wikitext(args[&amp;#039;team1&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
	-- Score&lt;br /&gt;
	cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;width&amp;#039;, &amp;#039;15%&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
	if isnotempty(args[&amp;#039;score&amp;#039;]) then&lt;br /&gt;
		cell:tag(&amp;#039;b&amp;#039;):wikitext(args[&amp;#039;score&amp;#039;])&lt;br /&gt;
		cell:wikitext(&amp;#039;&amp;lt;br&amp;gt;&amp;#039;)&lt;br /&gt;
		if isnotempty(args[&amp;#039;periods&amp;#039;]) then&lt;br /&gt;
			cell:tag(&amp;#039;small&amp;#039;):wikitext(args[&amp;#039;periods&amp;#039;])&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	-- Team 2&lt;br /&gt;
	cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;width&amp;#039;, &amp;#039;25%&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;text-align&amp;#039;, &amp;#039;left&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;vcard attendee&amp;#039;)&lt;br /&gt;
	cell:tag(&amp;#039;span&amp;#039;):addClass(&amp;#039;fn org&amp;#039;):wikitext(args[&amp;#039;team2&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
	-- Stadium and attendance&lt;br /&gt;
	cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;font-size&amp;#039;, &amp;#039;85%&amp;#039;)&lt;br /&gt;
	if isnotempty(args[&amp;#039;stadium&amp;#039;]) then&lt;br /&gt;
		cell:tag(&amp;#039;span&amp;#039;):addClass(&amp;#039;location&amp;#039;):wikitext(args[&amp;#039;stadium&amp;#039;])&lt;br /&gt;
	end&lt;br /&gt;
	if isnotempty(args[&amp;#039;attendance&amp;#039;]) then&lt;br /&gt;
		cell:wikitext(&amp;#039;&amp;lt;br&amp;gt;&amp;#039;)&lt;br /&gt;
		cell:tag(&amp;#039;i&amp;#039;):wikitext(&amp;#039;Attendance:&amp;#039;)&lt;br /&gt;
		cell:wikitext(&amp;#039; &amp;#039; .. args[&amp;#039;attendance&amp;#039;])&lt;br /&gt;
	end&lt;br /&gt;
	res = res .. tostring(root)&lt;br /&gt;
&lt;br /&gt;
	if isnotempty(args[&amp;#039;score&amp;#039;]) then&lt;br /&gt;
		root = mw.html.create(&amp;#039;table&amp;#039;)&lt;br /&gt;
		root&lt;br /&gt;
			:addClass(&amp;#039;collapsible collapsed&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;cellspacing&amp;#039;, &amp;#039;0&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;100%&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;background-color&amp;#039;, args[&amp;#039;bg&amp;#039;] or &amp;#039;#eeeeee&amp;#039;)&lt;br /&gt;
		cell = root:tag(&amp;#039;tr&amp;#039;):tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
		cell:attr(&amp;#039;colspan&amp;#039;, &amp;#039;5&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;style&amp;#039;, &amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;font-size&amp;#039;, &amp;#039;85%&amp;#039;)&lt;br /&gt;
		if isnotempty(args[&amp;#039;reference&amp;#039;]) then&lt;br /&gt;
			cell:tag(&amp;#039;b&amp;#039;):wikitext(&amp;#039;[&amp;#039; .. args[&amp;#039;reference&amp;#039;] .. &amp;#039; Game reference]&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
		-- Empty spacing&lt;br /&gt;
		row = root:tag(&amp;#039;tr&amp;#039;):css(&amp;#039;font-size&amp;#039;, &amp;#039;85%&amp;#039;)&lt;br /&gt;
		cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;rowspan&amp;#039;, &amp;#039;4&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;15%&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;top&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
		-- Goalies&lt;br /&gt;
		cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;25%&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;top&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;text-align&amp;#039;, &amp;#039;right&amp;#039;)&lt;br /&gt;
			:wikitext(args[&amp;#039;goalie1&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
		cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;15%&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;top&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
		if isnotempty(args[&amp;#039;goalie1&amp;#039;]) or isnotempty(args[&amp;#039;goalie2&amp;#039;]) then&lt;br /&gt;
			cell:tag(&amp;#039;i&amp;#039;):wikitext(&amp;#039;Goalies&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
		cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;25%&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;top&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;text-align&amp;#039;, &amp;#039;left&amp;#039;)&lt;br /&gt;
			:wikitext(args[&amp;#039;goalie2&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
		-- Officials and linesmen&lt;br /&gt;
		cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;rowspan&amp;#039;, &amp;#039;4&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;top&amp;#039;)&lt;br /&gt;
		if isnotempty(args[&amp;#039;official&amp;#039;]) then&lt;br /&gt;
			if isnotempty(args[&amp;#039;official2&amp;#039;]) then&lt;br /&gt;
				cell:tag(&amp;#039;i&amp;#039;):wikitext(&amp;#039;Referees:&amp;#039;)&lt;br /&gt;
				cell:wikitext(&amp;#039;&amp;lt;br&amp;gt;&amp;#039; .. args[&amp;#039;official&amp;#039;] .. &amp;#039;&amp;lt;br&amp;gt;&amp;#039; .. args[&amp;#039;official2&amp;#039;])&lt;br /&gt;
			else&lt;br /&gt;
				cell:tag(&amp;#039;i&amp;#039;):wikitext(&amp;#039;Referee:&amp;#039;)&lt;br /&gt;
				cell:wikitext(&amp;#039;&amp;lt;br&amp;gt;&amp;#039; .. args[&amp;#039;official&amp;#039;])&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		if isnotempty(args[&amp;#039;linesman&amp;#039;]) then&lt;br /&gt;
			cell:wikitext(&amp;#039;&amp;lt;br&amp;gt;&amp;#039;)&lt;br /&gt;
			if isnotempty(args[&amp;#039;linesman2&amp;#039;]) then&lt;br /&gt;
				cell:tag(&amp;#039;i&amp;#039;):wikitext(&amp;#039;Linesmen:&amp;#039;)&lt;br /&gt;
				cell:wikitext(&amp;#039;&amp;lt;br&amp;gt;&amp;#039; .. args[&amp;#039;linesman&amp;#039;] .. &amp;#039;&amp;lt;br&amp;gt;&amp;#039; .. args[&amp;#039;linesman2&amp;#039;])&lt;br /&gt;
			else&lt;br /&gt;
				cell:tag(&amp;#039;i&amp;#039;):wikitext(&amp;#039;Linesman:&amp;#039;)&lt;br /&gt;
				cell:wikitext(&amp;#039;&amp;lt;br&amp;gt;&amp;#039; .. args[&amp;#039;linesman&amp;#039;])&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		-- Goals and progression&lt;br /&gt;
		row = root:tag(&amp;#039;tr&amp;#039;):css(&amp;#039;font-size&amp;#039;, &amp;#039;85%&amp;#039;)&lt;br /&gt;
		cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;colspan&amp;#039;, &amp;#039;3&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;65%&amp;#039;)&lt;br /&gt;
			:wikitext(&lt;br /&gt;
				scoringtable(args[&amp;#039;goals1&amp;#039;] or &amp;#039;&amp;#039;, &lt;br /&gt;
							args[&amp;#039;goals2&amp;#039;] or &amp;#039;&amp;#039;,&lt;br /&gt;
							args[&amp;#039;progression&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
					)&lt;br /&gt;
		-- Penalties&lt;br /&gt;
		row = root:tag(&amp;#039;tr&amp;#039;):css(&amp;#039;font-size&amp;#039;, &amp;#039;85%&amp;#039;)&lt;br /&gt;
		cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;25%&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;top&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;text-align&amp;#039;, &amp;#039;right&amp;#039;)&lt;br /&gt;
		if isnotempty(args[&amp;#039;penalties1&amp;#039;]) then&lt;br /&gt;
			cell:tag(&amp;#039;i&amp;#039;):wikitext(args[&amp;#039;penalties1&amp;#039;] .. &amp;#039; min&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
		cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;15%&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;top&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
		if isnotempty(args[&amp;#039;penalties1&amp;#039;]) or isnotempty(args[&amp;#039;penalties2&amp;#039;]) then&lt;br /&gt;
			cell:tag(&amp;#039;i&amp;#039;):wikitext(&amp;#039;Penalties&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
		cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;25%&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;top&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;text-align&amp;#039;, &amp;#039;left&amp;#039;)&lt;br /&gt;
		if isnotempty(args[&amp;#039;penalties2&amp;#039;]) then&lt;br /&gt;
			cell:tag(&amp;#039;i&amp;#039;):wikitext(args[&amp;#039;penalties2&amp;#039;] .. &amp;#039; min&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
		-- Shots&lt;br /&gt;
		row = root:tag(&amp;#039;tr&amp;#039;):css(&amp;#039;font-size&amp;#039;, &amp;#039;85%&amp;#039;)&lt;br /&gt;
		cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;25%&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;top&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;text-align&amp;#039;, &amp;#039;right&amp;#039;)&lt;br /&gt;
		if isnotempty(args[&amp;#039;shots1&amp;#039;]) then&lt;br /&gt;
			cell:tag(&amp;#039;i&amp;#039;):wikitext(args[&amp;#039;shots1&amp;#039;])&lt;br /&gt;
		end&lt;br /&gt;
		cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;15%&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;top&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
		if isnotempty(args[&amp;#039;shots1&amp;#039;]) or isnotempty(args[&amp;#039;shots2&amp;#039;]) then&lt;br /&gt;
			cell:tag(&amp;#039;i&amp;#039;):wikitext(&amp;#039;Shots&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
		cell = row:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;25%&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;top&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;text-align&amp;#039;, &amp;#039;left&amp;#039;)&lt;br /&gt;
		if isnotempty(args[&amp;#039;shots2&amp;#039;]) then&lt;br /&gt;
			cell:tag(&amp;#039;i&amp;#039;):wikitext(args[&amp;#039;shots2&amp;#039;])&lt;br /&gt;
		end&lt;br /&gt;
		res = res .. tostring(root)&lt;br /&gt;
	end&lt;br /&gt;
	if isnotempty(args[&amp;#039;note&amp;#039;]) then&lt;br /&gt;
		root = mw.html.create(&amp;#039;table&amp;#039;)&lt;br /&gt;
		root&lt;br /&gt;
			:attr(&amp;#039;cellspacing&amp;#039;, &amp;#039;0&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;100%&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;background-color&amp;#039;, args[&amp;#039;bg&amp;#039;] or &amp;#039;#eeeeee&amp;#039;)&lt;br /&gt;
		cell = root:tag(&amp;#039;tr&amp;#039;):tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
		cell&lt;br /&gt;
			:css(&amp;#039;text-align&amp;#039;, &amp;#039;left&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;font-size&amp;#039;, &amp;#039;100%&amp;#039;)&lt;br /&gt;
			:tag(&amp;#039;i&amp;#039;):wikitext(args[&amp;#039;note&amp;#039;])&lt;br /&gt;
		res = res .. tostring(root)&lt;br /&gt;
	end&lt;br /&gt;
	return res&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Frietjes</name></author>
	</entry>
</feed>