Module:IsValidPageName

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

-- This module implements [[Template:isValidPageName]].

local export = {}

function export.isValidPageName(frame)
	local res = mw.title.new(frame.args[1])
	
	if res then
		return "valid"
	else
		return ""
	end
end

return export