Module:IsValidPageName

Revision as of 21:01, 29 October 2018 by Ayzek (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Script error: Lua error: Internal error: The interpreter exited with status 127.

-- 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 "valid"
	else
		return ""
	end
end

return export