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.

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