Module:Copied/sandbox: Difference between revisions

Content deleted Content added
test row 'to' default
try fix row 'to'
Line 72:
local to = args["to".. i] or ""
if (to == "") then
text = string.format("%s [[%s:%s]]",text,mw.title.getCurrentTitle().nsText,mw.title.getCurrentTitle().text) --If no target given assume current page is the target
else
text = string.format("%s [[%s]]",text,to)
end
text = string.format("%s[%s history]) → [[%s]]",text,tostring(mw.uri.fullUrl(from, {action = "history"} )), to)