Module:IsValidPageName

Revision as of 12:27, 6 January 2018 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

-- 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