打开主菜单
文档图示 模块文档[查看] [编辑] [历史] [清除缓存]

宁波轨道交通相关条目数据模块,请勿直接引用此模块。

local p = {
	plain_link_template = "'''[[{line_link}|{line_title}]]'''",
}

-- 线路基本情况
p.lines = {
	['1'] = { title = "宁波轨道交通1号线|1号线", color = '0094cb' },
	['2'] = { title = "宁波轨道交通2号线|2号线", color = 'e80023' },
	['3'] = { title = "宁波轨道交通3号线|3号线", color = 'f1a82b' },
	['4'] = { title = "宁波轨道交通4号线|4号线", color = '00a252' },
	['5'] = { title = "宁波轨道交通5号线|5号线", color = '23508e' },
	['6'] = { title = "宁波轨道交通6号线|6号线", color = '800000' },
	['7'] = { title = "宁波轨道交通7号线|7号线", color = 'e00080' },
	-- ['S1'] = { title = "宁波至余慈城际铁路|宁余城际" },
	['S2'] = { title = "宁波至慈溪城际铁路|宁慈城际" },
	['S3'] = { title = "宁波至奉化城际铁路|宁奉城际", color = 'f1a82b' },
}

local lineAliases = {
	-- ['余'] = 'S1',
	-- ['馀'] = 'S1',
	['慈'] = 'S2',
	['奉'] = 'S3',
	['F'] = 'S3',
}
for k, v in pairs(lineAliases) do p.lines[k] = p.lines[v] end

-- 开通日期,注明“9999”表明开通年份无法确定
p.lines['1'].openDates = { ['#default'] = '2014-05-30', ['2'] = '2016-03-19', ['W'] = '9999-12-28' }  -- W:西延规划
p.lines['2'].openDates = { ['#default'] = '2015-09-26', ['2S'] = '2020-12-28', ['2'] = '2022-12-28' }  -- 2S:二期首通段
p.lines['3'].openDates = { ['#default'] = '2019-06-30', ['2'] = '2023-12-28' }
p.lines['4'].openDates = { ['#default'] = '2020-12-28', ['W'] = '9999-12-28' }
p.lines['5'].openDates = { ['#default'] = '2021-12-28', ['A3'] = '2023-12-28', ['2'] = '9999-12-28', }  -- A3:3号线增补段
p.lines['6'].openDates = { ['#default'] = '9999-12-28', }
p.lines['7'].openDates = { ['#default'] = '9999-12-28', }
p.lines['S3'].openDates = { ['L3'] = '2019-09-30', ['#default'] = '2020-12-28', }  -- L3:首通段

-- 车站名
p.stationNames = {
    -- 1号线
    ['高桥西'] = '高桥西站 (宁波市)|高桥西',
    ['高桥'] = '高桥站 (宁波市)|高桥',
    ['徐家漕'] = '徐家漕长乐站|徐家漕长乐',
    ['西门口'] = '西门口站 (宁波市)|西门口',
    ['鼓楼'] = '鼓楼站 (宁波市)|鼓楼',
    ['世纪大道'] = '世纪大道站 (宁波市)|世纪大道',
    ['宝幢'] = '宝幢站 (地铁)|宝幢',
    ['邬隘'] = '邬隘站 (地铁)|邬隘',
    ['大碶'] = '大碶站 (地铁)|大碶',
    ['长江路'] = '长江路站 (宁波市)|长江路',
    ['霞浦'] = '霞浦站 (宁波市)|霞浦',
    
    -- 2号线
	['客运中心'] = '客运中心站 (宁波市)|客运中心',
	['宁波火车站'] = '宁波火车站 (地铁)|宁波火车站',
	['小港'] = '小港站 (宁波市)|小港',
    
    -- 3号线
	['澥浦'] = '澥浦站 (地铁)|澥浦',
	['鄞州客运总站'] = '鄞州客运总站站|鄞州客运总站',
	['奉化线明辉路'] = {'明辉路站|明辉路', '([[宁波至奉化城际铁路|奉化线]])'}, -- 为奉化线专设的站名
	['奉化线金海路'] = {'金海路站 (宁波市)|金海路', '([[宁波至奉化城际铁路|奉化线]])'}, -- 为奉化线专设的站名
	['5号线布政'] = {'布政站|布政', '([[宁波轨道交通5号线|5号线]])'}, -- 为二期贯通5号线专设的站名
	
    -- 4号线
	['慈城'] = '慈城站 (地铁)|慈城',
	['奥体中心'] = '奥体中心站 (宁波市)|奥体中心',
	['庄桥火车站'] = '庄桥火车站 (地铁)|庄桥火车站',
	
    -- 5号线
	['会展中心'] = '会展中心站 (宁波市)|会展中心',
	['人民北路'] = '人民北路站 (宁波市)|人民北路',
	['云飞路'] = '云飞路站 (宁波市)|云飞路',
	['环城南路'] = '环城南路站 (宁波市)|环城南路',
	['3号线骆驼北'] = {'骆驼北站|骆驼北', '([[宁波轨道交通3号线|3号线]])'}, -- 为贯通3号线二期专设的站名
	['内环'] = '内环',
	['外环'] = '外环',
	
    -- 6号线
	['衙前'] = '衙前站 (宁波市)|衙前',
	
    -- 7号线
	['云龙'] = '云龙站 (地铁)|云龙',
	['横溪'] = '横溪站 (宁波市)|横溪',
	['九龙湖南'] = '九龙湖南站 (宁波市)|九龙湖南',
	['九龙湖'] = '九龙湖站 (宁波市)|九龙湖',
	['九龙湖北'] = '九龙湖北站 (宁波市)|九龙湖北',
	['俞范东路/九龙湖北'] = {'俞范东路站|俞范东路', '/', '九龙湖北站 (宁波市)|九龙湖北'},
    
    -- 宁奉城际
	['狮山'] = '狮山站 (宁波市)|狮山',
	['朝阳'] = '朝阳站 (宁波市)|朝阳',
	['金海路'] = '金海路站 (宁波市)|金海路',
	['奉化火车站'] = '奉化火车站 (地铁)|奉化火车站',
	['3号线大通桥'] = {'大通桥站|大通桥', '([[宁波轨道交通3号线|3号线]])'}, -- 为3号线专设的站名
}

