<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ml.sayahna.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AMultiple_issues</id>
	<title>Module:Multiple issues - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ml.sayahna.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AMultiple_issues"/>
	<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Module:Multiple_issues&amp;action=history"/>
	<updated>2026-04-24T01:04:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.5</generator>
	<entry>
		<id>http://ml.sayahna.org/index.php?title=Module:Multiple_issues&amp;diff=6079&amp;oldid=prev</id>
		<title>Admin: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Module:Multiple_issues&amp;diff=6079&amp;oldid=prev"/>
		<updated>2014-04-07T07:24:18Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:24, 7 April 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>http://ml.sayahna.org/index.php?title=Module:Multiple_issues&amp;diff=6078&amp;oldid=prev</id>
		<title>Theopolisme: Here's what I've got right now (WIP)</title>
		<link rel="alternate" type="text/html" href="http://ml.sayahna.org/index.php?title=Module:Multiple_issues&amp;diff=6078&amp;oldid=prev"/>
		<updated>2013-12-09T23:56:22Z</updated>

		<summary type="html">&lt;p&gt;Here&amp;#039;s what I&amp;#039;ve got right now (WIP)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This powers {{multiple issues}}.&lt;br /&gt;
&lt;br /&gt;
p = {}&lt;br /&gt;
&lt;br /&gt;
-- Constants&lt;br /&gt;
local yesno = require('Module:Yesno')&lt;br /&gt;
local getArgs = require('Module:Arguments').getArgs&lt;br /&gt;
local lang = mw.language.getContentLanguage()&lt;br /&gt;
&lt;br /&gt;
function generateOutput(frame, data)&lt;br /&gt;
	local text = [=[&amp;lt;table class=&amp;quot;collapsible%s&amp;quot; style=&amp;quot;width:95%%; background:transparent;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th style=&amp;quot;text-align:left; padding:0.2em 2px 0.2em 0;&amp;quot;&amp;gt;This %s has multiple issues. &amp;lt;span style=&amp;quot;font-weight: normal;&amp;quot;&amp;gt;Please help '''[%s improve it]''' or discuss these issues on the '''[[%s|talk page]]'''.&amp;lt;/span&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;%s&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;]=]&lt;br /&gt;
	text = mw.ustring.format(text, data.collapsed, data.section, data.editlink, data.talkpage, data.contents)&lt;br /&gt;
	local args = {&lt;br /&gt;
		name = 'Multiple issues',&lt;br /&gt;
		doc = 'no',&lt;br /&gt;
		subst = '&amp;lt;includeonly&amp;gt;{{subst:&amp;lt;/includeonly&amp;gt;&amp;lt;includeonly&amp;gt;substcheck}}&amp;lt;/includeonly&amp;gt;',&lt;br /&gt;
		class = 'ambox-multiple_issues compact-ambox',&lt;br /&gt;
		type = 'content',&lt;br /&gt;
		text = text&lt;br /&gt;
	}&lt;br /&gt;
	return frame:expandTemplate{title = 'Ambox', args = args}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function processDepreciated(frame, tableargs, noticetype, demospace)&lt;br /&gt;
	-- Generates the templates for args provided using the depreciated&lt;br /&gt;
	-- {{multiple issues|unreferenced=January 2013|advert=March 2012}} method&lt;br /&gt;
