<?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%3ADraft_topics</id>
	<title>Module:Draft topics - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ADraft_topics"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Draft_topics&amp;action=history"/>
	<updated>2026-06-14T07:08:49Z</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:Draft_topics&amp;diff=471527&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:Draft_topics&amp;diff=471527&amp;oldid=prev"/>
		<updated>2021-07-15T21:22:52Z</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 getArgs = require('Module:Arguments').getArgs&lt;br /&gt;
local p = {}&lt;br /&gt;
	&lt;br /&gt;
local categories = {&lt;br /&gt;
	['biography'] = 'biographies',&lt;br /&gt;
	['women'] = 'women',&lt;br /&gt;
	['food-and-drink'] = 'food and drink',&lt;br /&gt;
	['internet-culture'] = 'internet culture',&lt;br /&gt;
	['linguistics'] = 'linguistics',&lt;br /&gt;
	['literature'] = 'literature',&lt;br /&gt;
	['books'] = 'books',&lt;br /&gt;
	['entertainment'] = 'entertainment',&lt;br /&gt;
	['films'] = 'films',&lt;br /&gt;
	['media'] = 'media',&lt;br /&gt;
	['music'] = 'music',&lt;br /&gt;
	['radio'] = 'radio',&lt;br /&gt;
	['software'] = 'software',&lt;br /&gt;
	['television'] = 'television',&lt;br /&gt;
	['video-games'] = 'video games',&lt;br /&gt;
	['performing-arts'] = 'performing arts',&lt;br /&gt;
	['philosophy-and-religion'] = 'philosophy and religion',&lt;br /&gt;
	['sports'] = 'sports',&lt;br /&gt;
	['architecture'] = 'architecture',&lt;br /&gt;
	['comics-and-anime'] = 'comics and anime',&lt;br /&gt;
	['fashion'] = 'fashion',&lt;br /&gt;
	['visual-arts'] = 'visual arts',&lt;br /&gt;
	['geographical'] = 'geographical topics',&lt;br /&gt;
	['africa'] = 'Africa',&lt;br /&gt;
	['central-africa'] = 'Central Africa',&lt;br /&gt;
	['eastern-africa'] = 'Eastern Africa',&lt;br /&gt;
	['northern-africa'] = 'Northern Africa',&lt;br /&gt;
	['southern-africa'] = 'Southern Africa',&lt;br /&gt;
	['western-africa'] = 'Western Africa',&lt;br /&gt;
	['central-america'] = 'Central America',&lt;br /&gt;
	['north-america'] = 'North America',&lt;br /&gt;
	['south-america'] = 'South America',&lt;br /&gt;
	['asia'] = 'Asia',&lt;br /&gt;
	['central-asia'] = 'Central Asia',&lt;br /&gt;
	['east-asia'] = 'East Asia',&lt;br /&gt;
	['north-asia'] = 'North Asia',&lt;br /&gt;
	['south-asia'] = 'South Asia',&lt;br /&gt;
	['southeast-asia'] = 'Southeast Asia',&lt;br /&gt;
	['west-asia'] = 'West Asia',&lt;br /&gt;
	['eastern-europe'] = 'Eastern Europe',&lt;br /&gt;
	['europe'] = 'Europe',&lt;br /&gt;
	['northern-europe'] = 'Northern Europe',&lt;br /&gt;
	['southern-europe'] = 'Southern Europe',&lt;br /&gt;
	['western-europe'] = 'Western Europe',&lt;br /&gt;
	['oceania'] = 'Oceania',&lt;br /&gt;
	['business-and-economics'] = 'business and economics',&lt;br /&gt;
	['education'] = 'education',&lt;br /&gt;
	['history'] = 'history',&lt;br /&gt;
	['military-and-warfare'] = 'military and warfare',&lt;br /&gt;
	['politics-and-government'] = 'politics and government',&lt;br /&gt;
	['society'] = 'society',&lt;br /&gt;
	['transportation'] = 'transportation',&lt;br /&gt;
	['biology'] = 'biology',&lt;br /&gt;
	['chemistry'] = 'chemistry',&lt;br /&gt;
	['computing'] = 'computing',&lt;br /&gt;
	['earth-and-environment'] = 'earth and environment',&lt;br /&gt;
	['engineering'] = 'engineering',&lt;br /&gt;
	['libraries-and-information'] = 'libraries and information',&lt;br /&gt;
	['mathematics'] = 'mathematics',&lt;br /&gt;
	['medicine-and-health'] = 'medicine and health',&lt;br /&gt;
	['physics'] = 'physics',&lt;br /&gt;
	['stem'] = 'STEM',&lt;br /&gt;
	['space'] = 'space',&lt;br /&gt;
	['technology'] = 'technology'&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	local ns = mw.title.getCurrentTitle().namespace&lt;br /&gt;
	if ns ~= 118 and ns ~= 2 then&lt;br /&gt;
		return '[[Category:Draft topics used in wrong namespace]]'&lt;br /&gt;
	end&lt;br /&gt;
	local str = ''&lt;br /&gt;
	for _, topic in ipairs(args) do&lt;br /&gt;
		if topic == 'unsorted' then&lt;br /&gt;
			str = str .. '[[Category:Draft articles (unsorted topic)]]'&lt;br /&gt;
			break&lt;br /&gt;
		end&lt;br /&gt;
		local cat = categories[topic]&lt;br /&gt;
		if cat ~= nil then&lt;br /&gt;
			str = str .. '[[Category:Draft articles on ' .. cat .. ']]'&lt;br /&gt;
		else &lt;br /&gt;
			str = str .. '&amp;lt;div class=error&amp;gt;Invalid draft topic: ' .. topic .. &lt;br /&gt;
				'&amp;lt;/div&amp;gt;[[Category:Draft articles tagged with invalid topic parameter]]'&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return str&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>