<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FRich_Farmbrough%2Fcross-namespace</id>
	<title>Module:Sandbox/Rich Farmbrough/cross-namespace - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FRich_Farmbrough%2Fcross-namespace"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Rich_Farmbrough/cross-namespace&amp;action=history"/>
	<updated>2026-04-21T13:25:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Sandbox/Rich_Farmbrough/cross-namespace&amp;diff=146122&amp;oldid=prev</id>
		<title>imported&gt;Rich Farmbrough at 22:30, 12 January 2016</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Rich_Farmbrough/cross-namespace&amp;diff=146122&amp;oldid=prev"/>
		<updated>2016-01-12T22:30:00Z</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;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.test(frame)&lt;br /&gt;
   if (not isRedirect()) then return &amp;quot;[[Category:Pages incorrectly tagged as cross-namespace redirects]]&amp;quot; end&lt;br /&gt;
   local tospace   = &amp;quot;&amp;quot;    &lt;br /&gt;
   __, tospace     =  mw.string.find (mw.string.lower(getContent()), &amp;quot;#redirect:?\s*\[\[(talk|(portal|template....)([_ ]+talk))?:&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
   if (tospace==&amp;quot;&amp;quot;) then tospace=&amp;quot;article space&amp;quot; end&lt;br /&gt;
--   else  tospace   = mw.string.lower (tospace) end&lt;br /&gt;
&lt;br /&gt;
   local fromspace = &amp;quot;&amp;quot;&lt;br /&gt;
   fromspace       = mw.string.find (PageTitle(), &amp;quot;#redirect:?\s*\[\[(talk|(portal|template....)([_ ]+talk)?:&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
   if (fromspace==&amp;quot;&amp;quot;) then fromspace=&amp;quot;article space &amp;quot; &lt;br /&gt;
   else fromspace  = mw.string.lower(fromspace) end&lt;br /&gt;
&lt;br /&gt;
   if (fromspace == tospace) then return &amp;quot;[{Category:Pages incorrectly tagged as cross-namespace redirects]] .. fromspace .. tospace&amp;quot; end&lt;br /&gt;
&lt;br /&gt;
-- Maybe&lt;br /&gt;
-- rv = [[Category:Redirects from &amp;quot; .. fromspace .. &amp;quot; page to &amp;quot; .. tospace .. &amp;quot; page]]&lt;br /&gt;
-- and check cat exists - if not add a tracking cat.&lt;br /&gt;
-- Or&lt;br /&gt;
   rv = &amp;quot;[[Category:Cross-namespace redirects from &amp;quot; .. fromspace .. &amp;quot;pages]][[Category:Cross-namespace redirects to &amp;quot; .. tospace .. &amp;quot; pages]]&amp;quot;&lt;br /&gt;
-- Or both&lt;br /&gt;
   return  rv&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Rich Farmbrough</name></author>
	</entry>
</feed>