<?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%3ABacklog</id>
	<title>Module:Backlog - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ABacklog"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Backlog&amp;action=history"/>
	<updated>2026-08-08T14:33:03Z</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:Backlog&amp;diff=135351&amp;oldid=prev</id>
		<title>imported&gt;Animal lover 666 at 14:05, 24 November 2022</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Backlog&amp;diff=135351&amp;oldid=prev"/>
		<updated>2022-11-24T14:05:30Z</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.main(frame)&lt;br /&gt;
	--The first is what allows for each template to have slightly different info.&lt;br /&gt;
	--The second is the parameters used when it was called. Both are relevant.&lt;br /&gt;
	local args=frame.args&lt;br /&gt;
	local parentArgs = frame:getParent().args&lt;br /&gt;
	&lt;br /&gt;
	local count=tonumber(parentArgs[1])&lt;br /&gt;
	&lt;br /&gt;
	local isActive&lt;br /&gt;
	if count and (mw.site.stats.pagesInCategory(mw.title.getCurrentTitle().text)&amp;lt;count) then&lt;br /&gt;
		isActive=false&lt;br /&gt;
	else&lt;br /&gt;
		isActive=true&lt;br /&gt;
	end&lt;br /&gt;
	--if category has elements which don&amp;#039;t count towards the backlog, but are&lt;br /&gt;
	--technically part of the category, these will counted in arg #1,but&lt;br /&gt;
	--not in arg #2.&lt;br /&gt;
	count2=parentArgs[2]&lt;br /&gt;
	if count2 and count2~=&amp;quot;&amp;quot; then&lt;br /&gt;
		count=count2&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local template=&amp;quot;mbox&amp;quot;&lt;br /&gt;
	local outArgs={}&lt;br /&gt;
	local purge&lt;br /&gt;
	local ns=mw.title.getCurrentTitle().namespace&lt;br /&gt;
	if count then --only expand the purge function if it&amp;#039;s needed&lt;br /&gt;
		purge=string.format(&amp;quot; &amp;lt;small&amp;gt;(%s)&amp;lt;/small&amp;gt;&amp;quot;,&lt;br /&gt;
			require(&amp;quot;Module:Purge&amp;quot;)._main({&amp;quot;recount&amp;quot;}))&lt;br /&gt;
	end&lt;br /&gt;
	if isActive then&lt;br /&gt;
		outArgs.demospace=parentArgs.demospace&lt;br /&gt;
		outArgs[&amp;quot;type&amp;quot;]=&amp;quot;style&amp;quot;&lt;br /&gt;
		outArgs.style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
		outArgs.image=&amp;quot;[[File:Busy desk red.svg|50x50px|link=|alt=]]&amp;quot;&lt;br /&gt;
		local text&lt;br /&gt;
		if parentArgs.page then&lt;br /&gt;
			text=page&lt;br /&gt;
		elseif ns==14 then&lt;br /&gt;
			template=&amp;quot;cmbox&amp;quot;&lt;br /&gt;
			text=&amp;quot;This category&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			text=&amp;quot;This page&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
		&lt;br /&gt;
		local editors = args.editors&lt;br /&gt;
		text=text..&amp;quot; has a &amp;#039;&amp;#039;&amp;#039;[[:Category:Wikipedia backlog|backlog]]&amp;#039;&amp;#039;&amp;#039; that requires the attention of &amp;quot;&lt;br /&gt;
		if editors then&lt;br /&gt;
			text=text..editors&lt;br /&gt;
		else&lt;br /&gt;
			text=text..&amp;quot;willing editors&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
		text=text..&amp;quot;.&amp;lt;br\&amp;gt;&amp;quot;&lt;br /&gt;
		if count then&lt;br /&gt;
			text=text..&amp;quot;&amp;#039;&amp;#039;This notice will hide itself when this category has %s items.&amp;#039;&amp;#039; &amp;quot;&lt;br /&gt;
			local fmtArg&lt;br /&gt;
			if count==1 then&lt;br /&gt;
				fmtArg=&amp;quot;no&amp;quot;&lt;br /&gt;
			else&lt;br /&gt;
				fmtArg=&amp;quot;fewer than &amp;quot;..count&lt;br /&gt;
			end&lt;br /&gt;
			text=string.format(text,fmtArg)..purge&lt;br /&gt;
		elseif parentArgs.auto==&amp;quot;yes&amp;quot; then&lt;br /&gt;
			text=text..&amp;quot;&amp;lt;small&amp;gt;This notice will automatically hide itself when the backlog is cleared.&amp;lt;/small&amp;gt;&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			text=text..&amp;quot;&amp;#039;&amp;#039;Please remove this notice if and when the backlog is cleared.&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
		outArgs.text=text&lt;br /&gt;
		&lt;br /&gt;
		--[[&lt;br /&gt;
		Basic rules of categorization:&lt;br /&gt;
		1. Omit in User: and User talk: namespaces&lt;br /&gt;
		2. The caller of the template can override all default categorization&lt;br /&gt;
		   from the template.&lt;br /&gt;
		3. If the template&amp;#039;s caller doesn&amp;#039;t override categorization, the &lt;br /&gt;
		   template has the appropriate ones&lt;br /&gt;
		4. Module defaults exist, based on Template:Backlog&lt;br /&gt;
		]]&lt;br /&gt;
		if not(ns==2 or ns==3) then&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		template=&amp;quot;cmbox&amp;quot;&lt;br /&gt;
		if parentArgs.silent then&lt;br /&gt;
			return &amp;quot;&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
		outArgs.image=&amp;quot;[[File:Less busy desk red.svg|50x50px|link=|alt=]]&amp;quot;&lt;br /&gt;
		outArgs.textstyle = &amp;quot;text-align: center&amp;quot;&lt;br /&gt;
		&lt;br /&gt;
		text=&amp;quot;If this category has %s, it will report as a [[:Category:Wikipedia backlog|backlog]].&amp;quot;&lt;br /&gt;
			..purge&lt;br /&gt;
			&lt;br /&gt;
		local fmtArg&lt;br /&gt;
		if count==1 then&lt;br /&gt;
			fmtArg=&amp;quot;any items&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			fmtArg=count..&amp;quot; items or more&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
		outArgs.text=string.format(text, fmtArg)&lt;br /&gt;
		&lt;br /&gt;
		&lt;br /&gt;
	end	&lt;br /&gt;
	&lt;br /&gt;
	&lt;br /&gt;
	return require(&amp;#039;Module:Message box&amp;#039;).main(template,outArgs)&lt;br /&gt;
	&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p;&lt;/div&gt;</summary>
		<author><name>imported&gt;Animal lover 666</name></author>
	</entry>
</feed>