Module:Copied: Difference between revisions

Content deleted Content added
more
some progress
Line 3:
local p = {}
local function singleText(args)
local from_oldid = args["from_oldid"] or args["from_oldid1"] or ""
local from = args["from"] or args["from1"] or ""
local to_diff = args["to_diff"] or args["to_diff1"] ""
local diff = args["diff"] or args["diff1"] or ""
local to_oldid = args["to_oldid"] or args["to_oldid1"] or ""
local to = args["to"] or args["to1"] or ""
local date = args["date"] or args["date1"] or ""
local afd = args["afd"] or args["afd1"] or ""
local merge = args["merge"] or args["merge1"] or ""
local text = "Text and/or other creative content from "
if not (from_oldid == "") then
Line 16 ⟶ 17:
end
text = text .. "[[" .. from .."]]"
textif (merge == text .. " was copiedyes") or moved(not intoafd == "") then
text = text .. "[["was .. to .. "]]merged into"
else
text = text .. " was copied or moved into "
end
text = text .. mergeRow(args,"[[" index)
if (merge == "yes") and to == "" then
text = text .. mw.title.getCurrentTitle().nsText .. ":" .. mw.title.getCurrentTitle().text
else
text = text .. copiedRow(args, index)to
end
text = text .. "]] "
if not (diff == "") then
text = text .. "with [" .. diff .. " this edit]"
Line 35 ⟶ 46:
end
 
local function mergeRowrow(args)
local text
return text
end
 
local function afdMergeRow()
local text
return text
end
 
local function copiedRow()
local text
return text
Line 51 ⟶ 52:
 
local function list(args)
local i=1
local text = ""
local from = args["from"] or args["from1"] or ""
while True do
if typenot args["from"] == "" then
if i==1 then
text = text .. row(args,0)
index = ""
else
text = text .. row(args,1)
index = i
end
local texti=2
if type == "" then
while Truei>0 do
break;
if args["from"..i==1] then
elseif type:lower() == "afd merge" then
text = text .. afdMergeRowrow(args, index1)
elseif type:lower() == "merge" then
text = text .. mergeRow(args, index)
else
indexi = ""-1
text = text .. copiedRow(args, index)
end
i = i + 1
end
return text