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

Jump to content

Module:POTD kind/testcases

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

function p:test_kind()
	local tests = {
		['2026-01-18']='video',    -- [[Template:POTD protected/2026-01-18]]
		['2026-01-20']='pictures', -- [[Template:POTD protected/2026-01-20]]
		['2026-01-29']='picture',  -- [[Template:POTD protected/2026-01-29]]
		['2026-01-30']='video',    -- [[Template:POTD protected/2026-01-30]]
	}
	for date, expected_result in pairs(tests)
	do
		self:preprocess_equals('{{#invoke:POTD kind|kind|date=' .. date .. '}}', expected_result)
	end
end

return p