模块:RailSystems/武汉地铁

求闻百科,共笔求闻
文档图示 模块文档[创建] [跳转到代码]

本模块还没有文档页面。

您可以创建文档以让用户更好地理解本模块的用途。
编者可以在本模块的沙盒创建 | 镜像和测试样例创建页面进行实验。
请将模块自身所属的分类添加在文档中。本模块的子页面
local x = "%s站(武汉地铁)"
local y = "%s站(地铁)"
local t = "%s(武汉地铁)"
local ts = "%s"

local p = {
	name = '武汉地铁',
	title = "[[武汉地铁]]",

	lines = {
		["1"] = {
			color = "0067a1",
			terminus = {'径河', '汉口北'}
		},
		["2"] = {
			color = "ec9cbb",
			terminus = {'天河机场', '金银潭', '武汉东站', '佛祖岭'}
		},
		["3"] = {
			color = "d3b466",
			terminus = {"沌阳大道", "宏图大道"}
		},
		["4"] = {
			color = "a6d30b",
			terminus = {'柏林', '黄金口', '玉龙路', '武汉火车站'}
		},
		["5"] = {
			color = "a43034",
			terminus = {'红霞', '武汉站东广场'}
		},
		["6"] = {
			color = "007128",
			terminus = {'新城十一路', '东风公司'}
		},
		["7"] = {
			color = "eb7c16",
			terminus = {'横店', '巨龙大道', '板桥', '青龙山地铁小镇'}
		},
		["8"] = {
			color = "9dabaa",
			terminus = {'金潭路', '军运村'}
		},
		["9"] = {
			color = "a5d4ad",
			notOpen = true
		},
		["10"] = {
			color = "8c3626",
			notOpen = true
		},
		["11"] = {
			color = "f6d300",
			terminus = {'武汉东站', '葛店南站'}
		},
		["12"] = {
			color = "00a3e9",
			notOpen = true
		},
		["13"] = {
			color = "25cad0",
			notOpen = true
		},
		["14"] = {
			color = "825aa3",
			notOpen = true,
		},
		["16"] = {
			color = "c24c6d",
			terminus = {'园博中心南', '周家河', '通航机场'}
		},
		["17"] = {
			notOpen = true
		},
		["19"] = {
			color = "469c7f",
			terminus = {'武汉站西广场', '新月溪公园'}
		},
		["20"] = {
			notOpen = true
		},
		["24"] = {
			notOpen = true
		},
		["25"] = {
			notOpen = true
		},
		["阳"] = {
			full_name = '武汉地铁阳逻线',
			short_name = '阳逻线',
			color = "b2007b",
			terminus = {'后湖大道', '金台'}
		},
		["新"] = {
			full_name = '武汉地铁新港线',
			short_name = '新港线',
			color = "3339b1",
			terminus = {'北洋桥', '白玉山'},
			notOpen = true
		},	
	},

        -- 站名格式数据
	stationNames = {
		-- 消歧义
		-- 1号线
		["友谊路"] = x,

		-- 2号线
		["金银潭"] = x,
		["汉口火车站"] = t,
		["青年路"] = x,
		["中山公园"] = x,
		["江汉路"] = x,
		["杨家湾"] = x,
		["光谷火车站"] = t,
		["武汉东站"] = t,

		-- 3号线
		["体育中心"] = x,
		["汉阳客运站"] = ts,
		["王家湾"] = x,
		-- 4号线
		["柏林"] = {page = '柏林站(武汉)'},
		["凤凰路"] = x,
		["新天"] = x,
		["十里铺"] = x,
		["五里墩"] = x,
		["汉阳火车站"] = t,
		["钟家村"] = x,
		["复兴路"] = x,
		["武昌火车站"] = t,
		["东亭"] = x,
		["武汉火车站"] = t,

		-- 5号线
		["中医药大学"] = {page = '中医药大学站(武汉市)'},
		["和平公园"] = {page = '和平公园站'},
		["张家湾"] = x,

		-- 6号线
		["石桥"] = x,
		["三眼桥"] = x,

		-- 7号线
		["园博园"] = "[[园博园站(湖北省)|园博园]]",
		["板桥"] = x,

		-- 8号线
		["文昌路"] = x,

		-- 11号线
		["左岭"] = x,
		["葛店南站"] = y,

        -- 16号线
        ["枫林"] = x,

		-- 阳逻线
		["青龙"] = x,
		["沙口"] = x,

	},
	aliases = {
		["21"] = "阳",
		["阳逻"] = "阳",
		["新港"] = "10",
		["前川"] = "7",
		["蔡甸"] = "4",
		["纸坊"] = "7",
	}
}

for i = 1, 25 do
	i = tostring(i)
	local line = p.lines[i]
	if not line then
		line = {}
		p.lines[i] = line
	end
	
	line.full_name = '武汉轨道交通' .. i .. '号线'
	line.short_name = i .. '号线'
	line.blink_name = i
end

for k, v in pairs(p.aliases) do
	p.lines[k] = p.lines[v]
end
for k, v in pairs(p.stationNames) do
	if type(v) == 'string' and v:find '%%s' then
		p.stationNames[k] = {page = v:format(k)}
	end
end

return p