<?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%3AInfobox%2FWidget%2FTournaments</id>
	<title>Module:Infobox/Widget/Tournaments - 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%3AInfobox%2FWidget%2FTournaments"/>
	<link rel="alternate" type="text/html" href="https://staging.twogpedia.com/index.php?title=Module:Infobox/Widget/Tournaments&amp;action=history"/>
	<updated>2026-05-13T06:20:05Z</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:Infobox/Widget/Tournaments&amp;diff=7797&amp;oldid=prev</id>
		<title>Couchor at 12:09, 30 October 2023</title>
		<link rel="alternate" type="text/html" href="https://staging.twogpedia.com/index.php?title=Module:Infobox/Widget/Tournaments&amp;diff=7797&amp;oldid=prev"/>
		<updated>2023-10-30T12:09:32Z</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 12:09, 30 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-l24&quot;&gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&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;	}&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;	}&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 not team then&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 not team then&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;     	cargoArgs.where = &#039;(Participants.players HOLDS &quot;&#039; .. currentPage .. &#039;&quot; OR Participants.coaches HOLDS &quot;&#039; .. currentPage .. &#039;&quot; OR Participants.analysts HOLDS &quot;&#039; .. currentPage .. &#039;&quot; OR Participants.managers HOLDS &quot;&#039; .. currentPage .. &#039;&quot;) AND (Tournaments.start is NOT NULL AND Tournaments.start &amp;lt;= &quot;&#039; .. currentDate .. &#039;&quot;) AND (Tournaments.end IS NOT NULL AND Tournaments.end &amp;gt;= &#039; .. currentDate .. &#039;)&#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;     	cargoArgs.where = &#039;(Participants.players HOLDS &quot;&#039; .. currentPage .. &#039;&quot; OR Participants.coaches HOLDS &quot;&#039; .. currentPage .. &#039;&quot; OR Participants.analysts HOLDS &quot;&#039; .. currentPage .. &#039;&quot; OR Participants.managers HOLDS &quot;&#039; .. currentPage .. &#039;&quot;) AND (Tournaments.start is NOT NULL AND Tournaments.start &amp;lt;= &quot;&#039; .. currentDate .. &#039;&quot;) AND (Tournaments.end IS NOT NULL AND Tournaments.end &amp;gt;= &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;&#039; .. currentDate .. &#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&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;     else  &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;     else  &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;     	cargoArgs.where = &#039;Participants.team = &quot;&#039; .. currentPage .. &#039;&quot; AND (Tournaments.start is NOT NULL AND Tournaments.start &amp;lt;= &quot;&#039; .. currentDate .. &#039;&quot;) AND (Tournaments.end IS NOT NULL AND Tournaments.end &amp;gt;= &#039; .. currentDate .. &#039;)&#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;     	cargoArgs.where = &#039;Participants.team = &quot;&#039; .. currentPage .. &#039;&quot; AND (Tournaments.start is NOT NULL AND Tournaments.start &amp;lt;= &quot;&#039; .. currentDate .. &#039;&quot;) AND (Tournaments.end IS NOT NULL AND Tournaments.end &amp;gt;= &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/ins&gt;&#039; .. currentDate .. &#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&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;     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;     end&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	&lt;/del&gt;&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; &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 playerLiveResults = cargo.query(tables, fields, cargoArgs)&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 playerLiveResults = cargo.query(tables, fields, cargoArgs)&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 container = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;ib&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 container = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;ib&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    local hasContents = false&lt;/ins&gt;&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 #playerLiveResults &amp;gt; 0 then&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 #playerLiveResults &amp;gt; 0 then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        hasContents = true&lt;/ins&gt;&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;		container:node(Subheader.make(&amp;#039;Live tournaments&amp;#039;)):node(p.tournamentWrapper(playerLiveResults, true))&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;		container:node(Subheader.make(&amp;#039;Live tournaments&amp;#039;)):node(p.tournamentWrapper(playerLiveResults, true))&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;	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;	end&lt;/div&gt;&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-l45&quot;&gt;Line 45:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 47:&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;	&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;	&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 #playerUpcomingResults &amp;gt; 0 then&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 #playerUpcomingResults &amp;gt; 0 then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        hasContents = true&lt;/ins&gt;&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;		container:node(Subheader.make(&amp;#039;Upcoming tournaments&amp;#039;)):node(p.tournamentWrapper(playerUpcomingResults))&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;		container:node(Subheader.make(&amp;#039;Upcoming tournaments&amp;#039;)):node(p.tournamentWrapper(playerUpcomingResults))&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;	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;	end&lt;/div&gt;&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-l62&quot;&gt;Line 62:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 65:&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;		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;		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;	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;	end&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	&lt;/del&gt;return container&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    if hasContents then &lt;/ins&gt;return container &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;else return end&lt;/ins&gt;&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;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;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;br&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;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Couchor</name></author>
	</entry>
	<entry>
		<id>https://staging.twogpedia.com/index.php?title=Module:Infobox/Widget/Tournaments&amp;diff=7665&amp;oldid=prev</id>
		<title>Couchor at 20:53, 22 October 2023</title>
		<link rel="alternate" type="text/html" href="https://staging.twogpedia.com/index.php?title=Module:Infobox/Widget/Tournaments&amp;diff=7665&amp;oldid=prev"/>
		<updated>2023-10-22T20:53:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://staging.twogpedia.com/index.php?title=Module:Infobox/Widget/Tournaments&amp;amp;diff=7665&amp;amp;oldid=7662&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Couchor</name></author>
	</entry>
	<entry>
		<id>https://staging.twogpedia.com/index.php?title=Module:Infobox/Widget/Tournaments&amp;diff=7662&amp;oldid=prev</id>
		<title>Couchor at 20:50, 22 October 2023</title>
		<link rel="alternate" type="text/html" href="https://staging.twogpedia.com/index.php?title=Module:Infobox/Widget/Tournaments&amp;diff=7662&amp;oldid=prev"/>
		<updated>2023-10-22T20:50:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://staging.twogpedia.com/index.php?title=Module:Infobox/Widget/Tournaments&amp;amp;diff=7662&amp;amp;oldid=7346&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Couchor</name></author>
	</entry>
	<entry>
		<id>https://staging.twogpedia.com/index.php?title=Module:Infobox/Widget/Tournaments&amp;diff=7346&amp;oldid=prev</id>
		<title>Couchor: Created page with &quot;local cargo = mw.ext.cargo local func = require(&#039;Module:Functions&#039;) local UpcomingMatches = require(&#039;Module:Infobox/Widget/Upcoming matches&#039;).get local Functions = require(&#039;Module:Functions&#039;) local stringifyDate = Functions.stringifyDate local getTeamLogo = Functions.getTeamLogo local timeUntil = Functions.timeUntil local colorModeDiv = Functions.colorModeDiv local p = {}  function p.get(Subheader, team) 	local currentDate = os.date(&#039;%Y-%m-%d&#039;) 	-- Get live tournaments...&quot;</title>
		<link rel="alternate" type="text/html" href="https://staging.twogpedia.com/index.php?title=Module:Infobox/Widget/Tournaments&amp;diff=7346&amp;oldid=prev"/>
		<updated>2023-10-12T15:43:09Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local cargo = mw.ext.cargo local func = require(&amp;#039;Module:Functions&amp;#039;) local UpcomingMatches = require(&amp;#039;Module:Infobox/Widget/Upcoming matches&amp;#039;).get local Functions = require(&amp;#039;Module:Functions&amp;#039;) local stringifyDate = Functions.stringifyDate local getTeamLogo = Functions.getTeamLogo local timeUntil = Functions.timeUntil local colorModeDiv = Functions.colorModeDiv local p = {}  function p.get(Subheader, team) 	local currentDate = os.date(&amp;#039;%Y-%m-%d&amp;#039;) 	-- Get live tournaments...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local cargo = mw.ext.cargo&lt;br /&gt;
local func = require(&amp;#039;Module:Functions&amp;#039;)&lt;br /&gt;
local UpcomingMatches = require(&amp;#039;Module:Infobox/Widget/Upcoming matches&amp;#039;).get&lt;br /&gt;
local Functions = require(&amp;#039;Module:Functions&amp;#039;)&lt;br /&gt;
local stringifyDate = Functions.stringifyDate&lt;br /&gt;
local getTeamLogo = Functions.getTeamLogo&lt;br /&gt;
local timeUntil = Functions.timeUntil&lt;br /&gt;
local colorModeDiv = Functions.colorModeDiv&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.get(Subheader, team)&lt;br /&gt;
	local currentDate = os.date(&amp;#039;%Y-%m-%d&amp;#039;)&lt;br /&gt;
	-- Get live tournaments&lt;br /&gt;
	local tables = &amp;#039;Tournaments, Participants&amp;#039;&lt;br /&gt;
	local fields = &amp;#039;Tournaments._pageName=_pageName, Tournaments.start=start, Tournaments.end=end, Tournaments.logoAll=logoAll, Tournaments.logoLight=logoLight, Tournaments.logoDark=logoDark, Tournaments.iconAll=iconAll, Tournaments.iconLight=iconLight, Tournaments.iconDark=iconDark, Participants.team=team&amp;#039;&lt;br /&gt;
	local currentPage = mw.title.getCurrentTitle().text&lt;br /&gt;
    &lt;br /&gt;
	local cargoArgs = {&lt;br /&gt;
		join = &amp;#039;Tournaments._pageName=Participants._pageName&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
	if not team then&lt;br /&gt;
    	cargoArgs.where = &amp;#039;(Participants.players HOLDS &amp;quot;&amp;#039; .. currentPage .. &amp;#039;&amp;quot; OR Participants.coaches HOLDS &amp;quot;&amp;#039; .. currentPage .. &amp;#039;&amp;quot; OR Participants.analysts HOLDS &amp;quot;&amp;#039; .. currentPage .. &amp;#039;&amp;quot; OR Participants.managers HOLDS &amp;quot;&amp;#039; .. currentPage .. &amp;#039;&amp;quot;) AND (Tournaments.start is NOT NULL AND Tournaments.start &amp;lt;= &amp;quot;&amp;#039; .. currentDate .. &amp;#039;&amp;quot;) AND (Tournaments.end IS NOT NULL AND Tournaments.end &amp;gt;= &amp;#039; .. currentDate .. &amp;#039;)&amp;#039;&lt;br /&gt;
    else &lt;br /&gt;
    	cargoArgs.where = &amp;#039;Participants.team = &amp;quot;&amp;#039; .. currentPage .. &amp;#039;&amp;quot; AND (Tournaments.start is NOT NULL AND Tournaments.start &amp;lt;= &amp;quot;&amp;#039; .. currentDate .. &amp;#039;&amp;quot;) AND (Tournaments.end IS NOT NULL AND Tournaments.end &amp;gt;= &amp;#039; .. currentDate .. &amp;#039;)&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
	&lt;br /&gt;
	local playerLiveResults = cargo.query(tables, fields, cargoArgs)&lt;br /&gt;
    local container = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
	if #playerLiveResults &amp;gt; 0 then&lt;br /&gt;
		container:node(Subheader.make(&amp;#039;Live tournaments&amp;#039;)):node(p.tournamentWrapper(playerLiveResults, true))&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	-- Get upcoming tournaments&lt;br /&gt;
	if not team then&lt;br /&gt;
    	cargoArgs.where = &amp;#039;(Participants.players HOLDS &amp;quot;&amp;#039; .. currentPage .. &amp;#039;&amp;quot; OR Participants.coaches HOLDS &amp;quot;&amp;#039; .. currentPage .. &amp;#039;&amp;quot; OR Participants.analysts HOLDS &amp;quot;&amp;#039; .. currentPage .. &amp;#039;&amp;quot; OR Participants.managers HOLDS &amp;quot;&amp;#039; .. currentPage .. &amp;#039;&amp;quot;) AND (Tournaments.start is NOT NULL AND Tournaments.start &amp;gt; &amp;quot;&amp;#039; .. currentDate .. &amp;#039;&amp;quot;)&amp;#039;&lt;br /&gt;
    else &lt;br /&gt;
    	cargoArgs.where = &amp;#039;Participants.team = &amp;quot;&amp;#039; .. currentPage .. &amp;#039;&amp;quot; AND (Tournaments.start is NOT NULL AND Tournaments.start &amp;gt; &amp;quot;&amp;#039; .. currentDate .. &amp;#039;&amp;quot;)&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
	&lt;br /&gt;
	local playerUpcomingResults = cargo.query(tables, fields, cargoArgs)&lt;br /&gt;
	&lt;br /&gt;
	if #playerUpcomingResults &amp;gt; 0 then&lt;br /&gt;
		container:node(Subheader.make(&amp;#039;Upcoming tournaments&amp;#039;)):node(p.tournamentWrapper(playerUpcomingResults))&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if not team and #playerUpcomingResults == 0 and #playerLiveResults == 0 then&lt;br /&gt;
		-- Get live tournaments for talent&lt;br /&gt;
		tables = &amp;#039;Tournaments, Talent&amp;#039;&lt;br /&gt;
		fields = &amp;#039;Tournaments._pageName=_pageName, Tournaments.start=start, Tournaments.end=end, Tournaments.logoAll=logoAll, Tournaments.logoLight=logoLight, Tournaments.logoDark=logoDark, Tournaments.iconAll=iconAll, Tournaments.iconLight=iconLight, Tournaments.iconDark=iconDark&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
		cargoArgs = {&lt;br /&gt;
			join = &amp;#039;Tournaments._pageName=Talent._pageName&amp;#039;,&lt;br /&gt;
			where = &amp;#039;Talent.people HOLDS &amp;quot;&amp;#039; .. currentPage .. &amp;#039;&amp;quot; AND (Tournaments.start is NOT NULL AND Tournaments.start &amp;lt;= &amp;quot;&amp;#039; .. currentDate .. &amp;#039;&amp;quot;) AND (Tournaments.end IS NOT NULL AND Tournaments.end &amp;gt;= &amp;#039; .. currentDate .. &amp;#039;)&amp;#039;&lt;br /&gt;
		}&lt;br /&gt;
		local talentLiveResults = cargo.query(tables, fields, cargoArgs)&lt;br /&gt;
		if #talentLiveResults &amp;gt; 0 then&lt;br /&gt;
			container:node(Subheader.make(&amp;#039;Live tournaments&amp;#039;)):node(p.tournamentWrapper(talentLiveResults, true))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return container&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.tournamentWrapper(results, live)&lt;br /&gt;
	local wrapper = mw.html.create(&amp;#039;div&amp;#039;):attr(&amp;#039;style&amp;#039;, &amp;#039;padding: 10px;&amp;#039;)&lt;br /&gt;
	for i = 1, #results do&lt;br /&gt;
		local result = results[i]&lt;br /&gt;
		&lt;br /&gt;
		local dateDiv = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
		if live then if result[&amp;#039;end&amp;#039;] then dateDiv:wikitext(&amp;#039;Until &amp;#039; ..stringifyDate(result[&amp;#039;end&amp;#039;]) ) else dateDiv:wikitext(&amp;#039;Until TBD&amp;#039;) end else dateDiv:wikitext(&amp;#039;Starts on &amp;#039; .. stringifyDate(result.start)) end&lt;br /&gt;
		local logoDiv = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
		local nameDiv = mw.html.create(&amp;#039;div&amp;#039;):wikitext(&amp;#039;[[&amp;#039; .. result._pageName .. &amp;#039;]]&amp;#039;)&lt;br /&gt;
		local tournamentInfo = mw.html.create(&amp;#039;div&amp;#039;):attr(&amp;#039;style&amp;#039;, &amp;#039;display: flex; gap: 0.5rem; justify-content: center; align-items: center;&amp;#039;):node(dateDiv):node(logoDiv):node(nameDiv)&lt;br /&gt;
		local matches = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
		local tournamentContainer = mw.html.create(&amp;#039;div&amp;#039;):node(tournamentInfo):node(matches)&lt;br /&gt;
		local iconSize = &amp;#039;30px&amp;#039;&lt;br /&gt;
		if result.iconAll then&lt;br /&gt;
			logoDiv:node(&amp;#039;[[File:&amp;#039; .. result.iconAll .. &amp;#039;|&amp;#039; .. iconSize .. &amp;#039;|link=&amp;#039; .. result._pageName .. &amp;#039;]]&amp;#039;)&lt;br /&gt;
		elseif result.iconLight and result.iconDark then&lt;br /&gt;
			logoDiv:node(colorModeDiv(&amp;#039;[[File:&amp;#039; .. result.iconLight .. &amp;#039;|&amp;#039; .. iconSize .. &amp;#039;|link=&amp;#039; .. result._pageName .. &amp;#039;]]&amp;#039;, &amp;#039;[[File:&amp;#039; .. result.iconDark .. &amp;#039;|&amp;#039; .. iconSize .. &amp;#039;|link=&amp;#039; .. result._pageName .. &amp;#039;]]&amp;#039;))&lt;br /&gt;
		elseif result.logoAll then&lt;br /&gt;
			logoDiv:node(&amp;#039;[[File:&amp;#039; .. result.logoAll .. &amp;#039;|&amp;#039; .. iconSize .. &amp;#039;|link=&amp;#039; .. result._pageName .. &amp;#039;]]&amp;#039;)&lt;br /&gt;
		elseif result.logoLight and result.logoDark then&lt;br /&gt;
			logoDiv:node(colorModeDiv(&amp;#039;[[File:&amp;#039; .. result.logoLight .. &amp;#039;|&amp;#039; .. iconSize .. &amp;#039;|link=&amp;#039; .. result._pageName .. &amp;#039;]]&amp;#039;, &amp;#039;[[File:&amp;#039; .. result.logoDark .. &amp;#039;|&amp;#039; .. iconSize .. &amp;#039;|link=&amp;#039; .. result._pageName .. &amp;#039;]]&amp;#039;))&lt;br /&gt;
		else &lt;br /&gt;
			local logo = result.iconLight or result.iconDark or result.logoLight or result.logoDark&lt;br /&gt;
			logoDiv:node(&amp;#039;[[File:&amp;#039; .. logo .. &amp;#039;|&amp;#039; .. iconSize .. &amp;#039;|link=&amp;#039; .. result._pageName .. &amp;#039;]]&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		-- Check if any upcoming or live matches for this tournament and player&lt;br /&gt;
		tournamentContainer:node(UpcomingMatches(result._pageName, result.team))&lt;br /&gt;
		wrapper:node(tournamentContainer)&lt;br /&gt;
	end&lt;br /&gt;
	return wrapper&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Couchor</name></author>
	</entry>
</feed>