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

Jump to content

Module:Official website/testcases

From Wikipedia, the free encyclopedia
local p = require('Module:UnitTests')


function p:test_official_url()
	self:preprocess_equals_preprocess_many('{{#invoke:official website/sandbox|url|', '}}', '{{#invoke:official website|url|', '}}',
		{
			{'qid=Q95'},
			{'qid=Q907311'},
			{''}
		}, {nowiki = 1})
end

function p:test_official_website()
	self:preprocess_equals_preprocess_many('{{#invoke:official website/sandbox|main|', '}}', '{{#invoke:official website|main|', '}}',
		{
			{'|qid=Q95'},
			{'example.com'},
			{'//example.com'},
			{'example.com'},
			{'//example.com'},
			{''},
			{'www.example.com/path?section=96'},
			{'1= www.example.com/path?section=96'},
			{'url= example.com'},
			{'URL= example.com'},
			{'http:/example.com'},
			{'http://example.com'},
			{'http://example.com/'},
			{'http://www.example.com:80'},
			{'https://example.com'},
			{'ftp://example.com'},
			{'http://example.com | Example'},
			{'url= http://example.com |name= Example'},
			{'http://example.com |format= flash'},
			{'http://example.com |mobile= http://m.example.com'},
			{'https://example.com |format= flash |mobile= https://m.example.com'}
		}, {nowiki = 1})
end

return p