<?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%3AMainonly</id>
	<title>Module:Mainonly - 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%3AMainonly"/>
	<link rel="alternate" type="text/html" href="https://wiki.roatpkz.com/index.php?title=Module:Mainonly&amp;action=history"/>
	<updated>2026-05-02T21:43:33Z</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:Mainonly&amp;diff=276&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:Mainonly&amp;diff=276&amp;oldid=prev"/>
		<updated>2024-03-23T19:30:05Z</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 19:30, 23 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:Mainonly&amp;diff=275&amp;oldid=prev</id>
		<title>Armadyl Godsword&gt;Jayden: 1 revision imported: Merging</title>
		<link rel="alternate" type="text/html" href="https://wiki.roatpkz.com/index.php?title=Module:Mainonly&amp;diff=275&amp;oldid=prev"/>
		<updated>2018-10-01T22:29:00Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: Merging&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--[[&lt;br /&gt;
{{Helper module|name=Mainonly&lt;br /&gt;
|fname1=_main(arg)&lt;br /&gt;
|ftype1=Any value&lt;br /&gt;
|fuse1=If the module is invoked in the content namespace, it will return arg, otherwise, it will return an empty string&lt;br /&gt;
|fname2=on_main()&lt;br /&gt;
|ftype2=N/A&lt;br /&gt;
|fuse2=Returns true if invoked in the content namespace, otherwise false&lt;br /&gt;
}}&lt;br /&gt;
--]]&lt;br /&gt;
--&lt;br /&gt;
-- Module to return text only when invoked in the content namespace&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local ret = frame:getParent().args[1] or &amp;#039;&amp;#039;&lt;br /&gt;
	return p._main(ret)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(text)&lt;br /&gt;
	if mw.title.getCurrentTitle().namespace == 0 then&lt;br /&gt;
		return text&lt;br /&gt;
	else&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--&lt;br /&gt;
-- Boolean for whether or not the page is in the mainspace&lt;br /&gt;
-- Sometimes it might be better to just check first&lt;br /&gt;
-- Rather than spend processing time on something that won&amp;#039;t be used&lt;br /&gt;
function p.on_main()&lt;br /&gt;
	return mw.title.getCurrentTitle().namespace == 0&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Armadyl Godsword&gt;Jayden</name></author>
	</entry>
</feed>