Module:IsValidPageName

From RabastorWiki
Revision as of 13:07, 18 June 2015 by Admin (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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