<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.roatpkz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AMain_article</id>
	<title>Module:Main article - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.roatpkz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AMain_article"/>
	<link rel="alternate" type="text/html" href="https://wiki.roatpkz.com/index.php?title=Module:Main_article&amp;action=history"/>
	<updated>2026-04-13T18:33:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.roatpkz.com/index.php?title=Module:Main_article&amp;diff=2384&amp;oldid=prev</id>
		<title>Hefner: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.roatpkz.com/index.php?title=Module:Main_article&amp;diff=2384&amp;oldid=prev"/>
		<updated>2024-03-30T22:16:35Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:16, 30 March 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Hefner</name></author>
	</entry>
	<entry>
		<id>https://wiki.roatpkz.com/index.php?title=Module:Main_article&amp;diff=2383&amp;oldid=prev</id>
		<title>Bosses&gt;Shayani: require Module:Hatnote</title>
		<link rel="alternate" type="text/html" href="https://wiki.roatpkz.com/index.php?title=Module:Main_article&amp;diff=2383&amp;oldid=prev"/>
		<updated>2022-05-13T08:24:33Z</updated>

		<summary type="html">&lt;p&gt;require &lt;a href=&quot;/Module:Hatnote&quot; title=&quot;Module:Hatnote&quot;&gt;Module:Hatnote&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- &amp;lt;pre&amp;gt;&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local hat = require(&amp;#039;Module:Hatnote&amp;#039;)&lt;br /&gt;
	local args = frame:getParent().args&lt;br /&gt;
	local ret = mw.html.create(&amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	-- list of all articles&lt;br /&gt;
	local params = {}&lt;br /&gt;
	-- total arguments counted counted&lt;br /&gt;
	local ttl = 0&lt;br /&gt;
	for _, v in ipairs(args) do&lt;br /&gt;
		ttl = ttl + 1&lt;br /&gt;
		table.insert(params,v)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- main return string&lt;br /&gt;
	ret:wikitext(&amp;#039;Main article&amp;#039;..(#params &amp;gt; 1 and &amp;#039;s&amp;#039; or &amp;#039;&amp;#039;)..&amp;#039;: &amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	-- helper function&lt;br /&gt;
	local function link(article)&lt;br /&gt;
		article = string.gsub(article,&amp;#039;_&amp;#039;,&amp;#039; &amp;#039;)&lt;br /&gt;
		article = mw.text.trim(article)&lt;br /&gt;
		-- replace anchors with section symbol&lt;br /&gt;
		if article:find(&amp;#039;#&amp;#039;,1,true) then&lt;br /&gt;
			local article_t = mw.text.split(article,&amp;#039;#&amp;#039;)&lt;br /&gt;
			article_t = table.concat(article_t,&amp;#039; § &amp;#039;)&lt;br /&gt;
			-- article|alttext&lt;br /&gt;
			article = article..&amp;#039;|&amp;#039;..article_t&lt;br /&gt;
		end&lt;br /&gt;
		-- link article&lt;br /&gt;
		return &amp;#039;[[&amp;#039;..article..&amp;#039;]]&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- additional articles&lt;br /&gt;
	for i, v in ipairs(params) do&lt;br /&gt;
		-- add article link&lt;br /&gt;
		if i &amp;lt; ttl and ttl &amp;gt; 1 then&lt;br /&gt;
			ret:wikitext(link(v))&lt;br /&gt;
		-- if last argument&lt;br /&gt;
		elseif i == ttl then&lt;br /&gt;
			-- only one argument, just add link&lt;br /&gt;
			if ttl == 1 then&lt;br /&gt;
				ret:wikitext(link(v))&lt;br /&gt;
			-- otherwise finish with &amp;quot;and&amp;quot;&lt;br /&gt;
			else&lt;br /&gt;
				ret:wikitext(&amp;#039; and &amp;#039;..link(v))&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- if more to come, add commas&lt;br /&gt;
		if i &amp;lt; ttl and ttl &amp;gt; 2 then&lt;br /&gt;
			ret:wikitext(&amp;#039;, &amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- return finished string&lt;br /&gt;
	return hat._hatnote(tostring(ret))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Bosses&gt;Shayani</name></author>
	</entry>
</feed>