Module:Copied: Difference between revisions

Content deleted Content added
Undid revision 1305308250 by Aidan9382 (talk). Causes double-colon Linter errors at pages like Talk:Deltona, Florida. Category links need to use a leading colon.
Only apply wikilink escaping on automatically determined titles to avoid stacking colons onto manually escaped links
 
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)
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)