Modul:IsValidPageName

Ji Wîkîpediya, ensîklopediya azad.
Jump to navigation Jump to search
Belgekirina modulê[biafirîne]
-- This module implements [[Template:isValidPageName]].

local export = {}

function export.isValidPageName(frame)
	local success, res = pcall(mw.title.new, frame.args[1])
	if success and res then
		return "derbasdar"
	else
		return ""
	end
end

return export