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

Jump to content

Module:Sandbox/BrandonXLF/user space

From Wikipedia, the free encyclopedia

local getArgs = require('Module:Arguments').getArgs
local p = {}

function p.sandboxStatus(frame)
	local args = getArgs(frame)
	local title = mw.title.new(args[1])
	
	if not title.exists then
		return '<span style="background-color:darkred;height:10px;width:10px;display:inline-block;"></span>'
	end
	
	if title:getContent() == (args[2] or '') then
		return '<span style="background-color:green;height:10px;width:10px;display:inline-block;"></span>'
	end
	
	return '<span style="background-color:red;height:10px;width:10px;display:inline-block;"></span>'
end

return p