Module:Copied/sandbox: Difference between revisions

Content deleted Content added
You should assume prev not current
better?
Line 32:
text = string.format("%s with [%s this edit]",text,diff)
elseif (to_oldid or to_diff) then
local to_diffto_diff2 = args["to_diff"..] ior args["to_diff1"] or "prev"
local to_oldidto_oldid2 = args["to_oldid"] ..or iargs["to_oldid1"] or ""
text = string.format("%s with [%s this edit]",text,tostring(mw.uri.fullUrl(to, {diff=to_diff or "prev", oldid = to_oldid or ""} )))
end
Line 70 ⟶ 72:
local diff = args["diff" .. i]
local to_oldid = args["to_oldid" .. i]
local to_diff = args["to_diff".. i] or ""
if (diff) then
text = string.format("%s ([%s diff])",text,diff)
elseif (args["to_oldid" .. i] or args["to_diff".. i]) then
local to_diff = args["to_diff".. i] or "prev"
text = string.format("%s ([%s diff])",text,tostring(mw.uri.fullUrl(to, {diff=to_diff or "prev", oldid = to_oldid or ""} )))
local to_oldid = args["to_oldid" .. i] or ""
text = string.format("%s ([%s diff])",text,tostring(mw.uri.fullUrl(to, {diff=to_diff or "prev", oldid = to_oldid or ""} )))
end
local date = args["date" .. i]