Module:Copied/sandbox: Difference between revisions

Content deleted Content added
No edit summary
test mergedFrom param
Line 20:
text = text .. '[[]]'
end
if (merge == "yes") or (mergedFrom == "yes") or not (afd == "") then
text = text .. " was merged into"
else
Line 134:
historyList = string.format(collapsedText, historyList)
end
 
local mergedFrom = args["mergedFrom"]
local text = "Text has been copied to or from 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 the copies exist. For attribution and to access older versions of the copied text, please see the history links below. %s"
if (mergedFrom) then
text = string.format(text, pageType, historyList)
mergedFrom = "merged into"
else
mergedFrom = "copied to or from"
end
local text = "Text has been copied to or from%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 the copies exist. For attribution and to access older versions of the copied text, please see the history links below. %s"
text = string.format(text, mergedFrom, pageType, historyList)
return text
end