Module:Copied: Difference between revisions

Content deleted Content added
mNo edit summary
optimize
Line 16:
local text = ""
text = text .. "Text and/or other creative content from "
if not (from_oldid == "") then
text = text .string.format("%s "[%s this version] of", ..text, tostring(mw.uri.fullUrl(from, {oldid=from_oldid} )) .. " this version] of ")
end
text = text .string. format("%s[[" .. from .."%s]]" ,text,from)
if (merge == "yes") or (not afd == "") then
text = text .. " was merged into "
Line 32:
end
text = text .. "]]"
if not (diff == "") then
text = text .. " with [" .. diff .. " this edit]"
elseif not (to_oldid == "") then
text = text .. " with [" .. tostring(mw.uri.fullUrl(to,{diff=to_diff, oldid=to_oldid} )) .. " this edit]"
end
if not (date == "") then
text = text .. " on " .. date
end
if not (afd == "") then
text = text .. " after being [["
if not mw.ustring.match(afd, "Wikipedia:", 1 ) then --If no venue is given add AfD prefix
text = text .. "Wikipedia:Articles for deletion/"
end