Module:IsValidPageName
Revision as of 02:38, 4 February 2020 by Joelmartin (talk | contribs) (Created page with "-- This module implements Template:isValidPageName. local export = {} function export.isValidPageName(frame) local success, res = pcall(mw.title.new, frame.args[1]) if...")
Documentation for this module may be created at Module:IsValidPageName/doc
-- 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