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
ORD
Connection
HTTP/2
Language
Not provided

Ray ID: a46bc7b26e4f61fe

Jump to content

Module:Sandbox/RexxS/Blacklist

From Wikipedia, the free encyclopedia
-- fragment to demo exact matching for field names in blacklist
-- #invoke Sandbox/RexxS/Blacklist
local p = {}
p.isBlacklisted = function(frame)
	local blacklist = frame.args.suppressfields or "aaa; bbb; other title 1; ccc; ddd"
	local fieldname = frame.args.name or "title"
	if blacklist then
		blacklisted = false
		for wrd in string.gmatch(blacklist, "[^,;]+") do
			if fieldname == mw.text.trim(wrd) then
				blacklisted = true
				break
			end
		end
		if blacklisted then
			return "blacklisted"
		else
			return "not blacklisted"
		end
	end
end
return p