Module:Adjacent stations/sandbox: Difference between revisions

Content deleted Content added
m Rename.
System info variable.
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'], data[v][1]systemInfo['system title'],
'\n!', style['header rightcell'], 'Following station'
}))
Line 120 ⟶ 121:
local function station(s)
if _line['station format'] then
return _line['station format'][s] or data[v][1]systemInfo['station format'][s] or mw.ustring.gsub(_line['station format'][1] or data[v][1]systemInfo['station format'][1], '%%1', s)
else
return data[v][1]systemInfo['station format'][s] or mw.ustring.gsub(data[v][1]systemInfo['station format'][1], '%%1', s)
end
end