跳转到内容

模組:Adjacent stations/Munich S-Bahn

维基百科,自由的百科全书
local format = mw.ustring.format
local frame = mw.getCurrentFrame()

local function linken(a, b, c)
	if c == '' or c == nil then
		return frame:expandTemplate ({title='Internal link helper/en', args = {a, b}})
	else
		return frame:expandTemplate ({title='Internal link helper/en', args = {a, b, c}})
	end
end

local hbf = "慕尼黑火车总站"
local mun = "慕尼黑-%1车站"
local muni = "慕尼黑%1站"

local p = {
	["system title"] = "[[慕尼黑城市快铁]]",
	["system icon"] = "[[File:S-Bahn-Logo.svg|16px|link=慕尼黑城市快铁]]",
	["station format"] = {
		"%1站",
		["机场"] = muni,
		["洛伊希滕贝格环路"] = muni,
		["慕尼黑"] = hbf,
		["火车总站"] = hbf,
		["慕尼黑火车总站"] = hbf,
		["帕辛"] = mun,
		["莫萨赫"] = mun,
		["霍尔茨基兴翼站"] = "[[慕尼黑火车总站|霍尔茨基兴翼站]]",
	},
	["lines"] = {
		["_default"] = {
			["title"] = "[[慕尼黑城市快铁%1线|%1线]]",
			["text color"] = "FFFFFF",
			["icon"] = "[[File:München %1.svg|x16px|link=慕尼黑城市快铁%1线|%1线]]",
		},
		["S1"] = {
			["color"] = "19BBE7",
			["left terminus"] = {linken("弗赖辛站", "Freising station", "弗赖辛"), "机场"},
			["right terminus"] = "洛伊希滕贝格环路",
		},
		["S2"] = {
			["color"] = "78B82C",
			["left terminus"] = {linken("彼得斯豪森站", "Petershausen station", "彼得斯豪森"), linken("旧明斯特站", "Altomünster station", "旧明斯特")},
			["right terminus"] = linken("埃尔丁站", "Erding station", "埃尔丁"),
		},
		["S3"] = {
			["color"] = "961B81",
			["left terminus"] = linken("马门多夫站", "Mammendorf station", "马门多夫"),
			["right terminus"] = linken("霍尔茨基兴站", "Holzkirchen station", "霍尔茨基兴"),
		},
		["S4"] = {
			["color"] = "E30614",
			["left terminus"] = "盖尔滕多夫",
			["right terminus"] = linken("埃伯斯贝格站", "Ebersberg station", "埃伯斯贝格"),
		},
	    ["S5"] = {
			["color"] = "00517F",
			["icon"] = "[[File:München S5 2025.svg|x16px|link=慕尼黑城市快铁S5线|S5线]]",
			["left terminus"] = linken("韦斯灵(上巴伐利亚)站", "Weßling (Oberbay) station", "韦斯灵(上巴伐利亚)"),
			["right terminus"] = linken("十字街站 (慕尼黑)", "Kreuzstraße", "十字街"),
		},
		["S6"] = {
			["color"] = "00975F",
			["left terminus"] = linken("图青站", "Tutzing", "图青"),
			["right terminus"] = linken("埃伯斯贝格站", "Ebersberg station", "埃伯斯贝格"),
		},
		["S7"] = {
			["color"] = "943226",
			["left terminus"] = linken("沃尔夫拉茨豪森站", "Wolfratshausen station", "沃尔夫拉茨豪森"),
			["right terminus"] = "慕尼黑",
		},
		["S8"] = {
			["color"] = "F0AB00",
			["left terminus"] = linken("黑尔兴站", "Herrsching station", "黑尔兴"),
			["right terminus"] = "机场",
		},
		["S20"] = {
			["color"] = "EA516D",
			["left terminus"] = "帕辛",
			["right terminus"] = linken("赫里格斯克罗伊特站", "Höllriegelskreuth station", "赫里格斯克罗伊特"),
		},
		-- Former lines
		["S3alt"] = {
			["title"] = "[[慕尼黑城市快铁S3线 (旧)|S3线]]",
			["color"] = "000000",
			["background color"] = "FF0033",
			["icon"] = "[[File:München S3 2004.svg|x16px|link=慕尼黑城市快铁S3线 (旧)|旧S3线]]",
			["left terminus"] = linken("迈萨赫站", "Maisach station", "迈萨赫"),
			["right terminus"] = "措尔讷丁",
		},
		["S5alt"] = {
			["title"] = "[[慕尼黑城市快铁S5线 (旧)|S5线]]",
			["color"] = "FFCC00",
			["text color"] = "000000",
			["icon"] = "[[File:München S5.svg|x16px|link=慕尼黑城市快铁S5线 (旧)|旧S5线]]",
			["left terminus"] = linken("黑尔兴站", "Herrsching station", "黑尔兴"),
			["right terminus"] = linken("霍尔茨基兴站", "Holzkirchen station", "霍尔茨基兴"),
		},
		["S8alt"] = {
			["title"] = "[[慕尼黑城市快铁S8线 (旧)|S8线]]",
			["color"] = "A7A9AC",
			["icon"] = "[[File:München S8 1985-1988.svg|x16px|link=慕尼黑城市快铁S8线 (旧)|旧S8线]]",
			["left terminus"] = "莫萨赫",
			["right terminus"] = linken("慕尼黑奧林匹克體育場站", "München Olympiastadion station", "慕尼黑奧林匹克體育場"),
		},
		["S10"] = {
			["color"] = "993333",
			["left terminus"] = "霍尔茨基兴翼站",
			["right terminus"] = linken("沃尔夫拉茨豪森站", "Wolfratshausen station", "沃尔夫拉茨豪森"),
		},
		["S11"] = {
			["title"] = "[[慕尼黑城市快铁S8线 (旧)|S11线]]",
			["color"] = "A7A9AC",
			["icon"] = "[[File:München S11.svg|x16px|link=慕尼黑城市快铁S8线 (旧)|S11线]]",
			["left terminus"] = "莫萨赫",
			["right terminus"] = linken("慕尼黑奧林匹克體育場站", "München Olympiastadion station", "慕尼黑奧林匹克體育場"),
		},
		["S22"] = {
			["color"] = "A7A9AC",
		},
		["S27"] = {
			["color"] = "F4929C",
			["left terminus"] = "慕尼黑",
			["right terminus"] = linken("戴森霍芬站", "Deisenhofen station", "戴森霍芬"),
		},
		["A"] = {
			["title"] = "[[达豪—阿尔托明斯特铁路]]",
			["color"] = "000000",
			["icon"] = "[[File:München S-Bahn A.svg|x16px|link=达豪—阿尔托明斯特铁路]]",
			["left terminus"] = linken("达豪站", "Dachau Bahnhof", "达豪"),
			["right terminus"] = linken("阿尔托明斯特站", "Altomünster station", "阿尔托明斯特"),
		},
	--	Generic
		["S"] = {
			["title"] = "[[慕尼黑城市快铁|S]]",
			["icon"] = "[[File:S-Bahn-Logo.svg|16px|link=慕尼黑城市快铁|慕尼黑城市快铁]]"
		},
	},
	["aliases"] = {
		["1"] = "S1", ["s1"] = "S1",
		["2"] = "S2", ["s2"] = "S2",
		["3"] = "S3", ["s3"] = "S3",
		["4"] = "S4", ["s4"] = "S4",
		["5"] = "S5", ["s5"] = "S5",
		["6"] = "S6", ["s6"] = "S6",
		["7"] = "S7", ["s7"] = "S7",
		["8"] = "S8", ["s8"] = "S8",
		["20"] = "S20", ["s20"] = "S20",
	-- Former lines
		["3alt"] = "S3alt", ["s3alt"] = "S3alt",
		["5alt"] = "S5alt", ["s5alt"] = "S5alt",
		["8alt"] = "S8alt", ["s8alt"] = "S8alt",
		["10"] = "S10", ["s10"] = "S10",
		["11"] = "S11", ["s11"] = "S11",
		["22"] = "S22", ["s22"] = "S22",
		["27"] = "S27", ["s27"] = "S27",
		["a"] = "A",
	--	Generic
		["s"] = "S",
		["s-bahn"] = "S"
	},
}

return p