Module:Adjacent stations/sandbox: Difference between revisions

Content deleted Content added
Undid revision 838758378 by Szqecs (talk)
Undid revision 838758211 by Szqecs (talk)
Line 89:
for i, v in ipairs(index) do
local systemInfo = data[v]['system info'] or data[v][1]
if args.system[v] then
table.insert(t, table.concat({'\n|-',
'\n!', style['header leftcell'], 'Preceding station',
'\n!', style['header midcell'], systemInfodata[v][1]['system title'],
'\n!', style['header rightcell'], 'Following station'
}))
Line 121 ⟶ 120:
local function station(s)
if _line['station format'] then
return _line['station format'][s] or systemInfodata[v][1]['station format'][s] or mw.ustring.gsub(_line['station format'][1] or systemInfodata[v][1]['station format'][1], '%%1', s)
else
return systemInfodata[v][1]['station format'][s] or mw.ustring.gsub(systemInfodata[v][1]['station format'][1], '%%1', s)
end
end