Module:Sandbox/サンムル/bvid
< Module:Sandbox | サンムル
跳到导航
跳到搜索
return { validation = function(frame) local result = "" local id = mw.text.trim(frame.args.id or "") if id == "" then -- id是空字符串 elseif mw.ustring.match(id, "【正则表达式1】" ) then -- 匹配 result = result .. "[[Category:【正确的分类】]]" elseif mw.ustring.match(id, "【正则表达式2】" ) then -- 匹配 result = result .. "[[Category:【正确的分类】]]" -- …… else -- 不匹配 result = result .. "[[Category:【错误的分类】]]" end return frame:preprocess(result) --return result end }