<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ASelectServiceAward</id>
	<title>Module:SelectServiceAward - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ASelectServiceAward"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:SelectServiceAward&amp;action=history"/>
	<updated>2026-06-20T16:48:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:SelectServiceAward&amp;diff=479393&amp;oldid=prev</id>
		<title>Zoran: Pywikibot 6.4.0</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:SelectServiceAward&amp;diff=479393&amp;oldid=prev"/>
		<updated>2021-07-16T05:55:28Z</updated>

		<summary type="html">&lt;p&gt;Pywikibot 6.4.0&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;
--A table with the edit requirements for each stage (descending order)&lt;br /&gt;
local editreq = {175000, 150000, 132000, 114000, 96000, 78000, 60000, 51000, 42000, 33000, 28000, 24000, 20000, 16000, 12000, 8000, 6000, 5500, 5000, 4500,&lt;br /&gt;
	4000, 3500, 3000, 2500, 2000, 1750, 1500, 1250, 1000, 800, 600, 400, 200, 150, 100, 50, 1}&lt;br /&gt;
&lt;br /&gt;
--A table with the account age requirements for each stage (descending order)&lt;br /&gt;
local edittime = {'20 years', '18 years', '16 years', '14 years', '12 years', '10 years', '8 years', '7 years', '6 years', '5 years', '4 years + 6 months', &lt;br /&gt;
	'4 years', '3 years + 6 months', '3 years', '2 years + 6 months', '2 years', '1 year + 6 months', '1 year + 4 months + 15 days', '1 year + 3 months', &lt;br /&gt;
	'1 year + 1 month + 15 days', '1 year', '10 months + 15 days', '9 months', '7 months + 15 days', '6 months', '5 months + 8 days', '4 months + 15 days', &lt;br /&gt;
	'3 months + 23 days', '3 months', '2 months + 15 days', '2 months', '1 month + 15 days', '1 month', '23 days', '15 days', '8 days', '1 day'}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local numedits = tonumber(frame.args.edits)&lt;br /&gt;
	local date = frame.args.date&lt;br /&gt;
	local noincremental = frame.args.noinc&lt;br /&gt;
	local numpos = 0&lt;br /&gt;
	&lt;br /&gt;
	local time = tonumber(frame:callParserFunction('#time', 'U'))&lt;br /&gt;
	&lt;br /&gt;
	for i=1, 37 do&lt;br /&gt;
		if numedits &amp;gt;= editreq[i] and numpos == 0 then&lt;br /&gt;
			local timestr = date .. &amp;quot; + &amp;quot; .. edittime[i]&lt;br /&gt;
			local acctime = tonumber(frame:callParserFunction('#time', 'U', timestr))&lt;br /&gt;
			if time &amp;gt;= acctime then&lt;br /&gt;
				numpos = (38 - i)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if noincremental == &amp;quot;yes&amp;quot; and numpos &amp;gt; 0 and numpos &amp;lt;= 20 then&lt;br /&gt;
		local counter = math.floor( ( numpos - 1 ) / 4 )&lt;br /&gt;
		numpos = ( 4 * counter ) + 1&lt;br /&gt;
	end&lt;br /&gt;
	return (numpos)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>