Module:AlbWlxId

local str = {} function str.isCorrect(frame) id = frame.args[1] _, _, a, b, c = mw.ustring.find(id, "^(%d%d)-(%d%d%d)-(%d%d%d%d)$")

if (a==nil) or (b==nil) or (c==nil) then return " wrong Id:" .. id .. " "	else return ""..id.."" end end

function str.isCorrectWLM(frame) id = frame.args[1] _, _, a, b, c = mw.ustring.find(id, "^(%d%d)-(%d%d%d)-(%d%d%d%d)$")

if (a==nil) or (b==nil) or (c==nil) then return " wrong Id:" .. id .. " "	else return ""..id.."" 	end end

return str