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

Jump to content

Module:Sandbox/RexxS/Textsplit

From Wikipedia, the free encyclopedia
--[[ Demonstrating the mw.text.split function --]]

local p = {}

function p.split(frame)
	local txt = frame.args.txt or ""
	local pids = {}
	if txt ~= "" then
		pids = mw.text.split(txt, "[, ]+")
	end
	local out = ">" .. table.concat(pids, "<<br>>") .. "<<br>Items: " .. #pids
	return out
end

return p