Module:Copied/sandbox: Difference between revisions

Content deleted Content added
fallback to next for to_diff and prev for to_oldid
Removed unused variables
Line 32:
text = string.format("%s with [%s this edit]",text,diff)
elseif (to_oldid or to_diff) then
text = string.format("%s with [%s this edit]",text,tostring(mw.uri.fullUrl(to, {diff=to_diff or "next", oldid = to_oldid or "prev"} )))
local to_diff2 = args["to_diff"] or args["to_diff1"] or "next"
local to_oldid2 = args["to_oldid"] or args["to_oldid1"] or "prev"
text = string.format("%s with [%s this edit]",text,tostring(mw.uri.fullUrl(to, {diff=to_diff, oldid = to_oldid or ""} )))
end
if not (date == "") then