Module:Copied/sandbox: Difference between revisions

Content deleted Content added
Prevent getting incorrectly put into Category:Wikipedia pages using copied template without oldid when using a fromX higher than 1
Add more check cases (6 length OR chain, man i dont like doing that)
Line 136:
 
local function categories(args,multiUsed)
local to_oldid = args["to_oldid"] or args["to_diff"] or args["diff"] or args["to_oldid1"] or args["to_diff1"] or args["diff1"]
local from_oldid = args["from_oldid"] or args["from_oldid1"]
local text = "[[Category:Wikipedia pages using copied template]]"
if ((not from_oldid) or (not to_oldid)) and not multiUsed then
Line 151:
if (from2) then
text = multiText(args) .. categories(args,true)
else
elseif (not from2) then
text = singleText(args) .. categories(args,false)
end