<?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%3AInfobox_video_game_awards</id>
	<title>Module:Infobox video game awards - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AInfobox_video_game_awards"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Infobox_video_game_awards&amp;action=history"/>
	<updated>2026-06-08T02:39:00Z</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:Infobox_video_game_awards&amp;diff=137013&amp;oldid=prev</id>
		<title>imported&gt;WOSlinker: use require(&#039;strict&#039;) instead of require(&#039;Module:No globals&#039;)</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Infobox_video_game_awards&amp;diff=137013&amp;oldid=prev"/>
		<updated>2022-10-21T21:22:43Z</updated>

		<summary type="html">&lt;p&gt;use require(&amp;#039;strict&amp;#039;) instead of require(&amp;#039;Module:No globals&amp;#039;)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require(&amp;#039;strict&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function award(builder, text)&lt;br /&gt;
	builder:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
		:attr(&amp;#039;class&amp;#039;, &amp;#039;dt&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;font-weight&amp;#039;, &amp;#039;bold&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
		:wikitext(text)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function won(builder, text)&lt;br /&gt;
	builder:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;background-color&amp;#039;, &amp;#039;#9F9&amp;#039;)&lt;br /&gt;
		:wikitext(text)&lt;br /&gt;
end			&lt;br /&gt;
&lt;br /&gt;
local function nom(builder, text)&lt;br /&gt;
	builder:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;background-color&amp;#039;, &amp;#039;#FDD&amp;#039;)&lt;br /&gt;
		:wikitext(text)&lt;br /&gt;
end	&lt;br /&gt;
&lt;br /&gt;
local function row(builder, args, i)&lt;br /&gt;
	builder = builder:tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;background-color&amp;#039;, &amp;#039;#DDF&amp;#039;)&lt;br /&gt;
	award(builder, args[&amp;#039;award&amp;#039; .. i])&lt;br /&gt;
	won(builder, args[&amp;#039;award&amp;#039; .. i ..&amp;#039;W&amp;#039;] or 0)&lt;br /&gt;
	nom(builder, args[&amp;#039;award&amp;#039; .. i ..&amp;#039;N&amp;#039;] or 0)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	-- Main module code goes here.&lt;br /&gt;
	local ret, temp&lt;br /&gt;
	local totalW, totalN = 0, 0&lt;br /&gt;
	&lt;br /&gt;
-- Award list begin&lt;br /&gt;
	for i = 1, 99 do&lt;br /&gt;
		if args[&amp;#039;award&amp;#039; ..i] then&lt;br /&gt;
			temp = &amp;#039;&amp;#039;&lt;br /&gt;
			break&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if temp then&lt;br /&gt;
		temp = mw.html.create(&amp;#039;table&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;class&amp;#039;, &amp;#039;collapsible collapsed&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;width&amp;#039;, &amp;#039;100%&amp;#039;)&lt;br /&gt;
			&lt;br /&gt;
		temp:tag(&amp;#039;tr&amp;#039;):tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;colspan&amp;#039;, &amp;#039;3&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;background-color&amp;#039;, &amp;#039;#D9E8FF&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
			:wikitext(&amp;#039;Accolades&amp;#039;)&lt;br /&gt;
			&lt;br /&gt;
		temp:tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;background-color&amp;#039;, &amp;#039;#D9E8FF&amp;#039;)&lt;br /&gt;
				:tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;Award&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
				:done()&lt;br /&gt;
			:tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;background-color&amp;#039;, &amp;#039;#cec&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;text-size&amp;#039;, &amp;#039;0.9em&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;width&amp;#039;, &amp;#039;5.8em&amp;#039;)	&lt;br /&gt;
				:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;Won&amp;#039;)&lt;br /&gt;
				:done()&lt;br /&gt;
			:tag(&amp;#039;th&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;background-color&amp;#039;, &amp;#039;#fcd&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;text-size&amp;#039;, &amp;#039;0.9em&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;width&amp;#039;, &amp;#039;5.8em&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;Nominated&amp;#039;)&lt;br /&gt;
				:done()&lt;br /&gt;
				&lt;br /&gt;
		for i = 1, 99 do&lt;br /&gt;
			if args[&amp;#039;award&amp;#039; .. i] then&lt;br /&gt;
				row(temp, args, i)&lt;br /&gt;
				totalW = totalW + (args[&amp;#039;award&amp;#039; .. i ..&amp;#039;W&amp;#039;] or 0)&lt;br /&gt;
				totalN = totalN + (args[&amp;#039;award&amp;#039; .. i ..&amp;#039;N&amp;#039;] or 0)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
-- Award list end&lt;br /&gt;
&lt;br /&gt;
	ret = mw.html.create(&amp;#039;table&amp;#039;)&lt;br /&gt;
		:attr(&amp;#039;class&amp;#039;, &amp;#039;infobox&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;width&amp;#039;, &amp;#039;26em&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;font-size&amp;#039;, &amp;#039;90%&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;align&amp;#039;)&lt;br /&gt;
		&lt;br /&gt;
	ret:tag(&amp;#039;caption&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;font-size&amp;#039;, &amp;#039;9pt&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;font-weight&amp;#039;, &amp;#039;bold&amp;#039;)&lt;br /&gt;
		:wikitext(&amp;#039;List of accolades&amp;#039; .. (args.name and (&amp;#039; received by &amp;lt;i&amp;gt;&amp;#039; .. args.name .. &amp;#039;&amp;lt;/i&amp;gt;&amp;#039;) or &amp;#039;&amp;#039;))&lt;br /&gt;
&lt;br /&gt;
	if args.image then&lt;br /&gt;
		ret:tag(&amp;#039;tr&amp;#039;):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;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
			:wikitext(string.format(&amp;#039;%s%s&amp;#039;,&lt;br /&gt;
				require(&amp;#039;Module:InfoboxImage&amp;#039;).InfoboxImage{args = {&lt;br /&gt;
					image = args.image,&lt;br /&gt;
					sizedefault = &amp;#039;frameless&amp;#039;,&lt;br /&gt;
					size = args[&amp;#039;image_size&amp;#039;],&lt;br /&gt;
					alt = args.alt,&lt;br /&gt;
				}},&lt;br /&gt;
				args.caption and (&amp;#039;&amp;lt;div style=&amp;quot;display: block;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;#039; .. args.caption) or &amp;#039;&amp;#039;&lt;br /&gt;
			))&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if temp then&lt;br /&gt;
		ret:tag(&amp;#039;tr&amp;#039;):tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;colspan&amp;#039;, &amp;#039;3&amp;#039;)&lt;br /&gt;
			:wikitext(tostring(temp))&lt;br /&gt;
&lt;br /&gt;
	end&lt;br /&gt;
		&lt;br /&gt;
	if args.totals ~= &amp;#039;no&amp;#039; then&lt;br /&gt;
		local totalW = args.awards or totalW&lt;br /&gt;
		local totalN = args.nominations or totalN&lt;br /&gt;
		&lt;br /&gt;
		ret:tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;background-color&amp;#039;, &amp;#039;#d9e8ff&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;border-spacing&amp;#039;, &amp;#039;4px 2px 2px&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;font-weight&amp;#039;, &amp;#039;bold&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;class&amp;#039;, &amp;#039;dt&amp;#039;)&lt;br /&gt;
			: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;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;Total number of awards and nominations&amp;#039;)&lt;br /&gt;
			&lt;br /&gt;
		ret:tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;font-weight&amp;#039;, &amp;#039;bold&amp;#039;)&lt;br /&gt;
			:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;background-color&amp;#039;, &amp;#039;#9F9&amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;Total&amp;#039;)&lt;br /&gt;
				:done()&lt;br /&gt;
			:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;background-color&amp;#039;, &amp;#039;#9F9&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;width&amp;#039;, &amp;#039;5.9em&amp;#039;)&lt;br /&gt;
				:wikitext(totalW)&lt;br /&gt;
				:done()&lt;br /&gt;
			:tag(&amp;#039;td&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;background-color&amp;#039;, &amp;#039;#FDD&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;width&amp;#039;, &amp;#039;5.9em&amp;#039;)&lt;br /&gt;
				:wikitext(totalN)&lt;br /&gt;
				:done()&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if args.reflink ~= &amp;#039;no&amp;#039; then&lt;br /&gt;
		ret:tag(&amp;#039;tr&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;font-size&amp;#039;, &amp;#039;smaller&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;background-color&amp;#039;, &amp;#039;#d9e8ff&amp;#039;)&lt;br /&gt;
			: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;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;text-align&amp;#039;, &amp;#039;center&amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;[[#References|Footnotes]]&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return ret&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;WOSlinker</name></author>
	</entry>
</feed>