&lt;br /&gt;
	local depreciated = {} -- {templatename: date} for all matched depreciated templates&lt;br /&gt;
	local outputTable = {} -- List of the final templates, in wikicode form&lt;br /&gt;
	local depreciatedTemplates = { -- {param: template} List of all possible parameters to convert to templates&lt;br /&gt;
		['abbreviations'] = 'Abbreviations';&lt;br /&gt;
		['advert'] = 'Advert';&lt;br /&gt;
		['autobiography'] = 'Autobiography';&lt;br /&gt;
		['BLP IMDb refimprove'] = 'BLP IMDb refimprove';&lt;br /&gt;
		['BLP IMDB refimprove'] = 'BLP IMDb refimprove';&lt;br /&gt;
		['BLP IMDb-only refimprove'] = 'BLP IMDb-only refimprove';&lt;br /&gt;
		['BLP IMDB-only refimprove'] = 'BLP IMDb-only refimprove';&lt;br /&gt;
		['BLP sources'] = 'BLP sources';&lt;br /&gt;
		['BLP unsourced'] = 'BLP unsourced';&lt;br /&gt;
		['BLPsources'] = 'BLP sources';&lt;br /&gt;
		['BLPunsourced'] = 'BLP unsourced';&lt;br /&gt;
		['citation style'] = 'Citation style';&lt;br /&gt;
		['citation-style'] = 'Citation style';&lt;br /&gt;
		['citationstyle'] = 'Citation style';&lt;br /&gt;
		['cite check'] = 'Cite check';&lt;br /&gt;
		['citecheck'] = 'Cite check';&lt;br /&gt;
		['cleanup-laundry'] = 'Cleanup-laundry';&lt;br /&gt;
		['cleanup-link rot'] = 'Cleanup-link rot';&lt;br /&gt;
		['cleanup-reorganize'] = 'Cleanup-reorganize';&lt;br /&gt;
		['cleanup-rewrite'] = 'Cleanup-rewrite';&lt;br /&gt;
		['cleanup-spam'] = 'Cleanup-spam';&lt;br /&gt;
		['cleanup'] = 'Cleanup';&lt;br /&gt;
		['coi'] = 'COI';&lt;br /&gt;
		['COI'] = 'COI';&lt;br /&gt;
		['colloquial'] = 'Colloquial';&lt;br /&gt;
		['confusing'] = 'Confusing';&lt;br /&gt;
		['context'] = 'Context';&lt;br /&gt;
		['contradict'] = 'Contradict';&lt;br /&gt;
		['copy edit'] = 'Copy edit';&lt;br /&gt;
		['copyedit'] = 'Copy edit';&lt;br /&gt;
		['criticism section'] = 'Criticism section';&lt;br /&gt;
		['criticisms'] = 'Criticism section';&lt;br /&gt;
		['crystal'] = 'Crystal';&lt;br /&gt;
		['dead end'] = 'Dead end';&lt;br /&gt;
		['deadend'] = 'Dead end';&lt;br /&gt;
		['disputed'] = 'Disputed';&lt;br /&gt;
		['essay-like'] = 'Essay-like';&lt;br /&gt;
		['essay'] = 'Essay-like';&lt;br /&gt;
		['example farm'] = 'Example farm';&lt;br /&gt;
		['examplefarm'] = 'Example farm';&lt;br /&gt;
		['external links'] = 'External links';&lt;br /&gt;
		['fancruft'] = 'Overly detailed';&lt;br /&gt;
		['fanpov'] = 'Fanpov';&lt;br /&gt;
		['fansite'] = 'Fanpov';&lt;br /&gt;
		['fiction'] = 'Fiction';&lt;br /&gt;
		['game guide'] = 'Game guide';&lt;br /&gt;
		['gameguide'] = 'Game guide';&lt;br /&gt;
		['globalize'] = 'Globalize';&lt;br /&gt;
		['histinfo'] = 'Historical information needed';&lt;br /&gt;
		['hoax'] = 'Hoax';&lt;br /&gt;
		['howto'] = 'Howto';&lt;br /&gt;
		['in-universe'] = 'In-universe';&lt;br /&gt;
		['inappropriate person'] = 'Inappropriate person';&lt;br /&gt;
		['inappropriate tone'] = 'Tone';&lt;br /&gt;
		['incomplete'] = 'Incomplete';&lt;br /&gt;
		['intro length'] = 'Lead too long';&lt;br /&gt;
		['intro-toolong'] = 'Lead too long';&lt;br /&gt;
		['intro-tooshort'] = 'Lead too short';&lt;br /&gt;
		['intromissing'] = 'Lead missing';&lt;br /&gt;
		['introrewrite'] = 'Lead rewrite';&lt;br /&gt;
		['jargon'] = 'Technical';&lt;br /&gt;
		['laundry'] = 'Cleanup-laundry';&lt;br /&gt;
		['laundrylists'] = 'Cleanup-laundry';&lt;br /&gt;
		['lead missing'] = 'Lead missing';&lt;br /&gt;
		['lead rewrite'] = 'Lead rewrite';&lt;br /&gt;
		['lead too long'] = 'Lead too long';&lt;br /&gt;
		['lead too short'] = 'Lead too short';&lt;br /&gt;
		['like resume'] = 'Like resume';&lt;br /&gt;
		['likeresume'] = 'Like resume';&lt;br /&gt;
		['linkrot'] = 'Cleanup-link rot';&lt;br /&gt;
		['long'] = 'Very long';&lt;br /&gt;
		['more footnotes'] = 'More footnotes';&lt;br /&gt;
		['news release'] = 'News release';&lt;br /&gt;
		['newsrelease'] = 'News release';&lt;br /&gt;
		['no footnotes'] = 'No footnotes';&lt;br /&gt;
		['notability'] = 'Notability';&lt;br /&gt;
		['notable'] = 'Notability';&lt;br /&gt;
		['npov'] = 'POV';&lt;br /&gt;
		['NPOV'] = 'POV';&lt;br /&gt;
		['one source'] = 'One source';&lt;br /&gt;
		['onesource'] = 'One source';&lt;br /&gt;
		['organize'] = 'Cleanup-reorganize';&lt;br /&gt;
		['original research'] = 'Original research';&lt;br /&gt;
		['orphan'] = 'Orphan';&lt;br /&gt;
		['out of date'] = 'Update';&lt;br /&gt;
		['over-quotation'] = 'Over-quotation';&lt;br /&gt;
		['overly detailed'] = 'Overly detailed';&lt;br /&gt;
		['peacock'] = 'Peacock';&lt;br /&gt;
		['plot'] = 'Plot';&lt;br /&gt;
		['pov-check'] = 'POV-check';&lt;br /&gt;
		['POV-check'] = 'POV-check';&lt;br /&gt;
		['pov'] = 'POV';&lt;br /&gt;
		['POV'] = 'POV';&lt;br /&gt;
		['primary sources'] = 'Primary sources';&lt;br /&gt;
		['primarysources'] = 'Primary sources';&lt;br /&gt;
		['prose'] = 'Prose';&lt;br /&gt;
		['quote farm'] = 'Over-quotation';&lt;br /&gt;
		['recentism'] = 'Recentism';&lt;br /&gt;
		['refimprove'] = 'Refimprove';&lt;br /&gt;
		['reorganisation'] = 'Cleanup-reorganize';&lt;br /&gt;
		['restructure'] = 'Cleanup-reorganize';&lt;br /&gt;
		['review'] = 'Review';&lt;br /&gt;
		['rewrite'] = 'Cleanup-rewrite';&lt;br /&gt;
		['sections'] = 'Sections';&lt;br /&gt;
		['self-published'] = 'Self-published';&lt;br /&gt;
		['spam'] = 'Cleanup-spam';&lt;br /&gt;
		['story'] = 'Story';&lt;br /&gt;
		['synthesis'] = 'Synthesis';&lt;br /&gt;
		['technical'] = 'Technical';&lt;br /&gt;
		['tone'] = 'Tone';&lt;br /&gt;
		['travel guide']  = 'Travel guide';&lt;br /&gt;
		['travelguide'] = 'Travel guide';&lt;br /&gt;
		['trivia'] = 'Trivia';&lt;br /&gt;
		['unbalanced'] = 'Unbalanced';&lt;br /&gt;
		['unref'] = 'Unreferenced';&lt;br /&gt;
		['unreferenced'] = 'Unreferenced';&lt;br /&gt;
		['unreliable sources'] = 'Unreliable sources';&lt;br /&gt;
		['unreliable'] = 'Unreliable sources';&lt;br /&gt;
		['update'] = 'Update';&lt;br /&gt;
		['very long'] = 'Very long';&lt;br /&gt;
		['verylong'] = 'Very long';&lt;br /&gt;
		['weasel'] = 'Weasel'&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	for template, date in pairs(tableargs) do&lt;br /&gt;
		if depreciatedTemplates[template] then&lt;br /&gt;
			-- Store the template name and value (date)&lt;br /&gt;
			depreciated[depreciatedTemplates[template]] = date&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Handle templates that spawn other templates&lt;br /&gt;
	if depreciated['BLP unsourced'] and not depreciated['Unreferenced'] then&lt;br /&gt;
		depreciated['Unreferenced'] = depreciated['BLP unsourced']&lt;br /&gt;
	end&lt;br /&gt;
	if depreciated['BLP sources'] and not depreciated['Refimprove'] then&lt;br /&gt;
		depreciated['Refimprove'] = depreciated['BLP sources']&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Now generate the html for each template&lt;br /&gt;
	for templatename, date in pairs(depreciated) do&lt;br /&gt;
		local templateArgs = {}&lt;br /&gt;
&lt;br /&gt;
		-- Section or article&lt;br /&gt;
 		templateArgs[1] = noticetype&lt;br /&gt;
&lt;br /&gt;
		-- Individualized template handling&lt;br /&gt;
		if templatename == 'Cleanup' then&lt;br /&gt;
			templateArgs.reason = tableargs.reason&lt;br /&gt;
			templateArgs.nocat = tableargs.nocat&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- Add date if possible, if invalid date then skip silently&lt;br /&gt;
		if #date &amp;gt; 0 then&lt;br /&gt;
			pcall(function () templateArgs.date = lang:formatDate('F Y', date) end)&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		-- Demospace flag if set&lt;br /&gt;
		if demospace then&lt;br /&gt;
			templateArgs.demospace = demospace&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		table.insert(outputTable, frame:expandTemplate{title = templatename, args = templateArgs})&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return outputTable&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	local title = mw.title.getCurrentTitle()&lt;br /&gt;
	local templatecontents = {} -- List of templates that will be wrapped by Multiple issues&lt;br /&gt;
&lt;br /&gt;
	-- Process arguments&lt;br /&gt;
	local noticetype = args.section and 'section' or 'article'&lt;br /&gt;
	local maintemplatecode, demospace, collapsed = args[1], args.demospace, args.collapsed&lt;br /&gt;
	args[1], args.section, args.demospace, args.collapsed = nil, nil, nil, nil&lt;br /&gt;
&lt;br /&gt;
	-- If there are additional arguments, the template is using the depreciated format,&lt;br /&gt;
	-- so run processDepreciated() to find them&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		templatecontents = processDepreciated(frame, args, noticetype, demospace)&lt;br /&gt;
		break&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Add maintemplatecode ({{multiple issues|1=xyz}} =&amp;gt; xyz) to the final template list&lt;br /&gt;
	table.insert(templatecontents, maintemplatecode)&lt;br /&gt;
&lt;br /&gt;
	-- Make the code to be inserted&lt;br /&gt;
	local finaltemplatecode = table.concat(templatecontents)&lt;br /&gt;
&lt;br /&gt;
	-- All templates should be provided as parameter 1. If they aren't, add a tracking category&lt;br /&gt;
	if args[2] then&lt;br /&gt;
		finaltemplatecode = finaltemplatecode + '[[Category:Pages using multiple issues with incorrect parameters]]'&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local output = generateOutput(frame,&lt;br /&gt;
					{&lt;br /&gt;
						collapsed = yesno(collapsed) and ' collapsed' or '',&lt;br /&gt;
						section = noticetype,&lt;br /&gt;
						editlink = title:fullUrl('action=edit'),&lt;br /&gt;
						talkpage = tostring(title.talkPageTitle),&lt;br /&gt;
						contents = finaltemplatecode&lt;br /&gt;
					})&lt;br /&gt;
&lt;br /&gt;
	return output&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Theopolisme</name></author>
		
	</entry>
</feed>