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:44, 13 February 2021 (Elliot321 moved page Module:Sandbox/Elliot321/redirecttotest to Module:RedirectToNamespace without leaving a redirect: this works). 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() 
	targetNamespace = titleObject.redirectTarget.nsText
	return targetNamespace
end

return p