Content deleted Content added
Restore mergedFrom image (and continue to protest against god modules and in favor of simple wikitext) |
Only apply wikilink escaping on automatically determined titles to avoid stacking colons onto manually escaped links |
||
(2 intermediate revisions by 2 users 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)
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)
|