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/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