Edge Rewrite
// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a24a0456db2bf8ab

Jump to content

Module:Sandbox/RexxS/Pagetitle

From Wikipedia, the free encyclopedia
--[[
Pagetitle
--]]

local p = {}

-- subjectpagetitle returns the name of the subject page when invoked from the talk page.
p.subjectpagetitle = function(frame)
	return mw.title.getCurrentTitle().subjectPageTitle.text
end

-- subjectpageid returns the id of the subject page when invoked from the talk page.
p.subjectpageid = function(frame)
	return mw.wikibase.getEntityIdForTitle( mw.title.getCurrentTitle().subjectPageTitle.text )
end

return p