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:Revisions until removed

From Wikipedia, the free encyclopedia
local p = {}
local getArgs = require('Module:Arguments').getArgs

function p.main(frame)
	local args = getArgs(frame)
	local num = tonumber(args['1'] or 2)
	num = num - 1
	if num > 0 then
		return '{{subst:revisions until removed|'..tostring(num)..'}}'
	else
		return '<!--{{subst:revisions until removed|'..tostring(num)..'}}-->'
	end
end

return p