function r_count_func(...) if arg[n] then return (arg[n] - 1) / 3 else return 1 endend
function interpret(_, x, y, z) line = x position = z if x
'number' then local y = tonumber(y) if y < 5 then index = y - 2 elseif y > 22 then index = y else index = y - 1 end elseif y
'22a' then index = 22 end elseif x
'number' then local y = tonumber(y) if y < 4 then index = y else index = y - 1 end elseif y
function s_link(x) if x then hsr = stn = if not stn[x] and not hsr[x] then return '\[\[' .. x .. ' MRT station|' .. x .. '\]\]' elseif stn[x] then if stn[x]
then return '\[\[' .. x .. ' HSR station|' .. x .. '\]\]' else return '\[\[' .. hsr[x] .. ' station|' .. x .. '\]\]' end end endend