<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.railos.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ARedirectData</id>
	<title>Module:RedirectData - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.railos.org/index.php?action=history&amp;feed=atom&amp;title=Module%3ARedirectData"/>
	<link rel="alternate" type="text/html" href="https://wiki.railos.org/index.php?title=Module:RedirectData&amp;action=history"/>
	<updated>2026-04-06T05:08:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://wiki.railos.org/index.php?title=Module:RedirectData&amp;diff=3790&amp;oldid=prev</id>
		<title>Krizar: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.railos.org/index.php?title=Module:RedirectData&amp;diff=3790&amp;oldid=prev"/>
		<updated>2023-03-11T16:31:57Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&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-GB&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 16:31, 11 March 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key ros_wiki:diff::1.12:old-3789:rev-3790 --&gt;
&lt;/table&gt;</summary>
		<author><name>Krizar</name></author>
	</entry>
	<entry>
		<id>https://wiki.railos.org/index.php?title=Module:RedirectData&amp;diff=3789&amp;oldid=prev</id>
		<title>wiki&gt;The Earwig: Protected &quot;Module:RedirectData&quot;: Highly visible template ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://wiki.railos.org/index.php?title=Module:RedirectData&amp;diff=3789&amp;oldid=prev"/>
		<updated>2021-03-05T21:25:13Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/index.php/Module:RedirectData&quot; title=&quot;Module:RedirectData&quot;&gt;Module:RedirectData&lt;/a&gt;&amp;quot;: &lt;a href=&quot;/index.php?title=WP:High-risk_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:High-risk templates (page does not exist)&quot;&gt;Highly visible template&lt;/a&gt; ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.getRedirectToNamespace(frame)&lt;br /&gt;
	titleObject = mw.title.getCurrentTitle() -- check if this is a redirect&lt;br /&gt;
	if titleObject.redirectTarget then&lt;br /&gt;
		targetNamespace = titleObject.redirectTarget.nsText&lt;br /&gt;
		return targetNamespace&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;Notaredirect&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.getTalkPage(frame) -- this is code written to check for the criteria to apply {{R to talk page}} - essentially, whether the redirect is outside of, and going into, a talk namespace&lt;br /&gt;
	titleObject = mw.title.getCurrentTitle() -- check if this is a redirect&lt;br /&gt;
	if titleObject.redirectTarget then&lt;br /&gt;
		if not titleObject.isTalkPage then -- the current page is NOT a talk page&lt;br /&gt;
			if titleObject.redirectTarget.isTalkPage then -- the target page IS a talk page&lt;br /&gt;
				return &amp;quot;Yes&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return &amp;quot;No&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;Notaredirect&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.getSubpageStatus(frame)&lt;br /&gt;
	titleObject = mw.title.getCurrentTitle()&lt;br /&gt;
	if titleObject.redirectTarget then -- check if this is a redirect&lt;br /&gt;
		pageIsSubpage = titleObject.isSubpage&lt;br /&gt;
		targetIsSubpage = titleObject.redirectTarget.isSubpage&lt;br /&gt;
		if (pageIsSubpage or targetIsSubpage) then&lt;br /&gt;
			if (pageIsSubpage and targetIsSubpage) then&lt;br /&gt;
				return &amp;quot;Both&amp;quot; -- both are subpages, return three&lt;br /&gt;
			elseif pageIsSubpage then&lt;br /&gt;
				return &amp;quot;Onlypage&amp;quot; -- just the page is a subpage, target isn&amp;#039;t, return one&lt;br /&gt;
			else&lt;br /&gt;
				return &amp;quot;Onlytarget&amp;quot; -- just the target is a subpage, the page isn&amp;#039;t, return two&lt;br /&gt;
			end&lt;br /&gt;
		else -- neither page nor target is a subpage, return zero&lt;br /&gt;
			return &amp;quot;Neither&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;Notaredirect&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.toDisambig(frame) -- this checks if the page title contains (disambiguation), as well as if it&amp;#039;s a talkpage&lt;br /&gt;
	titleObject = mw.title.getCurrentTitle()&lt;br /&gt;
	if titleObject.redirectTarget then -- check if this is a redirect&lt;br /&gt;
		if string.match(titleObject.text, &amp;quot;(disambiguation)&amp;quot;) then -- title contains (disambiguation)&lt;br /&gt;
			if titleObject.isTalkPage then -- this is a talk page ({{R from unnecessary disambiguation}})&lt;br /&gt;
				return &amp;quot;Talk&amp;quot;&lt;br /&gt;
			else -- this is not a talkpage ({{R to disambiguation page}})&lt;br /&gt;
				return &amp;quot;Article&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		else -- title does not contain &amp;quot;(disambiguation)&amp;quot;&lt;br /&gt;
			return &amp;quot;No&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;Notaredirect&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wiki&gt;The Earwig</name></author>
	</entry>
</feed>