<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://redlettermedia.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AMain_if_exists</id>
	<title>Module:Main if exists - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://redlettermedia.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AMain_if_exists"/>
	<link rel="alternate" type="text/html" href="https://redlettermedia.wiki/mediawiki/index.php?title=Module:Main_if_exists&amp;action=history"/>
	<updated>2026-05-14T10:17:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://redlettermedia.wiki/mediawiki/index.php?title=Module:Main_if_exists&amp;diff=1806&amp;oldid=prev</id>
		<title>Orangestar: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://redlettermedia.wiki/mediawiki/index.php?title=Module:Main_if_exists&amp;diff=1806&amp;oldid=prev"/>
		<updated>2024-06-13T17:29:19Z</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;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 17:29, 13 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&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;!-- diff cache key my_wiki:diff:1.41:old-1805:rev-1806 --&gt;
&lt;/table&gt;</summary>
		<author><name>Orangestar</name></author>
	</entry>
	<entry>
		<id>https://redlettermedia.wiki/mediawiki/index.php?title=Module:Main_if_exists&amp;diff=1805&amp;oldid=prev</id>
		<title>en&gt;Lallint at 20:41, 17 February 2022</title>
		<link rel="alternate" type="text/html" href="https://redlettermedia.wiki/mediawiki/index.php?title=Module:Main_if_exists&amp;diff=1805&amp;oldid=prev"/>
		<updated>2022-02-17T20:41:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--[[ v1.0&lt;br /&gt;
]]&lt;br /&gt;
local p = {}&lt;br /&gt;
local yesno = require(&amp;quot;Module:yesno&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local rawpages = {}&lt;br /&gt;
	local nvalid = 0&lt;br /&gt;
	local namespace = frame.args.ns&lt;br /&gt;
	for i, v in ipairs(frame:getParent().args) do&lt;br /&gt;
		if (v ~= nil) then&lt;br /&gt;
			local thisArg = mw.text.trim(v)&lt;br /&gt;
			if (thisArg ~= &amp;quot;&amp;quot;) then&lt;br /&gt;
				local title = mw.title.new(thisArg, namespace)&lt;br /&gt;
				if title ~= nil and title.exists then&lt;br /&gt;
					table.insert(rawpages, title.fullText)&lt;br /&gt;
					nvalid = nvalid + 1&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if (nvalid == 0) then&lt;br /&gt;
		if yesno(frame.args.warning) then&lt;br /&gt;
			if namespace == nil then&lt;br /&gt;
				namespace = &amp;quot;page&amp;quot;&lt;br /&gt;
			elseif namespace:sub(-1) == &amp;quot;y&amp;quot; then&lt;br /&gt;
				namespace = namespace:sub(0, -2) .. &amp;quot;ie&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
			mw.addWarning(string.format(&amp;quot;&amp;#039;&amp;#039;&amp;#039;[[%s]] — no output, because none of the %ss currently exist.&amp;#039;&amp;#039;&amp;#039;&amp;quot;,&lt;br /&gt;
				frame:getParent():getTitle(),namespace))&lt;br /&gt;
		end&lt;br /&gt;
		return &amp;quot;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	local mLabelledList = require(&amp;#039;Module:Labelled list hatnote&amp;#039;)&lt;br /&gt;
	local pages = mLabelledList._labelledList(rawpages, &amp;quot;Main&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	return pages&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>en&gt;Lallint</name></author>
	</entry>
</feed>