end
if string.match( id, '^%l%l?%l?/%d%d%d?%d?/%d+$' ) then
return mw.text.split( id, '/' )
end
return false
end
--Do split before deployment of mw.text.split
function split( str, c )
local parts = {}
local current = ''
local length = string.len( str )
for i = 1,length do
local ch = string.char( string.byte( str, i ) )
if ch == c then
table.insert( parts, current )
current = ''
else
current = current .. ch
end
end
table.insert( parts, current )
return parts
end