Jump to content

Module:RedirectData

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Elli (talk | contribs) at 05:42, 13 February 2021 (oops). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

local p = {}

function p.getRedirectToNamespace(frame)
	titleObject = mw.title.getCurrentTitle() 
	--redirectTarget = titleObject.redirectTarget or ""
	targetNamespace = titleObject.redirectTarget.nsText
	return targetNamespace
end

return p