Jump to content

Module:Archive number

Wikipedia se

Documentation for this module may be created at Module:Archive number/doc

-- This module implements {{archive number}}

local p = {}

function p.main()
	local subpage = mw.title.getCurrentTitle().subpageText
	local archiveNum = subpage:match('^Archive ([1-9][0-9]*)$')
	return archiveNum or '<strong class="error">Error: Invalid page name(s)</strong>'
end

return p