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

Jump to content

Module:ParameterCount/testcases

From Wikipedia, the free encyclopedia
-- Unit tests for [[Module:ParameterCount]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_all()
	self:preprocess_equals_many('{{#invoke:ParameterCount/sandbox|all', '}}', {
		{'', '0'},
		{'|', '0'},
		{'|1', '1'},
		{'|A', '1'},
		{'|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20', '20'},
		{'|1| | |4|5|6|7|8|9|10', '8'},
		{'|checkblanks=no|1| | |4|5|6|7|8|9|10', '8'},
		{'|checkblanks=yes|1| | |4|5|6|7|8|9|10', '10'},
		{'|a=|b=|c=3|d=4|e=5|', '3'},
		{'|checkblanks=no|a=|b=|c=3|d=4|e=5|', '3'},
		{'|checkblanks=yes|a=|b=|c=3|d=4|e=5|', '5'},
	})
end

return p