<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://archives.azdeninc.org:443/index.php?action=history&amp;feed=atom&amp;title=Module%3ACopied</id>
	<title>Module:Copied - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://archives.azdeninc.org:443/index.php?action=history&amp;feed=atom&amp;title=Module%3ACopied"/>
	<link rel="alternate" type="text/html" href="https://archives.azdeninc.org:443/index.php?title=Module:Copied&amp;action=history"/>
	<updated>2026-04-19T05:53:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://archives.azdeninc.org:443/index.php?title=Module:Copied&amp;diff=258&amp;oldid=prev</id>
		<title>AzazelMango: Created page with &quot;local MessageBox = require(&#039;Module:Message box&#039;)   local p = {}  local function singleText(args) 	local from_oldid = args[&quot;from_oldid&quot;] or args[&quot;from_oldid1&quot;] or &quot;&quot; 	local from = args[&quot;from&quot;] or args[&quot;from1&quot;] or &quot;&quot; 	local to = args[&quot;to&quot;] or args[&quot;to1&quot;] or &quot;&quot; 	local date = args[&quot;date&quot;] or args[&quot;date1&quot;] or &quot;&quot; 	local afd = args[&quot;afd&quot;] or args[&quot;afd1&quot;] or &quot;&quot; 	local merge = args[&quot;merge&quot;] or args[&quot;merge1&quot;] or &quot;&quot; 	local mergedFrom = args[&quot;mergedFrom&quot;] or &quot;&quot; 	local text 	if (merg...&quot;</title>
		<link rel="alternate" type="text/html" href="https://archives.azdeninc.org:443/index.php?title=Module:Copied&amp;diff=258&amp;oldid=prev"/>
		<updated>2026-01-20T12:04:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local MessageBox = require(&amp;#039;Module:Message box&amp;#039;)   local p = {}  local function singleText(args) 	local from_oldid = args[&amp;quot;from_oldid&amp;quot;] or args[&amp;quot;from_oldid1&amp;quot;] or &amp;quot;&amp;quot; 	local from = args[&amp;quot;from&amp;quot;] or args[&amp;quot;from1&amp;quot;] or &amp;quot;&amp;quot; 	local to = args[&amp;quot;to&amp;quot;] or args[&amp;quot;to1&amp;quot;] or &amp;quot;&amp;quot; 	local date = args[&amp;quot;date&amp;quot;] or args[&amp;quot;date1&amp;quot;] or &amp;quot;&amp;quot; 	local afd = args[&amp;quot;afd&amp;quot;] or args[&amp;quot;afd1&amp;quot;] or &amp;quot;&amp;quot; 	local merge = args[&amp;quot;merge&amp;quot;] or args[&amp;quot;merge1&amp;quot;] or &amp;quot;&amp;quot; 	local mergedFrom = args[&amp;quot;mergedFrom&amp;quot;] or &amp;quot;&amp;quot; 	local text 	if (merg...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local MessageBox = require(&amp;#039;Module:Message box&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function singleText(args)&lt;br /&gt;
	local from_oldid = args[&amp;quot;from_oldid&amp;quot;] or args[&amp;quot;from_oldid1&amp;quot;] or &amp;quot;&amp;quot;&lt;br /&gt;
	local from = args[&amp;quot;from&amp;quot;] or args[&amp;quot;from1&amp;quot;] or &amp;quot;&amp;quot;&lt;br /&gt;
	local to = args[&amp;quot;to&amp;quot;] or args[&amp;quot;to1&amp;quot;] or &amp;quot;&amp;quot;&lt;br /&gt;
	local date = args[&amp;quot;date&amp;quot;] or args[&amp;quot;date1&amp;quot;] or &amp;quot;&amp;quot;&lt;br /&gt;
	local afd = args[&amp;quot;afd&amp;quot;] or args[&amp;quot;afd1&amp;quot;] or &amp;quot;&amp;quot;&lt;br /&gt;
	local merge = args[&amp;quot;merge&amp;quot;] or args[&amp;quot;merge1&amp;quot;] or &amp;quot;&amp;quot;&lt;br /&gt;
	local mergedFrom = args[&amp;quot;mergedFrom&amp;quot;] or &amp;quot;&amp;quot;&lt;br /&gt;
	local text&lt;br /&gt;
	if (mergedFrom == &amp;#039;yes&amp;#039;) then&lt;br /&gt;
		text = &amp;quot;The content of&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		text = &amp;quot;Text and/or other creative content from&amp;quot; &lt;br /&gt;
	end&lt;br /&gt;
	if not (from_oldid == &amp;quot;&amp;quot;) then&lt;br /&gt;
		text = string.format(&amp;quot;%s [%s this version] of&amp;quot;, text, tostring(mw.uri.fullUrl(from, {oldid=from_oldid} )))&lt;br /&gt;
	end&lt;br /&gt;
	if from then&lt;br /&gt;
		text = string.format(&amp;quot;%s &amp;lt;span class=&amp;#039;plainlinks&amp;#039;&amp;gt;[%s %s]&amp;lt;/span&amp;gt;&amp;quot;,text, tostring(mw.uri.fullUrl(from, {redirect=&amp;quot;no&amp;quot;} )), from)&lt;br /&gt;
	else&lt;br /&gt;
		text = text .. &amp;#039;[[]]&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	if (merge == &amp;quot;yes&amp;quot;) or (mergedFrom == &amp;quot;yes&amp;quot;) or not (afd == &amp;quot;&amp;quot;) then&lt;br /&gt;
		text = text .. &amp;quot; was [[Wikipedia:Merging|merged]] into&amp;quot;&lt;br /&gt;
	else &lt;br /&gt;
		text = text .. &amp;quot; was copied or moved into&amp;quot;&lt;br /&gt;
	end &lt;br /&gt;
	if (to == &amp;quot;&amp;quot;) then -- If no target given assume current page is the target&lt;br /&gt;
		to = &amp;quot;:&amp;quot; .. mw.title.getCurrentTitle().subjectPageTitle.fullText&lt;br /&gt;
	end&lt;br /&gt;
	text = string.format(&amp;quot;%s [[%s]]&amp;quot;, text, to)&lt;br /&gt;
	local diff = args[&amp;quot;diff&amp;quot;] or args[&amp;quot;diff1&amp;quot;]&lt;br /&gt;
	local to_diff = args[&amp;quot;to_diff&amp;quot;] or args[&amp;quot;to_diff1&amp;quot;]&lt;br /&gt;
	local to_oldid = args[&amp;quot;to_oldid&amp;quot;] or args[&amp;quot;to_oldid1&amp;quot;] &lt;br /&gt;
	if (diff) then&lt;br /&gt;
		text = string.format(&amp;quot;%s with [%s this edit]&amp;quot;,text,diff)&lt;br /&gt;
	elseif (to_oldid or to_diff) then&lt;br /&gt;
		text = string.format(&amp;quot;%s with [%s this edit]&amp;quot;,text,tostring(mw.uri.fullUrl(to, {diff=to_diff or &amp;quot;next&amp;quot;, oldid = to_oldid or &amp;quot;prev&amp;quot;} )))&lt;br /&gt;
	end&lt;br /&gt;
	if not (date == &amp;quot;&amp;quot;) then&lt;br /&gt;
		text = string.format(&amp;quot;%s on %s&amp;quot;,text,date)&lt;br /&gt;
	end&lt;br /&gt;
	if not (afd == &amp;quot;&amp;quot;) then&lt;br /&gt;
		if (mw.ustring.match(afd, &amp;quot;Wikipedia:&amp;quot;, 1 )) then --If no venue is given add AfD prefix&lt;br /&gt;
			text = string.format(&amp;quot;%s after being [[%s|nominated for deletion]]&amp;quot;,text,afd)&lt;br /&gt;
		else&lt;br /&gt;
			text = string.format(&amp;quot;%s after being [[Wikipedia:Articles for deletion/%s|nominated for deletion]]&amp;quot;,text,afd)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	text = text .. &amp;quot;.&amp;quot; -- Finish first sentence &lt;br /&gt;
	text = string.format(&amp;quot;%s The former page&amp;#039;s [%s history] now serves to [[WP:Copying within Wikipedia|provide attribution]] for that content in the latter page, and it must not be deleted as long as the latter page exists.&amp;quot;,text,tostring(mw.uri.fullUrl(from,{action=&amp;quot;history&amp;quot;}) or &amp;quot;&amp;quot;))&lt;br /&gt;
	if (args[&amp;quot;talk&amp;quot;] == &amp;#039;yes&amp;#039; or (mergedFrom == &amp;#039;yes&amp;#039; and args[&amp;quot;talk&amp;quot;] ~= &amp;#039;no&amp;#039;)) then&lt;br /&gt;
		local fromPage = mw.title.new(from)&lt;br /&gt;
		local fromTalk = fromPage and fromPage.talkPageTitle.fullText or &amp;quot;Talk:&amp;quot; .. from&lt;br /&gt;
		text = string.format(&amp;quot;%s For the discussion at that location, see its [[%s|talk page]].&amp;quot;, text, fromTalk)&lt;br /&gt;
	end&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function row(args, i)&lt;br /&gt;
	local text = &amp;quot;&amp;quot;&lt;br /&gt;
	local afd = args[&amp;quot;afd&amp;quot; .. i]&lt;br /&gt;
	if (afd or args[&amp;quot;merge&amp;quot; .. i] or args[&amp;quot;mergedFrom&amp;quot;]) then&lt;br /&gt;
		text = string.format(&amp;quot;%s\n*Merged&amp;quot;,text)&lt;br /&gt;
	else &lt;br /&gt;
		text = string.format(&amp;quot;%s\n*Copied&amp;quot;,text)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local from = args[&amp;quot;from&amp;quot; .. i] or &amp;quot;&amp;quot;&lt;br /&gt;
	text = string.format(&amp;quot;%s [%s %s] (&amp;quot;,text,tostring(mw.uri.fullUrl(from, {redirect = &amp;quot;no&amp;quot;} )),from)&lt;br /&gt;
&lt;br /&gt;
	local from_oldid = args[&amp;quot;from_oldid&amp;quot; .. i]&lt;br /&gt;
	if (from_oldid) then&lt;br /&gt;
		text = string.format(&amp;quot;%s[%s oldid], &amp;quot;,text,tostring(mw.uri.fullUrl(from, {oldid = from_oldid} )))&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local talk = args[&amp;quot;talk&amp;quot;.. i] or &amp;quot;&amp;quot;&lt;br /&gt;
	if (talk == &amp;quot;yes&amp;quot; or (args[&amp;quot;mergedFrom&amp;quot;] == &amp;#039;yes&amp;#039; and talk ~= &amp;quot;no&amp;quot;)) then&lt;br /&gt;
		local fromPage = mw.title.new(from)&lt;br /&gt;
		local fromTalk = fromPage and fromPage.talkPageTitle.fullText or &amp;quot;Talk:&amp;quot; .. from&lt;br /&gt;
		text = string.format(&amp;quot;%s[[%s|talk]], &amp;quot;, text, fromTalk)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local to = args[&amp;quot;to&amp;quot;.. i] or &amp;quot;&amp;quot;&lt;br /&gt;
	if (to == &amp;quot;&amp;quot;) then -- If no target given assume current page is the target&lt;br /&gt;
		to = &amp;quot;:&amp;quot; .. mw.title.getCurrentTitle().subjectPageTitle.fullText&lt;br /&gt;
	end&lt;br /&gt;
	text = string.format(&amp;quot;%s[%s history]) → [[%s]]&amp;quot;,text,tostring(mw.uri.fullUrl(from, {action = &amp;quot;history&amp;quot;} )), to)&lt;br /&gt;
	&lt;br /&gt;
	local diff = args[&amp;quot;diff&amp;quot; .. i]&lt;br /&gt;
	if (diff) then&lt;br /&gt;
		text = string.format(&amp;quot;%s ([%s diff])&amp;quot;,text,diff)&lt;br /&gt;
	elseif (args[&amp;quot;to_oldid&amp;quot; .. i] or args[&amp;quot;to_diff&amp;quot;.. i]) then&lt;br /&gt;
		local to_diff = args[&amp;quot;to_diff&amp;quot;.. i] or &amp;quot;next&amp;quot;&lt;br /&gt;
		local to_oldid = args[&amp;quot;to_oldid&amp;quot; .. i] or &amp;quot;prev&amp;quot;&lt;br /&gt;
		text = string.format(&amp;quot;%s ([%s diff])&amp;quot;,text,tostring(mw.uri.fullUrl(to, {diff=to_diff, oldid = to_oldid} )))&lt;br /&gt;
	end&lt;br /&gt;
	local date = args[&amp;quot;date&amp;quot; .. i]&lt;br /&gt;
	if (date) then&lt;br /&gt;
		text = string.format(&amp;quot;%s on %s&amp;quot;,text,date)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if (afd) then&lt;br /&gt;
		if (mw.ustring.match(afd, &amp;quot;Wikipedia:&amp;quot;, 1 )) then --If no venue is given add AfD prefix&lt;br /&gt;
			text = string.format(&amp;quot;%s after being [[%s|nominated for deletion]]&amp;quot;,text,afd)&lt;br /&gt;
		else&lt;br /&gt;
			text = string.format(&amp;quot;%s after being [[Wikipedia:Articles for deletion/%s|nominated for deletion]]&amp;quot;,text,afd)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if (not (args[&amp;quot;to_oldid&amp;quot; .. i] or args[&amp;quot;to_diff&amp;quot;.. i])) then&lt;br /&gt;
		if (args[&amp;quot;mergedFrom&amp;quot;] == &amp;#039;yes&amp;#039;) then&lt;br /&gt;
			text = string.format(&amp;quot;%s[[Category:Wikipedia pages using merged-from template without oldid]]&amp;quot;,text)&lt;br /&gt;
		else&lt;br /&gt;
			text = string.format(&amp;quot;%s[[Category:Wikipedia pages using copied template without oldid]]&amp;quot;,text)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function list(args)&lt;br /&gt;
	local text = &amp;quot;&amp;quot;&lt;br /&gt;
	local from1 = args[&amp;quot;from1&amp;quot;]&lt;br /&gt;
	if (from1) then --Support from1 and from in case of multiple rows&lt;br /&gt;
		text = string.format(&amp;quot;%s%s&amp;quot;,text,row(args, 1))&lt;br /&gt;
	else&lt;br /&gt;
		text = string.format(&amp;quot;%s%s&amp;quot;,text,row(args, &amp;quot;&amp;quot;))&lt;br /&gt;
	end&lt;br /&gt;
	local i = 2&lt;br /&gt;
	while (args[&amp;quot;from&amp;quot; .. i]) do&lt;br /&gt;
		text = string.format(&amp;quot;%s%s&amp;quot;,text,row(args, i))&lt;br /&gt;
		i = i + 1 --Check if from(i+1) exists&lt;br /&gt;
	end&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
	&lt;br /&gt;
local function multiText(args)&lt;br /&gt;
	local pageType&lt;br /&gt;
	if (mw.title.getCurrentTitle():inNamespace(1)) then&lt;br /&gt;
		pageType = &amp;quot;article&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		pageType = &amp;quot;page&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local historyList = list(args)&lt;br /&gt;
	if (args[&amp;quot;collapse&amp;quot;] == &amp;#039;yes&amp;#039;) then&lt;br /&gt;
		local collapsedText&lt;br /&gt;
		if (args[&amp;quot;mergedFrom&amp;quot;] == &amp;#039;yes&amp;#039;) then&lt;br /&gt;
			collapsedText = &amp;#039;&amp;lt;table style=&amp;quot;width:100%%; background: transparent;&amp;quot; class=&amp;quot;mw-collapsible mw-collapsed&amp;quot;&amp;gt;\n&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;Merged pages:&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;\n&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;&amp;#039;&lt;br /&gt;
		else&lt;br /&gt;
			collapsedText = &amp;#039;&amp;lt;table style=&amp;quot;width:100%%; background: transparent;&amp;quot; class=&amp;quot;mw-collapsible mw-collapsed&amp;quot;&amp;gt;\n&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;Copied pages:&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;\n&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;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
		historyList = string.format(collapsedText, historyList)&lt;br /&gt;
	end&lt;br /&gt;
    &lt;br /&gt;
    local mergedFrom&lt;br /&gt;
    local copies&lt;br /&gt;
    if (args[&amp;quot;mergedFrom&amp;quot;]) then&lt;br /&gt;
    	mergedFrom = &amp;quot;merged into&amp;quot;&lt;br /&gt;
    	copies = &amp;quot;this page&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		mergedFrom = &amp;quot;copied to or from&amp;quot;&lt;br /&gt;
		copies = &amp;quot;the copies&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	local text = &amp;quot;Text has been %s this %s; see the list below. The source pages now serve to [[WP:Copying within Wikipedia|provide attribution]] for the content in the destination pages and must not be deleted as long as %s exist. For attribution and to access older versions of the copied text, please see the history links below. %s&amp;quot;&lt;br /&gt;
	text = string.format(text, mergedFrom, pageType, copies, historyList)&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function categories(args,multiUsed)&lt;br /&gt;
	local to_oldid = args[&amp;quot;to_oldid&amp;quot;] or args[&amp;quot;to_diff&amp;quot;] or args[&amp;quot;diff&amp;quot;] or args[&amp;quot;to_oldid1&amp;quot;] or args[&amp;quot;to_diff1&amp;quot;] or args[&amp;quot;diff1&amp;quot;]&lt;br /&gt;
	local from_oldid = args[&amp;quot;from_oldid&amp;quot;] or args[&amp;quot;from_oldid1&amp;quot;]&lt;br /&gt;
	local text = &amp;quot;[[Category:Wikipedia pages using copied template]]&amp;quot; &lt;br /&gt;
	if ((not from_oldid) or (not to_oldid)) and not multiUsed then&lt;br /&gt;
		if (args[&amp;quot;mergedFrom&amp;quot;] == &amp;#039;yes&amp;#039;) then&lt;br /&gt;
			text = text .. &amp;quot;[[Category:Wikipedia pages using merged-from template without oldid]]&amp;quot;&lt;br /&gt;
		else&lt;br /&gt;
			text = text .. &amp;quot;[[Category:Wikipedia pages using copied template without oldid]]&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function BannerText(args)&lt;br /&gt;
	--Checks if there are multiple rows&lt;br /&gt;
	local text&lt;br /&gt;
	local from2 = args[&amp;quot;from2&amp;quot;]&lt;br /&gt;
	if (from2) then&lt;br /&gt;
		text = multiText(args) .. categories(args,true)&lt;br /&gt;
	else&lt;br /&gt;
		text = singleText(args) .. categories(args,false)&lt;br /&gt;
	end&lt;br /&gt;
	return text&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderBanner(args)&lt;br /&gt;
	local image&lt;br /&gt;
	if args.mergedFrom then&lt;br /&gt;
		image = &amp;#039;[[File:Mergefrom.svg|frameless|50px|link=|alt=]]&amp;#039;&lt;br /&gt;
	else&lt;br /&gt;
		image = &amp;#039;[[File:Splitsection.svg|frameless|50px|link=|alt=]]&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	return MessageBox.main(&amp;#039;tmbox&amp;#039;, {&lt;br /&gt;
		class = &amp;quot;copiednotice&amp;quot;,&lt;br /&gt;
		small = args[&amp;quot;small&amp;quot;],&lt;br /&gt;
		image = image,&lt;br /&gt;
		text = BannerText(args)&lt;br /&gt;
	})&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
	local args = getArgs(frame)&lt;br /&gt;
	return renderBanner(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>AzazelMango</name></author>
	</entry>
</feed>