Module:Adjacent stations/sandbox: Difference between revisions

Content deleted Content added
System info variable.
mNo edit summary
Line 89:
for i, v in ipairs(index) do
local systemInfo_system = 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'], systemInfo_system['system title'],
'\n!', style['header rightcell'], 'Following station'
}))
Line 121:
local function station(s)
if _line['station format'] then
return _line['station format'][s] or systemInfo_system['station format'][s] or mw.ustring.gsub(_line['station format'][1] or systemInfo_system['station format'][1], '%%1', s)
else
return systemInfo_system['station format'][s] or mw.ustring.gsub(systemInfo_system['station format'][1], '%%1', s)
end
end