<?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%3ANewsLanding%2FFeatured</id>
	<title>Module:NewsLanding/Featured - 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%3ANewsLanding%2FFeatured"/>
	<link rel="alternate" type="text/html" href="https://staging.twogpedia.com/index.php?title=Module:NewsLanding/Featured&amp;action=history"/>
	<updated>2026-05-11T22:52:56Z</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:NewsLanding/Featured&amp;diff=9221&amp;oldid=prev</id>
		<title>Couchor: Created page with &quot;local getArgs = require(&#039;Module:Arguments&#039;).getArgs local cargo = mw.ext.cargo  local p = {}  function p.main(frame) 	local args = getArgs(frame) 	 	local tables = &#039;News&#039; 	local fields = &#039;_pageName, date, image&#039; 	local cargoArgs = { 		orderBy = &#039;date DESC&#039;, 		where = &#039;_pageName = &quot;News/&#039; .. string.gsub(args.first, &#039;&quot;&#039;, &#039;&quot;&quot;&#039;) .. &#039;&quot;&#039; 	} 	local results = cargo.query(tables, fields, cargoArgs)      local newsItemContainer = mw.html.create(&#039;div&#039;):addClass(&#039;news-featured-items...&quot;</title>
		<link rel="alternate" type="text/html" href="https://staging.twogpedia.com/index.php?title=Module:NewsLanding/Featured&amp;diff=9221&amp;oldid=prev"/>
		<updated>2024-02-12T14:37:29Z</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 p = {}  function p.main(frame) 	local args = getArgs(frame) 	 	local tables = &amp;#039;News&amp;#039; 	local fields = &amp;#039;_pageName, date, image&amp;#039; 	local cargoArgs = { 		orderBy = &amp;#039;date DESC&amp;#039;, 		where = &amp;#039;_pageName = &amp;quot;News/&amp;#039; .. string.gsub(args.first, &amp;#039;&amp;quot;&amp;#039;, &amp;#039;&amp;quot;&amp;quot;&amp;#039;) .. &amp;#039;&amp;quot;&amp;#039; 	} 	local results = cargo.query(tables, fields, cargoArgs)      local newsItemContainer = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;news-featured-items...&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;
&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 tables = &amp;#039;News&amp;#039;&lt;br /&gt;
	local fields = &amp;#039;_pageName, date, image&amp;#039;&lt;br /&gt;
	local cargoArgs = {&lt;br /&gt;
		orderBy = &amp;#039;date DESC&amp;#039;,&lt;br /&gt;
		where = &amp;#039;_pageName = &amp;quot;News/&amp;#039; .. string.gsub(args.first, &amp;#039;&amp;quot;&amp;#039;, &amp;#039;&amp;quot;&amp;quot;&amp;#039;) .. &amp;#039;&amp;quot;&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
	local results = cargo.query(tables, fields, cargoArgs)&lt;br /&gt;
&lt;br /&gt;
    local newsItemContainer = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;news-featured-items&amp;#039;)&lt;br /&gt;
	local container = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;news-featured-container&amp;#039;):node(mw.html.create(&amp;#039;h3&amp;#039;):wikitext(&amp;#039;Featured&amp;#039;)):node(newsItemContainer)&lt;br /&gt;
	&lt;br /&gt;
	if #results &amp;gt; 0 then&lt;br /&gt;
		local result = results[1]&lt;br /&gt;
		&lt;br /&gt;
		local title = mw.html.create(&amp;#039;div&amp;#039;):wikitext(mw.ext.displaytitle.get(result._pageName))&lt;br /&gt;
		local newsItem = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;news-featured&amp;#039;):wikitext(&amp;#039;[[File:&amp;#039;.. result.image .. &amp;#039;|link=&amp;#039; .. result._pageName .. &amp;#039;]]&amp;#039;):node(title)&lt;br /&gt;
		newsItemContainer:node(newsItem)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	cargoArgs.where = &amp;#039;_pageName = &amp;quot;News/&amp;#039; .. string.gsub(args.second, &amp;#039;&amp;quot;&amp;#039;, &amp;#039;&amp;quot;&amp;quot;&amp;#039;) .. &amp;#039;&amp;quot;&amp;#039;&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 result = results[1]&lt;br /&gt;
			&lt;br /&gt;
			local title = mw.html.create(&amp;#039;div&amp;#039;):wikitext(mw.ext.displaytitle.get(result._pageName))&lt;br /&gt;
			local newsItem = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;news-featured&amp;#039;):wikitext(&amp;#039;[[File:&amp;#039;.. result.image .. &amp;#039;|link=&amp;#039; .. result._pageName .. &amp;#039;]]&amp;#039;):node(title)&lt;br /&gt;
			newsItemContainer:node(newsItem)&lt;br /&gt;
	end&lt;br /&gt;
	return container&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Couchor</name></author>
	</entry>
</feed>