<?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%3ASPI_archive_notice</id>
	<title>Module:SPI archive notice - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASPI_archive_notice"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:SPI_archive_notice&amp;action=history"/>
	<updated>2026-05-27T12:31:59Z</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:SPI_archive_notice&amp;diff=144967&amp;oldid=prev</id>
		<title>imported&gt;Dreamy Jazz: Ensure that the first letter of the username is upper case in the username inside SPI archive notice calls</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:SPI_archive_notice&amp;diff=144967&amp;oldid=prev"/>
		<updated>2022-02-16T13:30:31Z</updated>

		<summary type="html">&lt;p&gt;Ensure that the first letter of the username is upper case in the username inside SPI archive notice calls&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local mRedirect = require(&amp;#039;Module:Redirect&amp;#039;)&lt;br /&gt;
local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
local isIPOrRange = require(&amp;#039;Module:IPAddress&amp;#039;).isIpOrRange&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- function p.checkIfSPIMayNeedRename(frame)&lt;br /&gt;
--	 local args = getArgs(frame)&lt;br /&gt;
--	 return p._checkIfSPIMayNeedRename(args)&lt;br /&gt;
-- end&lt;br /&gt;
&lt;br /&gt;
function p.checkIfSPIMayNeedRename(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	-- Fix capitlisation of the username&lt;br /&gt;
	args[1] = mw.ustring.upper(args[1]:sub(1, 1)) .. args[1]:sub(2)&lt;br /&gt;
	if (isIPOrRange(frame) ~= &amp;#039;&amp;#039;) then&lt;br /&gt;
		return &amp;#039;no&amp;#039;&lt;br /&gt;
	elseif (mw.title.new(&amp;#039;User talk:&amp;#039; .. args[1]):getContent() == nil and mw.title.new(&amp;#039;User:&amp;#039; .. args[1]):getContent() == nil) then&lt;br /&gt;
		return &amp;#039;yes_no_user_content&amp;#039;&lt;br /&gt;
	else&lt;br /&gt;
		local redirectTarget = mRedirect.getTarget(&amp;#039;User talk:&amp;#039; .. args[1])&lt;br /&gt;
		if (redirectTarget ~= nil) then&lt;br /&gt;
			if (mw.ustring.find(redirectTarget, &amp;#039;^User:&amp;#039; .. args[1]) or mw.ustring.find(redirectTarget, &amp;#039;^User talk:&amp;#039; .. args[1])) then&lt;br /&gt;
				return &amp;#039;no&amp;#039;&lt;br /&gt;
			else&lt;br /&gt;
				return &amp;#039;yes_redirected_elsewhere&amp;#039;&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			return &amp;#039;no&amp;#039;	&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Dreamy Jazz</name></author>
	</entry>
</feed>