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: a27ae0273dc24bba

Jump to content

Module:Sandbox/Galobtter

From Wikipedia, the free encyclopedia

local p = {}
function p.main(frame)
	local content = mw.getCurrentFrame():expandTemplate{ title = mw.title.getCurrentTitle() }
	hasCategory = content:find("%[%[%s*[Cc]ategory:%s*X1%s*%]%]")
	if hasCategory then
		return frame:expandTemplate{ title = 'Notice', args = { 'This page has the category X1' } }
	end
end
return p