モジュール:IsValidPageName
2014年10月27日 (月) 01:55時点におけるimported>Mono Bookによる版 (ページの作成:「-- このモジュールは Template:IsValidPageName の実体です。 local export = {} function export.isValidPageName(frame) local success, res = pcall(mw.titl...」)
このモジュールについての説明文ページを モジュール: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