<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/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://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AMain_if_exists"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:Main_if_exists&amp;action=history"/>
	<updated>2026-04-13T13:28:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Module:Main_if_exists&amp;diff=2631&amp;oldid=prev</id>
		<title>Wikipedia&gt;Lallint at 20:41, 17 February 2022</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:Main_if_exists&amp;diff=2631&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>Wikipedia&gt;Lallint</name></author>
	</entry>
</feed>