Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// 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: a2323a993f4d5094

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