Jump to content

मॉड्यूल:IsValidPageName

From KAZE.WIKI (हिन्दी)

इस मॉड्यूल हेतु प्रलेख मॉड्यूल:IsValidPageName/doc पर बनाया जा सकता है

-- このモジュールは [[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