Module:Copied: Difference between revisions

Content deleted Content added
more
test
Line 12:
local afd = args["afd"] or args["afd1"] or ""
local merge = args["merge"] or args["merge1"] or ""
local text
text = text .. "Text and/or other creative content from "
if not (from_oldid == "") then
text = text .. "[" .. tostring(mw.uri.fullUrl(from, {oldid=from_oldid} )) .. " this version] of "
Line 50 ⟶ 51:
end
 
local function row(args, i)
local text
local from_oldid = args["from_oldid"..i] or ""
local from = args["from"..i] or ""
local to_diff = args["to_diff"..i] or ""
local diff = args["diff"..i] or ""
local to_oldid = args["to_oldid"..i] or ""
local to = args["to"..i] or ""
local date = args["date"..i] or ""
local afd = args["afd"..i] or ""
local merge = args["merge"..i] or ""
if not (afd == "" and merge == "") then
text = text .. "Merged"
else
text = text .. "Copied"
end
text = text .. " [" .. tostring(mw.uri.fullUrl(from,{redirect=no} )) .. " " .. from .. "]"
text = text .. "("
if not from_oldid == "" then
text = text .. "[" .. tostring(mw.uri.fullUrl(from, {oldid=from_oldid} )) .. " oldid], "
end
text = text .. "[" .. tostring(mw.uri.fullUrl(from,{action="history"} )) .. " history]"
text = text .. ") → "
text = text .. "[[" .. to .. "]]"
if not (diff == "") then
text = text .. "([" .. diff .. " diff])"
elseif not (to_oldid == "") then
text = text .. "([" .. tostring(mw.uri.fullUrl(to,{diff=to_diff, oldid=to_oldid} )) .. " diff])"
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
text = text .. "Wikipedia:Articles for deletion/"
end
text = text .. afd .. "|after being nominated for deletion]]"
end
return text
end