local stationAliases = {
    -- 1號線
	['高橋西'] = '高桥西',
    ['高橋'] = '高桥',
    ['西門口'] = '西门口',
    ['鼓樓'] = '鼓楼',
    ['東門口'] = '东门口',
    ['寶幢'] = '宝幢',
    ['鄔隘'] = '邬隘',
    ['長江路'] = '长江路',
    
    -- 2號線
	['輕紡城'] = '轻纺城',
	['客運中心'] = '客运中心',
	['寧波火車站'] = '宁波火车站',
    
    -- 3號線
	['鄞州客運總站'] = '鄞州客运总站',
	['奉化線明輝路'] = '奉化线明辉路',
	['奉化線金海路'] = '奉化线金海路',
	
	-- 4號線
	['奧體中心'] = '奥体中心',
	['莊橋火車站'] = '庄桥火车站',
	
	-- 5號線
	['會展中心'] = '会展中心',
	['内環'] = '内环',
	['外環'] = '外环',
	
	-- 6號線
	['寧波西站'] = '宁波西站',
	['大劇院'] = '大剧院',
	
	-- 7號線
	['雲龍'] = '云龙',
	['九龍湖南'] = '九龙湖南',
	['九龍湖'] = '九龙湖',
	['九龍湖北'] = '九龙湖北',
	['俞范東路/九龍湖北'] = '俞范东路/九龙湖北',
	
	-- 宁奉城际
	['獅山'] = '狮山',
	['朝陽'] = '朝阳',
	['奉化火車站'] = '奉化火车站',
	['3號線大通橋'] = '3号线大通桥',
}
for k, v in pairs(stationAliases) do p.stationNames[k] = p.stationNames[v] end

-- 起讫站
for k, v in pairs(p.lines) do
	v.terminals = {}
end
p.lines['1'].terminals = { 
	left = { ['#field'] = 'type', ['#default'] = '高桥西', W = '石路头', F = '石路头'},
	right = '霞浦',
}
p.lines['2'].terminals = {
	left = { ['#field'] = 'type', ['#default'] = '栎社国际机场', F = '黄古路'},
	right = { ['#field'] = 'type', ['#default'] = '清水浦', F = '红联', ['2S'] = '聪园路', ['2'] = '红联'},
}
p.lines['3'].terminals = {
	-- N 为北段(二期)专用
	left = { ['#field'] = 'type', ['#default'] = '大通桥', N = '骆驼北', F = '澥浦北'},
	-- #default 用于条目/导航模板,S 用于 RDT
	right = { ['#field'] = 'type', ['#default'] = '高塘桥', N = '5号线布政', S = '明辉路', LFHS = '奉化线明辉路', LFH = '奉化线金海路', F = '方桥', ['L3'] = '高塘桥'},
}
p.lines['4'].terminals = {
	left = { ['#field'] = 'type', ['#default'] = '慈城', W = '慈城西', F = '慈城西'},
	right = '东钱湖',
}
p.lines['5'].terminals = {
	left = { ['#field'] = 'type', ['#default'] = '布政', F = '内环'},
	right = { ['#field'] = 'type', ['#default'] = '兴庄路', A3 = '3号线骆驼北', F = '外环'},
}
p.lines['6'].terminals = {
	left = '黄古路',
	right = { ['#field'] = 'type', ['#default'] = '红联', ['2'] = '闽江路', F = '闽江路'},
}
p.lines['7'].terminals = { 
	left = { ['#field'] = 'type', ['#default'] = '宝轴西路', F = '俞范东路'},
	right = '横溪',
}
p.lines['S3'].terminals = { 
	left = { ['#field'] = 'type', ['#default'] = '3号线大通桥', LFH = '高塘桥', ['L3'] = '3号线大通桥', F = '张家潭'},
	right = { ['#field'] = 'type', ['#default'] = '明辉路', ['1'] = '金海路', F = '奉化火车站'},
}

-- 首末班车
for k, v in pairs(p.lines) do v.trainTime = {} end

p.lines['1'].trainTime = {
	-- 东环南路首班车
	['东高'] = { first = '06:00', startService = '东环南路', endService = '高桥西' },
	['东霞'] = { first = '06:00', startService = '东环南路', endService = '霞浦' },
	-- 起讫站首末班车
	['霞高'] = { first = '06:00', last = '22:00', startService = '霞浦', endService = '高桥西' },
	['高霞'] = { first = '06:00', last = '22:33', startService = '高桥西', endService = '霞浦' },
}

p.lines['2'].trainTime = {
	-- 起讫站首末班车
	['清栎'] = { first = '06:00', last = '22:00', startService = '清水浦', endService = '栎社国际机场' },
	['栎清'] = { first = '06:00', last = '22:20', startService = '栎社国际机场', endService = '清水浦' },
}

p.lines['3'].trainTime = {
	-- 起讫站首末班车
	['高大'] = { first = '06:00', last = '22:20', startService = '高塘桥', endService = '大通桥' },
	['大高'] = { first = '06:00', last = '22:20', startService = '大通桥', endService = '高塘桥' },
}

return p