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

From Wikipedia, the free encyclopedia
local p = {}

function p.main(frame)
	local outStr
	local args = frame:getParent().args
	
	outStr = 'Pairs:\n'
	
	for k, v in pairs(args) do
		if not v then
			v = "[nil]"
		elseif v == "" then
			v = "[blank]"
		end
		outStr = outStr..'\n'..k..' = \t'..v..'\n'
	end
	
	outStr = outStr..'\niPairs:\n'
	
	for k, v in ipairs(args) do
		if not v then
			v = "[nil]"
		elseif v == "" then
			v = "[blank]"
		end
		outStr = outStr..'\n'..k..' = \t'..v..'\n'
	end
	
	return outStr
end

return p