Module:Copied: Difference between revisions

Content deleted Content added
Avoid accidentally transcluding categories when linking pages for Merged-from
Tag: Reverted
Only apply wikilink escaping on automatically determined titles to avoid stacking colons onto manually escaped links
 
(One intermediate revision by one other user not shown)
Line 32:
end
if (to == "") then -- If no target given assume current page is the target
to = ":" .. mw.title.getCurrentTitle().subjectPageTitle.fullText
end
text = string.format("%s [[:%s]]", text, to)
local diff = args["diff"] or args["diff1"]
local to_diff = args["to_diff"] or args["to_diff1"]
Line 89:
local to = args["to".. i] or ""
if (to == "") then -- If no target given assume current page is the target
to = ":" .. mw.title.getCurrentTitle().subjectPageTitle.fullText
end
text = string.format("%s[%s history]) → [[:%s]]",text,tostring(mw.uri.fullUrl(from, {action = "history"} )), to)
local diff = args["diff" .. i]