Jump to content

Module:RedirectData: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Created page with 'local p = {} function p.getRedirectToNamespace(frame) titleObject = mw.title.getCurrentTitle() redirectTarget = titleobject.redirectTarget return redirectTa...'
 
m fix
Line 3: Line 3:
function p.getRedirectToNamespace(frame)
function p.getRedirectToNamespace(frame)
titleObject = mw.title.getCurrentTitle()
titleObject = mw.title.getCurrentTitle()
redirectTarget = titleobject.redirectTarget
redirectTarget = titleObject.redirectTarget
return redirectTarget
return redirectTarget
end
end

Revision as of 05:36, 13 February 2021

local p = {}

function p.getRedirectToNamespace(frame)
	titleObject = mw.title.getCurrentTitle() 
	redirectTarget = titleObject.redirectTarget
	return redirectTarget
end

return p