跳转到内容

模組:沙盒/N509FZ/T1

维基百科,自由的百科全书
local p = {
	plain_link_template = "'''[[{line_link}|{line_title}]]'''",
}
-- CDM
p.lines = {
	['1'] = { title = "成都地铁1号线|1号线", color = '10069F' },
	['2'] = { title = "成都地铁2号线|2号线", color = 'FF5C39' },
	['3'] = { title = "成都地铁3号线|3号线", color = 'D40F7D' },
	['4'] = { title = "成都地铁4号线|4号线", color = '44AF52' },
	['5'] = { title = "成都地铁5号线|5号线", color = 'BB29BB' },
	['6'] = { title = "成都地铁6号线|6号线", color = 'B36924' },
	['7'] = { title = "成都地铁7号线|7号线", color = '6AD1E3' },
	['8'] = { title = "成都地铁8号线|8号线", color = 'C4D600' },
	['9'] = { title = "成都地铁9号线|9号线", color = 'F2A900' },
	['10'] = { title = "成都地铁10号线|10号线", color = '003DA5' },
	['11'] = { title = "成都地铁11号线|11号线", color = '8C7732' },
	['12'] = { title = "成都地铁12号线|12号线", color = '6D2077' },
	['13'] = { title = "成都地铁13号线|13号线", color = 'C5A900' },
	['14'] = { title = "成都地铁14号线|14号线", color = '84344E' },
	['15'] = { title = "成都地铁15号线|15号线", color = 'ECB3CB' },
	['16'] = { title = "成都地铁16号线|16号线", color = '0085CA' },
	['17'] = { title = "成都地铁17号线|17号线", color = '80E0A7' },
	['18'] = { title = "成都地铁18号线|18号线", color = '115E67' },
	['19'] = { title = "成都地铁19号线|19号线", color = '9FAEE5' },
	['20'] = { title = "成都地铁20号线|20号线", color = 'B86125' },
}

local lineAliases = {
}
for k, v in pairs(lineAliases) do
	p.lines[k] = p.lines[v]
end

p.stationNames = {
-- 消歧义
	-- 1号线
	['火车北站'] = '火车北站站|火车北站',
	['桐梓林'] = '桐梓林站 (成都)|桐梓林',
	['火车南站'] = '火车南站站|火车南站',
	['香山'] = '香山站 (成都)|香山',
	
	-- 2号线
	['成都东客站'] = '成都东客站站|成都东客站',
	['人民公园'] = '人民公园站 (成都市)|人民公园',
	['茶店子客运站'] = '茶店子客运站站|茶店子客运站',
	
	-- 3号线
	['钟楼'] = '钟楼站 (成都)|钟楼',
	['植物园'] = '植物园站 (成都)|植物园',
	['天回镇'] = '天回镇站 (地铁)|天回镇',
	['动物园'] = '动物园站 (成都)|动物园',
	['双凤桥'] = '双凤桥站 (成都)|双凤桥',
	['东升'] = '东升站 (成都)|东升',
	['双流西站'] = '双流西站站|双流西站',
	
	-- 4号线
	['文化宫'] = '文化宫站 (成都)|文化宫',
	['成都西站'] = '成都西站站|成都西站',
	['万盛'] = '万盛站 (地铁)|万盛',
	
	-- 5号线
	['廖家湾'] = '廖家湾站 (成都)|廖家湾',
	['大丰'] = '大丰站 (成都)|大丰',
	['泉水路'] = '泉水路站 (成都)|泉水路',
	['民乐'] = '民乐站 (成都)|民乐',
	['高峰'] = '高峰站 (成都)|高峰',
	['回龙'] = '回龙站 (成都)|回龙',
	
	-- 6号线
	['青杠'] = '青杠站 (成都)|青杠',
	['沙湾'] = '沙湾站 (成都)|沙湾',
	['三官堂'] = '三官堂站 (成都)|三官堂',
	['东光'] = '东光站 (成都)|东光',
	['中和'] = '中和站 (成都)|中和',
	
	-- 7号线
	['八里庄'] = '八里庄站 (成都)|八里庄',
	['理工大学'] = '理工大学站 (成都)|理工大学',
	['狮子山'] = '狮子山站 (成都)|狮子山',
	
	-- 8号线
	['莲花'] = '莲花站 (成都)|莲花',
	['珠江路'] = '珠江路站 (成都)|珠江路',
	['三元'] = '三元站 (成都)|三元',
	['庆安'] = '庆安站 (成都)|庆安',
	['永丰'] = '永丰站 (成都)|永丰',
	
	-- 9号线
	
	-- 10号线
	['新津站'] = '新津站站|新津站',
	['花桥'] = '花桥站 (成都)|花桥',
	['新平'] = '新平站 (成都)|新平',
	
	-- 11号线
	['万安'] = '万安站 (成都)|万安',
	['松林'] = '松林站 (成都)|松林',
	
	-- 17号线
	['金星'] = '金星站 (成都)|金星',
	['黄石'] = '黄石站 (成都)|黄石',
	['明光'] = '明光站 (成都)|明光',
	['九江北'] = '九江北站 (成都)|九江北',
	
	-- 18号线
	['福田'] = '福田站 (成都)|福田',
	
-- 模板格式需要
	['外环'] = '外环',
	['内环'] = '内环',
	['五根松/科学城'] = {'五根松站|五根松', '/', '科学城站|科学城'},
	
}

