<?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%3AAfC_submission_catcheck%2Fsandbox</id>
	<title>Module:AfC submission catcheck/sandbox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AAfC_submission_catcheck%2Fsandbox"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:AfC_submission_catcheck/sandbox&amp;action=history"/>
	<updated>2026-04-15T16:15:04Z</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:AfC_submission_catcheck/sandbox&amp;diff=135179&amp;oldid=prev</id>
		<title>imported&gt;Primefac: Primefac moved page Module:AFC submission catcheck/sandbox to Module:AfC submission catcheck/sandbox without leaving a redirect: standardizing across the project</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:AfC_submission_catcheck/sandbox&amp;diff=135179&amp;oldid=prev"/>
		<updated>2020-11-18T18:04:21Z</updated>

		<summary type="html">&lt;p&gt;Primefac moved page &lt;a href=&quot;/index.php?title=Module:AFC_submission_catcheck/sandbox&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module:AFC submission catcheck/sandbox (page does not exist)&quot;&gt;Module:AFC submission catcheck/sandbox&lt;/a&gt; to &lt;a href=&quot;/research/Module:AfC_submission_catcheck/sandbox&quot; title=&quot;Module:AfC submission catcheck/sandbox&quot;&gt;Module:AfC submission catcheck/sandbox&lt;/a&gt; without leaving a redirect: standardizing across the project&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;
local function removeFalsePositives(str)&lt;br /&gt;
	if not str then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	str = mw.ustring.gsub(str, &amp;quot;&amp;lt;!--.---&amp;gt;&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	str = mw.ustring.gsub(str, &amp;quot;&amp;lt;nowiki&amp;gt;.-&amp;lt;/nowiki&amp;gt;&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	str = mw.ustring.gsub(str, &amp;quot;{{[Dd]raft categories.-}}&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
	str = mw.ustring.gsub(str,&amp;quot;%[%[Category:Articles created via the Article Wizard%]%]&amp;quot;,&amp;quot;&amp;quot;)&lt;br /&gt;
	str = mw.ustring.gsub(str,&amp;quot;%[%[Category:Unsuitable for Wikipedia AfC submissions%]%]&amp;quot;,&amp;quot;&amp;quot;)&lt;br /&gt;
	str = mw.ustring.gsub(str,&amp;quot;%[%[Category:Drafts about.-%]%]&amp;quot;,&amp;quot;&amp;quot;)&lt;br /&gt;
	return str&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.checkforcats(frame)&lt;br /&gt;
    local t = mw.title.getCurrentTitle()&lt;br /&gt;
    tc = t:getContent()&lt;br /&gt;
    if tc == nil then &lt;br /&gt;
        return &amp;quot;&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    tc = removeFalsePositives(tc)&lt;br /&gt;
    if mw.ustring.match(tc, &amp;quot;%[%[%s-[Cc]ategory:&amp;quot; ) == nil then&lt;br /&gt;
        return &amp;quot;&amp;quot;&lt;br /&gt;
    else&lt;br /&gt;
        return &amp;quot;[[Category:AfC submissions with categories]]&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.submitted(frame)&lt;br /&gt;
	if mw.ustring.find(removeFalsePositives(mw.title.getCurrentTitle():getContent()), &amp;#039;{{AFC submission||&amp;#039;, 1, true) then&lt;br /&gt;
		return frame.args[1]&lt;br /&gt;
	else&lt;br /&gt;
		return frame.args[2]&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Primefac</name></author>
	</entry>
</feed>