local p =
function p.l(frame) local f = frame.args -- 'f' for 'frame' local system = f[1] local t_system = mw.loadData('Module:Sandbox/Szqecs/' .. system .. '/table') -- 't' for 'table of data for ...' require('Module:Sandbox/Szqecs/' .. system .. '/functions') local t_output = local a = for i=1,10 do if f[i] then a[i] = f[i] end end
if r_count_func then rows_count = r_count_func(unpack(a)) else rows_count = 1 end for i = 1, rows_count do if interpret then interpret(unpack(a)) end local t_line = t_system[line] local i_final = t_line['n'] -- 'i' for 'index' local color = t_line['color'] local l_link = t_line['link'] -- 'l' for 'line' local function div(x, y) -- Text format shortcut if x
' .. y .. '
' elseif x
' .. y .. '
' end end if index > 1 then left = s_link(t_line[index-1]) -- 's' for 'station' else left = "Terminus" end if index < i_final then right = s_link(t_line[index+1]) else right = "Terminus" end if index > 2 then left_toward = div('s','toward ' .. s_link(t_line[1])) elseif index
2 then left_toward = div('s','Terminus') end if index < i_final - 1 then right_toward = div('s','toward ' .. s_link(t_line[i_final])) elseif index
i_final then right_toward = end local s = local style = local row = option = t_output[i] = option[position] end return table.concat(t_output, '\n')end
return p