local stationAliases = {
	-- 1號線
	['火車北站'] = '火车北站',
	['火車南站'] = '火车南站',
	
	-- 2號線
	['成都東客站'] = '成都东客站',
	['人民公園'] = '人民公园',
	['茶店子客運站'] = '茶店子客运站',
	
	-- 3號線
	['鐘樓'] = '钟楼',
	['植物園'] = '植物园',
	['天回鎮'] = '天回镇',
	['動物園'] = '动物园',
	['雙鳳橋'] = '双凤桥',
	['東升'] = '东升',
	['雙流西站'] = '双流西站',
	
	-- 4號線
	['文化宮'] = '文化宫',
	['萬盛'] = '万盛',
	
	-- 5號線
	['廖家灣'] = '廖家湾',
	['大豐'] = '大丰',
	['民樂'] = '民乐',
	['回龍'] = '回龙',
	
	-- 6號線
	['沙灣'] = '沙湾',
	['東光'] = '东光',
	
	-- 7號線
	['八里莊'] = '八里庄',
	['理工大學'] = '理工大学',
	['獅子山'] = '狮子山',
	
	-- 8號線
	['蓮花'] = '莲花',
	['慶安'] = '庆安',
	['永豐'] = '永丰',
	
	-- 9號線
	
	-- 10號線
	['花橋'] = '花桥',
	
	-- 11號線
	['萬安'] = '万安',
	
	-- 17號線
	['黃石'] = '黄石',
	
	-- 18號線

	
	-- misc
	['外環'] = '外环',
	['內環'] = '内环',
	['五根松/科學城'] = '五根松/科学城',
	
}
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'] = '升仙湖', ['P2'] = '韦家碾'},
	right = { ['#field'] = 'type', ['#default'] = '广都', ['五根松'] = '五根松', ['科学城'] = '科学城', ['future'] = '五根松/科学城'},
}
p.lines['2'].terminals = { left = '犀浦', right = '龙泉驿' }
p.lines['3'].terminals = { 
	left = { ['#field'] = 'type', ['#default'] = '军区总医院', ['future'] = '成都医学院'},
	right = { ['#field'] = 'type', ['#default'] = '太平园', ['future'] = '双流西站'},
}
p.lines['4'].terminals = { left = '西河', right = '万盛' }
p.lines['5'].terminals = { left = '华桂路', right = '回龙' }
p.lines['6'].terminals = { left = '望丛祠', right = '观东' }
p.lines['7'].terminals = { left = '外环', right = '内环' }
p.lines['9'].terminals = { left = '三色路', right = '黄田坝' }
p.lines['10'].terminals = { left = '太平园', right = '新平' }
p.lines['11'].terminals = { left = '观东', right = '兰家沟' }
p.lines['17'].terminals = { left = '金星', right = '机投桥' }
p.lines['18'].terminals = { left = '火车南站', right = '天府机场1-2航站楼' }


return p