<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://twogpedia.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ALocationsLanding%2FList</id>
	<title>Module:LocationsLanding/List - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://twogpedia.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ALocationsLanding%2FList"/>
	<link rel="alternate" type="text/html" href="https://twogpedia.com/index.php?title=Module:LocationsLanding/List&amp;action=history"/>
	<updated>2026-04-07T18:25:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://twogpedia.com/index.php?title=Module:LocationsLanding/List&amp;diff=9929&amp;oldid=prev</id>
		<title>Couchor at 08:39, 11 March 2024</title>
		<link rel="alternate" type="text/html" href="https://twogpedia.com/index.php?title=Module:LocationsLanding/List&amp;diff=9929&amp;oldid=prev"/>
		<updated>2024-03-11T08:39:55Z</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 08:39, 11 March 2024&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-l59&quot;&gt;Line 59:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&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 img then img = &amp;#039;Team_placeholder_light.png&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 not img then img = &amp;#039;Team_placeholder_light.png&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;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;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 image = mw.html.create(&#039;div&#039;):wikitext(&#039;[[File:&#039; .. img .. &#039;|250x250px]]&#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 image = mw.html.create(&#039;div&#039;):wikitext(&#039;[[File:&#039; .. img .. &#039;|250x250px&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|link=&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;			local title = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;location__title&amp;#039;):wikitext(mw.ext.displaytitle.get(result._pageName))&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 title = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;location__title&amp;#039;):wikitext(mw.ext.displaytitle.get(result._pageName))&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 country = LocationWidget.make(result.country, result.city, &amp;#039;Locations&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 country = LocationWidget.make(result.country, result.city, &amp;#039;Locations&amp;#039;)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Couchor</name></author>
	</entry>
	<entry>
		<id>https://twogpedia.com/index.php?title=Module:LocationsLanding/List&amp;diff=9280&amp;oldid=prev</id>
		<title>Couchor: Created page with &quot;local getArgs = require(&#039;Module:Arguments&#039;).getArgs local cargo = mw.ext.cargo local LocationWidget = require(&#039;Module:Infobox/Widget/Location&#039;)  local p = {}  function p.main(frame) 	local args = getArgs(frame) 	 	local whereStr = &#039;&#039; 	 	if args.type then whereStr = whereStr .. &#039;Locations.type HOLDS &quot;&#039; .. args.type .. &#039;&quot;&#039; end 	if args.country then  		local countries = mw.text.split(args.country, &#039;,&#039;) 		if whereStr ~= &#039;&#039; then whereStr = whereStr .. &#039; AND &#039; end 		whereStr =...&quot;</title>
		<link rel="alternate" type="text/html" href="https://twogpedia.com/index.php?title=Module:LocationsLanding/List&amp;diff=9280&amp;oldid=prev"/>
		<updated>2024-02-12T18:39:13Z</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 LocationWidget = require(&amp;#039;Module:Infobox/Widget/Location&amp;#039;)  local p = {}  function p.main(frame) 	local args = getArgs(frame) 	 	local whereStr = &amp;#039;&amp;#039; 	 	if args.type then whereStr = whereStr .. &amp;#039;Locations.type HOLDS &amp;quot;&amp;#039; .. args.type .. &amp;#039;&amp;quot;&amp;#039; end 	if args.country then  		local countries = mw.text.split(args.country, &amp;#039;,&amp;#039;) 		if whereStr ~= &amp;#039;&amp;#039; then whereStr = whereStr .. &amp;#039; AND &amp;#039; end 		whereStr =...&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 LocationWidget = require(&amp;#039;Module:Infobox/Widget/Location&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	&lt;br /&gt;
	local whereStr = &amp;#039;&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	if args.type then whereStr = whereStr .. &amp;#039;Locations.type HOLDS &amp;quot;&amp;#039; .. args.type .. &amp;#039;&amp;quot;&amp;#039; end&lt;br /&gt;
	if args.country then &lt;br /&gt;
		local countries = mw.text.split(args.country, &amp;#039;,&amp;#039;)&lt;br /&gt;
		if whereStr ~= &amp;#039;&amp;#039; then whereStr = whereStr .. &amp;#039; AND &amp;#039; end&lt;br /&gt;
		whereStr = whereStr .. &amp;#039;(&amp;#039;&lt;br /&gt;
		for i = 1, #countries do&lt;br /&gt;
			if i &amp;gt; 1 then whereStr = whereStr .. &amp;#039; OR &amp;#039; end&lt;br /&gt;
			whereStr = whereStr .. &amp;#039;Locations.country=&amp;quot;&amp;#039; .. countries[i] .. &amp;#039;&amp;quot;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
		whereStr = whereStr .. &amp;#039;)&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if args.name then whereStr = whereStr .. (whereStr ~= &amp;#039;&amp;#039; and &amp;#039; AND &amp;#039; or &amp;#039;&amp;#039;) .. &amp;#039;Locations._pageName LIKE &amp;quot;%&amp;#039; .. args.name .. &amp;#039;%&amp;quot;&amp;#039;  end&lt;br /&gt;
	&lt;br /&gt;
	local tables = &amp;#039;Locations, _pageData, Logos&amp;#039;&lt;br /&gt;
	local fields = &amp;#039;Locations._pageName=_pageName, Locations.franchise=franchise, Locations.country=country, Locations.city=city, Locations.type=type, Logos.logoAll=logoAll, Logos.logoLight=logoLight, Logos.logoDark=logoDark&amp;#039;&lt;br /&gt;
	local cargoArgs = {&lt;br /&gt;
		join = &amp;#039;Locations._pageName = _pageData._pageName, Locations._pageName=Logos._pageName&amp;#039;,&lt;br /&gt;
		where = whereStr,&lt;br /&gt;
		limit = 20,&lt;br /&gt;
		orderBy = &amp;quot;_pageData._modificationDate DESC&amp;quot;,&lt;br /&gt;
	}&lt;br /&gt;
	local results = cargo.query(tables, fields, cargoArgs)&lt;br /&gt;
	&lt;br /&gt;
	local container = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;locations__container&amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	if #results &amp;gt; 0 then&lt;br /&gt;
		for i = 1, #results do&lt;br /&gt;
			local result = results[i]&lt;br /&gt;
			&lt;br /&gt;
			local img = result.logoAll or result.logoLight or result.logoDark&lt;br /&gt;
			&lt;br /&gt;
			if not img and result.franchise then&lt;br /&gt;
				tables = &amp;#039;Logos&amp;#039;&lt;br /&gt;
				fields = &amp;#039;_pageName, logoLight, logoDark, logoAll, iconAll, iconLight, iconDark, start, end&amp;#039;&lt;br /&gt;
				currentDate = os.date(&amp;#039;%Y-%m-%d&amp;#039;)&lt;br /&gt;
				cargoArgs = {&lt;br /&gt;
					where = &amp;#039;(_pageName = &amp;quot;&amp;#039; .. result.franchise .. &amp;#039;&amp;quot;) AND  (start is NULL OR start &amp;lt; &amp;quot;&amp;#039; .. currentDate .. &amp;#039;&amp;quot;) AND (end is NULL OR end &amp;gt; &amp;quot;&amp;#039; .. currentDate .. &amp;#039;&amp;quot;)&amp;#039;&lt;br /&gt;
				}&lt;br /&gt;
				local logoResults = cargo.query(tables, fields, cargoArgs)&lt;br /&gt;
				&lt;br /&gt;
				if #logoResults &amp;gt; 0 then&lt;br /&gt;
					local res = logoResults[1]&lt;br /&gt;
					img = res.logoAll or res.logoLight or res.logoDark or res.iconAll or res.iconLight or res.iconDark&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			&lt;br /&gt;
			if not img then img = &amp;#039;Team_placeholder_light.png&amp;#039; end&lt;br /&gt;
&lt;br /&gt;
			local image = mw.html.create(&amp;#039;div&amp;#039;):wikitext(&amp;#039;[[File:&amp;#039; .. img .. &amp;#039;|250x250px]]&amp;#039;)&lt;br /&gt;
			local title = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;location__title&amp;#039;):wikitext(mw.ext.displaytitle.get(result._pageName))&lt;br /&gt;
			local country = LocationWidget.make(result.country, result.city, &amp;#039;Locations&amp;#039;)&lt;br /&gt;
			local type = mw.html.create(&amp;#039;div&amp;#039;):wikitext(result.type)&lt;br /&gt;
			&lt;br /&gt;
			local text = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;location__text&amp;#039;):node(country):node(type)&lt;br /&gt;
			local newsItem = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;location__item&amp;#039;):node(title):node(image):node(text):node(mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;link-overlay&amp;#039;):wikitext(&amp;#039;[[File:Team_placeholder_light.png|1x1px|link=&amp;#039; .. result._pageName .. &amp;#039;]]&amp;#039;))&lt;br /&gt;
			container:node(newsItem)&lt;br /&gt;
		end&lt;br /&gt;
		return container&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>