Module:Copied: Difference between revisions

Content deleted Content added
Apparently my page type check has been broken for months
Copy from sandbox per edit request
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 "prevnext", oldid = to_oldid or "prev"} )))
local to_diff2 = args["to_diff"] or args["to_diff1"] or "prev"
local to_oldid2 = args["to_oldid"] or args["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
if not (date == "") then
Line 75 ⟶ 73:
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 "prevnext"
local to_oldid = args["to_oldid" .. i] or "prev"
text = string.format("%s ([%s diff])",text,tostring(mw.uri.fullUrl(to, {diff=to_diff, oldid = to_oldid} )))
end