Module:Copied/sandbox: Difference between revisions

Content deleted Content added
Add more check cases (6 length OR chain, man i dont like doing that)
Weird string.format 1var usage, concat exists?
Line 17:
text = string.format("%s [[%s]]",text,from)
if (merge == "yes") or not (afd == "") then
text = stringtext .format(. "%s was merged into",text)
else
text = stringtext .format(. "%s was copied or moved into",text)
end
if (merge == "yes") and (to == "") then
Line 44:
end
end
text = stringtext .format(. "%s.",text) -- Finish first sentance
text = string.format("%s The former page'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 so long as the latter page exists.",text,tostring(mw.uri.fullUrl(from,{action="history"}) or ""))
return text
Line 140:
local text = "[[Category:Wikipedia pages using copied template]]"
if ((not from_oldid) or (not to_oldid)) and not multiUsed then
text = stringtext .format(. "%s[[Category:Wikipedia pages using copied template without oldid]]",text)
end
return text