<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://staging.twogpedia.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AAllResults</id>
	<title>Module:AllResults - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://staging.twogpedia.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AAllResults"/>
	<link rel="alternate" type="text/html" href="https://staging.twogpedia.com/index.php?title=Module:AllResults&amp;action=history"/>
	<updated>2026-05-13T05:44:10Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://staging.twogpedia.com/index.php?title=Module:AllResults&amp;diff=8086&amp;oldid=prev</id>
		<title>Couchor at 20:11, 12 November 2023</title>
		<link rel="alternate" type="text/html" href="https://staging.twogpedia.com/index.php?title=Module:AllResults&amp;diff=8086&amp;oldid=prev"/>
		<updated>2023-11-12T20:11:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://staging.twogpedia.com/index.php?title=Module:AllResults&amp;amp;diff=8086&amp;amp;oldid=7719&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Couchor</name></author>
	</entry>
	<entry>
		<id>https://staging.twogpedia.com/index.php?title=Module:AllResults&amp;diff=7719&amp;oldid=prev</id>
		<title>Couchor at 22:08, 24 October 2023</title>
		<link rel="alternate" type="text/html" href="https://staging.twogpedia.com/index.php?title=Module:AllResults&amp;diff=7719&amp;oldid=prev"/>
		<updated>2023-10-24T22:08:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:08, 24 October 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l201&quot;&gt;Line 201:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 201:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local dateTd = mw.html.create(&amp;#039;td&amp;#039;):wikitext(stringifyDate(result.date) .. &amp;#039; &amp;#039;):node(mw.html.create(&amp;#039;abbr&amp;#039;):attr(&amp;#039;title&amp;#039;, &amp;#039;Coordinated Universal Time&amp;#039;):wikitext(&amp;#039;UTC&amp;#039;))&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local dateTd = mw.html.create(&amp;#039;td&amp;#039;):wikitext(stringifyDate(result.date) .. &amp;#039; &amp;#039;):node(mw.html.create(&amp;#039;abbr&amp;#039;):attr(&amp;#039;title&amp;#039;, &amp;#039;Coordinated Universal Time&amp;#039;):wikitext(&amp;#039;UTC&amp;#039;))&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local scoreTd = mw.html.create(&amp;#039;td&amp;#039;):addClass(&amp;#039;tc&amp;#039;):wikitext(score .. &amp;#039;:&amp;#039; .. opponentScore)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local scoreTd = mw.html.create(&amp;#039;td&amp;#039;):addClass(&amp;#039;tc&amp;#039;):wikitext(score .. &amp;#039;:&amp;#039; .. opponentScore)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local vsTd = mw.html.create(&#039;td&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;):addClass(&#039;tc&lt;/del&gt;&#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local vsTd = mw.html.create(&#039;td&#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			if team then vsTd:node(mw.html.create(&#039;div&#039;):attr(&#039;style&#039;, &#039;display: flex; gap: 0.2rem; align-items: center;&#039;):node(getTeamLogo(opponent, game, &#039;20x20px&#039;)):wikitext(&#039;[[&#039; .. opponent .. &#039;]]&#039;)) else vsTd:wikitext(&#039;[[&#039; .. opponent .. &#039;]]&#039;) end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			if team then vsTd:node(mw.html.create(&#039;div&#039;):attr(&#039;style&#039;, &#039;display: flex; gap: 0.2rem; align-items&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;: center; justify-content&lt;/ins&gt;: center;&#039;):node(getTeamLogo(opponent, game, &#039;20x20px&#039;)):wikitext(&#039;[[&#039; .. opponent .. &#039;]]&#039;)) else vsTd:wikitext(&#039;[[&#039; .. opponent .. &#039;]]&#039;) end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local vodTd = mw.html.create(&amp;#039;td&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local vodTd = mw.html.create(&amp;#039;td&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local resultRow = mw.html.create(&amp;#039;tr&amp;#039;):addClass(&amp;#039;bodyRow&amp;#039;):node(dateTd):node(scoreTd):node(vsTd):node(vodTd)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local resultRow = mw.html.create(&amp;#039;tr&amp;#039;):addClass(&amp;#039;bodyRow&amp;#039;):node(dateTd):node(scoreTd):node(vsTd):node(vodTd)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb-wiki_:diff:1.41:old-7718:rev-7719:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Couchor</name></author>
	</entry>
	<entry>
		<id>https://staging.twogpedia.com/index.php?title=Module:AllResults&amp;diff=7718&amp;oldid=prev</id>
		<title>Couchor at 22:06, 24 October 2023</title>
		<link rel="alternate" type="text/html" href="https://staging.twogpedia.com/index.php?title=Module:AllResults&amp;diff=7718&amp;oldid=prev"/>
		<updated>2023-10-24T22:06:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:06, 24 October 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l201&quot;&gt;Line 201:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 201:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local dateTd = mw.html.create(&amp;#039;td&amp;#039;):wikitext(stringifyDate(result.date) .. &amp;#039; &amp;#039;):node(mw.html.create(&amp;#039;abbr&amp;#039;):attr(&amp;#039;title&amp;#039;, &amp;#039;Coordinated Universal Time&amp;#039;):wikitext(&amp;#039;UTC&amp;#039;))&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local dateTd = mw.html.create(&amp;#039;td&amp;#039;):wikitext(stringifyDate(result.date) .. &amp;#039; &amp;#039;):node(mw.html.create(&amp;#039;abbr&amp;#039;):attr(&amp;#039;title&amp;#039;, &amp;#039;Coordinated Universal Time&amp;#039;):wikitext(&amp;#039;UTC&amp;#039;))&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local scoreTd = mw.html.create(&amp;#039;td&amp;#039;):addClass(&amp;#039;tc&amp;#039;):wikitext(score .. &amp;#039;:&amp;#039; .. opponentScore)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local scoreTd = mw.html.create(&amp;#039;td&amp;#039;):addClass(&amp;#039;tc&amp;#039;):wikitext(score .. &amp;#039;:&amp;#039; .. opponentScore)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local vsTd = mw.html.create(&#039;td&#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local vsTd = mw.html.create(&#039;td&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;):addClass(&#039;tc&lt;/ins&gt;&#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			if team then vsTd:node(mw.html.create(&amp;#039;div&amp;#039;):attr(&amp;#039;style&amp;#039;, &amp;#039;display: flex; gap: 0.2rem; align-items: center;&amp;#039;):node(getTeamLogo(opponent, game, &amp;#039;20x20px&amp;#039;)):wikitext(&amp;#039;[[&amp;#039; .. opponent .. &amp;#039;]]&amp;#039;)) else vsTd:wikitext(&amp;#039;[[&amp;#039; .. opponent .. &amp;#039;]]&amp;#039;) end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			if team then vsTd:node(mw.html.create(&amp;#039;div&amp;#039;):attr(&amp;#039;style&amp;#039;, &amp;#039;display: flex; gap: 0.2rem; align-items: center;&amp;#039;):node(getTeamLogo(opponent, game, &amp;#039;20x20px&amp;#039;)):wikitext(&amp;#039;[[&amp;#039; .. opponent .. &amp;#039;]]&amp;#039;)) else vsTd:wikitext(&amp;#039;[[&amp;#039; .. opponent .. &amp;#039;]]&amp;#039;) end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local vodTd = mw.html.create(&amp;#039;td&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			local vodTd = mw.html.create(&amp;#039;td&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb-wiki_:diff:1.41:old-7707:rev-7718:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Couchor</name></author>
	</entry>
	<entry>
		<id>https://staging.twogpedia.com/index.php?title=Module:AllResults&amp;diff=7707&amp;oldid=prev</id>
		<title>Couchor: Created page with &quot;local getArgs = require(&#039;Module:Arguments&#039;).getArgs local cargo = mw.ext.cargo local Func = require(&#039;Module:Functions&#039;) local getTeamLogo = Func.getTeamLogo local stringifyDate = Func.stringifyDate local prizeToString = Func.prizeToString local Flags = require(&#039;Module:Flags&#039;)  local p = {}  local currentDate = os.date(&#039;%Y-%m-%d&#039;)  function p.main(frame) 	local args = getArgs(frame) 	if not args.page then return end 	local currentPage = args.page 	local team = args.team...&quot;</title>
		<link rel="alternate" type="text/html" href="https://staging.twogpedia.com/index.php?title=Module:AllResults&amp;diff=7707&amp;oldid=prev"/>
		<updated>2023-10-24T20:52:22Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs local cargo = mw.ext.cargo local Func = require(&amp;#039;Module:Functions&amp;#039;) local getTeamLogo = Func.getTeamLogo local stringifyDate = Func.stringifyDate local prizeToString = Func.prizeToString local Flags = require(&amp;#039;Module:Flags&amp;#039;)  local p = {}  local currentDate = os.date(&amp;#039;%Y-%m-%d&amp;#039;)  function p.main(frame) 	local args = getArgs(frame) 	if not args.page then return end 	local currentPage = args.page 	local team = args.team...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
local cargo = mw.ext.cargo&lt;br /&gt;
local Func = require(&amp;#039;Module:Functions&amp;#039;)&lt;br /&gt;
local getTeamLogo = Func.getTeamLogo&lt;br /&gt;
local stringifyDate = Func.stringifyDate&lt;br /&gt;
local prizeToString = Func.prizeToString&lt;br /&gt;
local Flags = require(&amp;#039;Module:Flags&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local currentDate = os.date(&amp;#039;%Y-%m-%d&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	if not args.page then return end&lt;br /&gt;
	local currentPage = args.page&lt;br /&gt;
	local team = args.team&lt;br /&gt;
	&lt;br /&gt;
	local tables = &amp;#039;Participants, Tournaments&amp;#039;&lt;br /&gt;
	local fields = &amp;#039;Tournaments._pageName=_pageName, Tournaments.type=type, Tournaments.start=start, Tournaments.end=end, Tournaments.prize=prize, Tournaments.country=country, Tournaments.participants=participants, Tournaments.formatFilter=formatFilter, Tournaments.logoAll=logoAll, Tournaments.logoLight=logoLight, Tournaments.logoDark=logoDark, Tournaments.iconAll=iconAll, Tournaments.iconLight=iconLight, Tournaments.iconDark=iconDark&amp;#039;&lt;br /&gt;
	local where = team and &amp;#039;Participants.team=&amp;quot;&amp;#039; .. currentPage .. &amp;#039;&amp;quot;&amp;#039; or &amp;#039;Participants.players HOLDS &amp;quot;&amp;#039; .. currentPage .. &amp;#039;&amp;quot;&amp;#039;&lt;br /&gt;
	local cargoArgs = {&lt;br /&gt;
		join = &amp;#039;Participants._pageName=Tournaments._pageName&amp;#039;,&lt;br /&gt;
		where = where,&lt;br /&gt;
		orderBy = &amp;#039;Tournaments.end desc&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	local results = cargo.query(tables, fields, cargoArgs)&lt;br /&gt;
	local container = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
	if #results &amp;gt; 0 then&lt;br /&gt;
		local tournament = results[1]&lt;br /&gt;
		local icon = tournament.iconAll or tournament.iconLight or tournament.iconDark or tournament.logoAll or tournament.logoDark or tournament.logoLight&lt;br /&gt;
		createTable(results, container, currentPage, team)&lt;br /&gt;
	&lt;br /&gt;
		return container&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function createTable(results, container, page, team)&lt;br /&gt;
	local game = mw.text.split(page, &amp;#039;/&amp;#039;)[1]&lt;br /&gt;
	if #results &amp;gt; 0 then&lt;br /&gt;
		local monthNames = {&amp;quot;Jan&amp;quot;, &amp;quot;Feb&amp;quot;, &amp;quot;Mar&amp;quot;, &amp;quot;Apr&amp;quot;, &amp;quot;May&amp;quot;, &amp;quot;Jun&amp;quot;, &amp;quot;Jul&amp;quot;, &amp;quot;Aug&amp;quot;, &amp;quot;Sep&amp;quot;, &amp;quot;Oct&amp;quot;, &amp;quot;Nov&amp;quot;, &amp;quot;Dec&amp;quot;}&lt;br /&gt;
		&lt;br /&gt;
		local typeTh = mw.html.create(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Type&amp;#039;)&lt;br /&gt;
		local nameTh = mw.html.create(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Name&amp;#039;)&lt;br /&gt;
		local dateTh = mw.html.create(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Date&amp;#039;)&lt;br /&gt;
		local prizeTh = mw.html.create(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Prize&amp;#039;)&lt;br /&gt;
		local locationTh = mw.html.create(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Location&amp;#039;)&lt;br /&gt;
		local participantsTh = mw.html.create(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Participants&amp;#039;)&lt;br /&gt;
		local formatTh = mw.html.create(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Format&amp;#039;)&lt;br /&gt;
		local placementTh = mw.html.create(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Placement&amp;#039;)&lt;br /&gt;
		local tableHeader = mw.html.create(&amp;#039;tr&amp;#039;):addClass(&amp;#039;tournament__header&amp;#039;):node(typeTh):node(nameTh):node(dateTh):node(prizeTh):node(locationTh):node(participantsTh):node(formatTh):node(placementTh)&lt;br /&gt;
		local listTable = mw.html.create(&amp;#039;table&amp;#039;):addClass(&amp;#039;tournament__table&amp;#039;):node(tableHeader)&lt;br /&gt;
		container:node(listTable)&lt;br /&gt;
&lt;br /&gt;
		for i = 1, #results do&lt;br /&gt;
			local result = results[i]&lt;br /&gt;
			local icon = result.iconAll ~= &amp;#039;&amp;#039; and result.iconAll or result.iconLight ~= &amp;#039;&amp;#039; and result.iconLight or result.iconDark ~= &amp;#039;&amp;#039; and result.iconDark or result.logoAll ~= &amp;#039;&amp;#039; and result.logoAll or result.logoDark ~= &amp;#039;&amp;#039; and result.logoDark or result.logoLight ~= &amp;#039;&amp;#039; and result.logoLight&lt;br /&gt;
			if not icon then icon = &amp;#039;Tournament_placeholder.png&amp;#039; end&lt;br /&gt;
			&lt;br /&gt;
			local typeTd = mw.html.create(&amp;#039;td&amp;#039;)&lt;br /&gt;
			local nameTd = mw.html.create(&amp;#039;td&amp;#039;):node(mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;tournament__name&amp;#039;):wikitext(&amp;#039;[[File:&amp;#039; .. icon .. &amp;#039;|25px]]&amp;#039;):wikitext(&amp;#039;[[&amp;#039; .. result._pageName .. &amp;#039;]]&amp;#039;))&lt;br /&gt;
			local dateTd = mw.html.create(&amp;#039;td&amp;#039;)&lt;br /&gt;
			local prizeTd = mw.html.create(&amp;#039;td&amp;#039;):wikitext(&amp;#039;$&amp;#039; .. prizeToString(result.prize))&lt;br /&gt;
			local locationTd = mw.html.create(&amp;#039;td&amp;#039;)&lt;br /&gt;
			local participantsTd = mw.html.create(&amp;#039;td&amp;#039;):wikitext(result.participants)&lt;br /&gt;
			local formatTd = mw.html.create(&amp;#039;td&amp;#039;)&lt;br /&gt;
			local placementTd = mw.html.create(&amp;#039;td&amp;#039;)&lt;br /&gt;
			&lt;br /&gt;
			local tournamentType = result.type and mw.text.split(result.type, &amp;#039;,&amp;#039;)&lt;br /&gt;
			for j = 1, #tournamentType do&lt;br /&gt;
				typeTd:node(mw.html.create(&amp;#039;div&amp;#039;):wikitext(tournamentType[j]))&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			local formatList = result.formatFilter and mw.text.split(result.formatFilter, &amp;#039;,&amp;#039;) or {}&lt;br /&gt;
			for j = 1, #formatList do&lt;br /&gt;
				formatTd:node(mw.html.create(&amp;#039;div&amp;#039;):wikitext(formatList[j]))&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			local startDate = &amp;#039;TBD&amp;#039;&lt;br /&gt;
			if result.start then&lt;br /&gt;
				local year, month, day = result.start:match(&amp;quot;(%d+)-(%d+)-(%d+)&amp;quot;)&lt;br /&gt;
				local monthName = monthNames[tonumber(month)]&lt;br /&gt;
				startDate = monthName .. &amp;quot; &amp;quot; .. day .. &amp;quot;, &amp;quot; .. year&lt;br /&gt;
			end&lt;br /&gt;
			local endDate = &amp;#039;TBD&amp;#039;&lt;br /&gt;
			if result[&amp;#039;end&amp;#039;] then&lt;br /&gt;
				year, month, day = result[&amp;#039;end&amp;#039;]:match(&amp;quot;(%d+)-(%d+)-(%d+)&amp;quot;)&lt;br /&gt;
				monthName = monthNames[tonumber(month)]&lt;br /&gt;
				endDate = monthName .. &amp;quot; &amp;quot; .. day .. &amp;quot;, &amp;quot; .. year&lt;br /&gt;
			end&lt;br /&gt;
			dateTd:node(mw.html.create(&amp;#039;div&amp;#039;):wikitext(startDate)):node(mw.html.create(&amp;#039;div&amp;#039;):wikitext(&amp;#039;-&amp;#039;)):node(mw.html.create(&amp;#039;div&amp;#039;):wikitext(endDate))&lt;br /&gt;
			&lt;br /&gt;
			local tournamentRow = mw.html.create(&amp;#039;tr&amp;#039;):node(typeTd):node(nameTd):node(dateTd):node(prizeTd):node(locationTd):node(participantsTd):node(formatTd):node(placementTd)&lt;br /&gt;
			&lt;br /&gt;
			local currentTime = os.time()&lt;br /&gt;
			&lt;br /&gt;
			if result.country then&lt;br /&gt;
				locationTd:node(mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;tournament__location&amp;#039;):node(Flags.icon(result.country)):node(mw.html.create(&amp;#039;div&amp;#039;):wikitext(Flags.CountryName(result.country))))&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			local startTime = nil&lt;br /&gt;
			if result.start then&lt;br /&gt;
				startTime = mw.ustring.gsub(result.start, &amp;#039;(%d+)-(%d+)-(%d+)&amp;#039;, function(year, month, day)&lt;br /&gt;
				    return os.time({year=tonumber(year), month=tonumber(month), day=tonumber(day)})&lt;br /&gt;
				end)	&lt;br /&gt;
			end&lt;br /&gt;
			local endTime = nil&lt;br /&gt;
			if result[&amp;#039;end&amp;#039;] then&lt;br /&gt;
				endTime = mw.ustring.gsub(result[&amp;#039;end&amp;#039;], &amp;#039;(%d+)-(%d+)-(%d+)&amp;#039;, function(year, month, day)&lt;br /&gt;
				    return os.time({year=tonumber(year), month=tonumber(month), day=tonumber(day)})&lt;br /&gt;
				end)&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			local date = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
			-- If live&lt;br /&gt;
			if (startTime ~= nil and os.difftime(currentTime, startTime) &amp;gt; 0) and (endTime == nil or os.difftime(currentTime, endTime) &amp;lt;= 0) then&lt;br /&gt;
				date:wikitext(&amp;#039;LIVE&amp;#039;)&lt;br /&gt;
			else &lt;br /&gt;
				local startDate = &amp;#039;TBD&amp;#039;&lt;br /&gt;
				if result.start then&lt;br /&gt;
					local year, month, day = result.start:match(&amp;quot;(%d+)-(%d+)-(%d+)&amp;quot;)&lt;br /&gt;
					local monthName = monthNames[tonumber(month)]&lt;br /&gt;
					startDate = monthName .. &amp;quot; &amp;quot; .. day .. &amp;quot;, &amp;quot; .. year&lt;br /&gt;
				end&lt;br /&gt;
				local endDate = &amp;#039;TBD&amp;#039;&lt;br /&gt;
				if result[&amp;#039;end&amp;#039;] then&lt;br /&gt;
					year, month, day = result[&amp;#039;end&amp;#039;]:match(&amp;quot;(%d+)-(%d+)-(%d+)&amp;quot;)&lt;br /&gt;
					monthName = monthNames[tonumber(month)]&lt;br /&gt;
					endDate = monthName .. &amp;quot; &amp;quot; .. day .. &amp;quot;, &amp;quot; .. year&lt;br /&gt;
				end&lt;br /&gt;
				date:wikitext(startDate .. &amp;#039; - &amp;#039; .. endDate)&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			-- Get placement of team/player&lt;br /&gt;
			tables = &amp;quot;Prizes&amp;quot;&lt;br /&gt;
		    fields = &amp;quot;placement, players, teams&amp;quot;&lt;br /&gt;
		    where =  team and &amp;#039;teams HOLDS &amp;quot;&amp;#039; .. page .. &amp;#039;&amp;quot;&amp;#039; or &amp;#039;players HOLDS &amp;quot;&amp;#039; .. page .. &amp;#039;&amp;quot;&amp;#039;&lt;br /&gt;
		    cargoArgs = {&lt;br /&gt;
		    	where = where&lt;br /&gt;
		    }&lt;br /&gt;
		    local prizeResults = cargo.query(tables, fields, cargoArgs)&lt;br /&gt;
&lt;br /&gt;
		    if #prizeResults &amp;gt; 0 then&lt;br /&gt;
		    	placementTd:wikitext(prizeResults[1].placement)&lt;br /&gt;
		    else&lt;br /&gt;
		    	placementTd:wikitext(&amp;#039;TBD&amp;#039;)&lt;br /&gt;
		    end&lt;br /&gt;
		    &lt;br /&gt;
		    &lt;br /&gt;
			listTable:node(tournamentRow)&lt;br /&gt;
			-- Get matches of tournament&lt;br /&gt;
			local matches = tournamentMatches(page, result._pageName, team)&lt;br /&gt;
			if matches then&lt;br /&gt;
				local matchesTd = mw.html.create(&amp;#039;td&amp;#039;):attr(&amp;#039;colspan&amp;#039;, 10):node(matches)&lt;br /&gt;
				local matchesRow = mw.html.create(&amp;#039;tr&amp;#039;):node(matchesTd)&lt;br /&gt;
				listTable:node(matchesRow)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		return container:node(tournamentContainer)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function tournamentMatches(page, tournament, team)&lt;br /&gt;
	local game = mw.text.split(tournament, &amp;#039;/&amp;#039;)[1]&lt;br /&gt;
	local tables = &amp;#039;AllMatches&amp;#039;&lt;br /&gt;
	local fields = &amp;#039;_ID, _pageName, p1, p2, p1score, p2score, winner, date, bestof, stage&amp;#039;&lt;br /&gt;
	local cargoArgs = {&lt;br /&gt;
		where = &amp;#039;_pageName LIKE &amp;quot;&amp;#039; .. tournament .. &amp;#039;%&amp;quot; AND (p1 = &amp;quot;&amp;#039; .. page .. &amp;#039;&amp;quot; OR p2=&amp;quot;&amp;#039; .. page .. &amp;#039;&amp;quot;) AND winner IS NOT NULL AND winner != &amp;quot;0&amp;quot;&amp;#039;,&lt;br /&gt;
		limit =  1000,&lt;br /&gt;
		orderBy = &amp;#039;date desc&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	local results = cargo.query(tables, fields, cargoArgs)&lt;br /&gt;
	&lt;br /&gt;
	if #results &amp;gt; 0 then&lt;br /&gt;
		local dateTh = mw.html.create(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Date&amp;#039;)&lt;br /&gt;
		local scoreTh = mw.html.create(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Score&amp;#039;)&lt;br /&gt;
		local vsTh = mw.html.create(&amp;#039;th&amp;#039;):wikitext(&amp;#039;Opponent&amp;#039;)&lt;br /&gt;
		local vodTh = mw.html.create(&amp;#039;th&amp;#039;):wikitext(&amp;#039;VODs&amp;#039;)&lt;br /&gt;
		local headerRow = mw.html.create(&amp;#039;tr&amp;#039;):addClass(&amp;#039;headerRow&amp;#039;):node(dateTh):node(scoreTh):node(vsTh):node(vodTh)&lt;br /&gt;
		local tbl = mw.html.create(&amp;#039;table&amp;#039;):addClass(&amp;#039;striped-table w-100&amp;#039;):node(headerRow)&lt;br /&gt;
		&lt;br /&gt;
		for i = 1, #results do&lt;br /&gt;
			local result = results[i]&lt;br /&gt;
			local opponent&lt;br /&gt;
			local score&lt;br /&gt;
			local opponentScore&lt;br /&gt;
			if result.p1 == page then &lt;br /&gt;
				score = result.p1score&lt;br /&gt;
				opponentScore = result.p2score&lt;br /&gt;
				opponent = result.p2&lt;br /&gt;
			else &lt;br /&gt;
				score = result.p2score&lt;br /&gt;
				opponentScore = result.p1score&lt;br /&gt;
				opponent = result.p1&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			local dateTd = mw.html.create(&amp;#039;td&amp;#039;):wikitext(stringifyDate(result.date) .. &amp;#039; &amp;#039;):node(mw.html.create(&amp;#039;abbr&amp;#039;):attr(&amp;#039;title&amp;#039;, &amp;#039;Coordinated Universal Time&amp;#039;):wikitext(&amp;#039;UTC&amp;#039;))&lt;br /&gt;
			local scoreTd = mw.html.create(&amp;#039;td&amp;#039;):addClass(&amp;#039;tc&amp;#039;):wikitext(score .. &amp;#039;:&amp;#039; .. opponentScore)&lt;br /&gt;
			local vsTd = mw.html.create(&amp;#039;td&amp;#039;)&lt;br /&gt;
			if team then vsTd:node(mw.html.create(&amp;#039;div&amp;#039;):attr(&amp;#039;style&amp;#039;, &amp;#039;display: flex; gap: 0.2rem; align-items: center;&amp;#039;):node(getTeamLogo(opponent, game, &amp;#039;20x20px&amp;#039;)):wikitext(&amp;#039;[[&amp;#039; .. opponent .. &amp;#039;]]&amp;#039;)) else vsTd:wikitext(&amp;#039;[[&amp;#039; .. opponent .. &amp;#039;]]&amp;#039;) end&lt;br /&gt;
			local vodTd = mw.html.create(&amp;#039;td&amp;#039;)&lt;br /&gt;
			local resultRow = mw.html.create(&amp;#039;tr&amp;#039;):addClass(&amp;#039;bodyRow&amp;#039;):node(dateTd):node(scoreTd):node(vsTd):node(vodTd)&lt;br /&gt;
		&lt;br /&gt;
			&lt;br /&gt;
			-- Get VODs&lt;br /&gt;
			if game == &amp;#039;Dota2&amp;#039; then&lt;br /&gt;
				tables = &amp;#039;Maps_Dota&amp;#039;&lt;br /&gt;
				fields = &amp;#039;yt, vod&amp;#039;&lt;br /&gt;
				cargoArgs = {&lt;br /&gt;
					where = &amp;#039;matchID =&amp;quot;&amp;#039; .. result._ID .. &amp;#039;&amp;quot;&amp;#039;,&lt;br /&gt;
					orderBy = &amp;#039;map&amp;#039;&lt;br /&gt;
				}&lt;br /&gt;
				&lt;br /&gt;
				local vods = cargo.query(tables, fields, cargoArgs)&lt;br /&gt;
				if #vods &amp;gt; 0 then&lt;br /&gt;
					for j = 1, #vods do&lt;br /&gt;
						local vod = vods[j]&lt;br /&gt;
						if vod.yt then&lt;br /&gt;
							vodTd:wikitext(&amp;#039;[[File:Youtube.png|20x20px|https://www.youtube.com/watch?v=&amp;#039; .. vod.yt .. &amp;#039;|Map &amp;#039; .. j .. &amp;#039;]]&amp;#039;)&lt;br /&gt;
						end&lt;br /&gt;
					end&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			tbl:node(resultRow)&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		return tbl&lt;br /&gt;
	else&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Couchor</name></author>
	</entry>
</feed>