Module:Adjacent stations/Berlin S-Bahn

Documentation for this module may be created at Module:Adjacent stations/Berlin S-Bahn/doc

local a = "Berlin %1"
local r = "Berlin-%1 station"
local k = "Berlin %1 station"
local rw = "%1 railway station"
local r_rw = "Berlin-%1 railway station"
local k_rw = "Berlin %1 railway station"

local p = {
	["system title"] = "[[Berlin S-Bahn]]",
	["system icon"] = " ",
	["station format"] = {
		"%1 station",

		["Anhalter Bahnhof"] = a,
		["Hauptbahnhof"] = a,
		["Nordbahnhof"] = a,
		["Ostbahnhof"] = a,
		
		["Albrechtshof"] = r,
		["Biesdorf"] = r,
		["Blankenburg"] = r,
		["Buch"] = r,
		["Charlottenburg"] = r,
		["Friedenau"] = r,
		["Friedrichsfelde Ost"] = r,
		["Friedrichshagen"] = r,
		["Frohnau"] = r,
		["Gesundbrunnen"] = k,
		["Grünau"] = r,
		["Grunewald"] = r,
		["Halensee"] = r,
		["Hermsdorf"] = r,
		["Hohenschönhausen"] = r,
		["Johannisthal"] = r,
		["Karlshorst"] = r,
		["Karow"] = r,
		["Köpenick"] = r,
		["Lichtenberg"] = r,
		["Lichterfelde Ost"] = r,
		["Lichterfelde West"] = r,
		
		["Mahlsdorf"] = r,
		["Marzahn"] = r,
		["Neukölln"] = r,
		["Nikolassee"] = r,
		["Pankow"] = r,
		["Pankow-Heinersdorf"] = r,
		["Rahnsdorf"] = r,
		["Rummelsburg Betriebsbahnhof"] = r,
		["Schlachtensee"] = r,
		["Schöneberg"] = r,
		["Schöneweide"] = r,
		["Schönholz"] = r,
		["Spandau"] = r,
		["Spindlersfeld"] = r,
		["Stresow"] = r,
		["Tempelhof"] = r,
		["Tiergarten"] = r,
		["Waidmannslust"] = r,
		["Wannsee"] = r,
		["Wedding"] = r,
		["Westend"] = r,
		["Wilhelmsruh"] = r,
		["Wittenau"] = r,
		["Zehlendorf"] = r,
		
		["Alexanderplatz"] = k,
		["Alt-Reinickendorf"] = k,
		["Bellevue"] = k,
		["Beusselstraße"] = k,
		["Bornholmer Straße"] = k,
		["Botanischer Garten"] = k,
		["Brandenburger Tor"] = k,
		["Bundesplatz"] = k,
		["Feuerbachstraße"] = k,
		["Frankfurter Allee"] = k,
		["Friedrichstraße"] = k,
		["Greifswalder Straße"] = k,
		["Hackescher Markt"] = k,
		["Heerstraße"] = k,
		["Heidelberger Platz"] = k,
		["Hermannstraße"] = k,
		["Hohenzollerndamm"] = k,
		["Humboldthain"] = k,
		["Innsbrucker Platz"] = k,
		["Jannowitzbrücke"] = k,
		["Julius-Leber-Brücke"] = k,
		["Jungfernheide"] = k,
		["Karl-Bonhoeffer-Nervenklinik"] = k,
		["Landsberger Allee"] = k,
		
		["Messe Nord/ICC"] = k,
		["Mexikoplatz"] = k,
		["Nöldnerplatz"] = k,
		["Olympiastadion"] = k,
		["Oranienburger Straße"] = k,
		["Ostkreuz"] = k,
		["Poelchaustraße"] = k,
		["Potsdamer Platz"] = k,
		["Prenzlauer Allee"] = k,
		["Rathaus Steglitz"] = k,
		["Savignyplatz"] = k,
		["Schönhauser Allee"] = k,
		["Sonnenallee"] = k,
		["Springpfuhl"] = k,
		["Storkower Straße"] = k,
		["Südkreuz"] = k,
		["Sundgauer Straße"] = k,
		["Treptower Park"] = k,
		["Warschauer Straße"] = k,
		["Westhafen"] = k,
		["Westkreuz"] = k,
		["Wilhelmshagen"] = k,
		["Wollankstraße"] = k,
		["Wuhletal"] = k,
		["Wuhlheide"] = k,
		["Yorckstraße"] = k,
		
		["Hirschgarten"] = k_rw,
		["Messe Süd"] = k_rw,
		["Zoologischer Garten"] = k,
		["Pichelsberg"] = r_rw,
		["Rummelsburg"] = r_rw,
		["Tegel"] = r,
		["Plänterwald"] = rw,
		["Schichauweg"] = rw,

		["Griebnitzsee"] = "[[Potsdam %1 station|%1]]",
		["Babelsberg"] = "[[Potsdam-%1 station|%1]]",
		["Bernau"] = "[[Bernau bei Berlin station|%1]]",
		
		["Potsdam"] = "[[%1 Hauptbahnhof|%1 Hbf]]",
		["Berlin"] = "[[%1 Hauptbahnhof|%1 Hbf]]",
		["Berlin Hauptbahnhof"] = "[[%1|Berlin Hbf]]",
		["Potsdam Hauptbahnhof"] = "[[%1|Potsdam Hbf]]",
	},
	["lines"] = {
		["_default"] = {
			["title"] = "[[%1 (Berlin)|%1]]",
			["icon"] = "[[File:Berlin transit icons - %1.svg|x16px|link=%1 (Berlin)|%1]]",
			["color"] = "008D4F",
			["text color"] = "FFF"
		},
		["S1"] = {
			["color"] = "DA6BA2",
			["left terminus"] = "Oranienburg",
			["right terminus"] = "Wannsee"
		},
		["S2"] = {
			["color"] = "007734",
			["left terminus"] = "Bernau",
			["right terminus"] = "Blankenfelde"
		},
		["S25"] = {
			["color"] = "007734",
			["left terminus"] = "Hennigsdorf",
			["right terminus"] = "Teltow Stadt"
		},
		["S26"] = {
			["color"] = "007734",
			["left terminus"] = "Waidmannslust",
			["right terminus"] = "Teltow Stadt"
		},	
		["S3"] = {
			["color"] = "0066AD",
			["left terminus"] = "Spandau",
			["right terminus"] = "Erkner"
		},
		["S41"] = {
			["color"] = "AD5937",
			["circular"] = true,
			["oneway-left"] = true,
			["right terminus"] = "Ringbahn (clockwise)"
		},
		["S42"] = {
			["color"] = "CB6418",
			["circular"] = true,
			["left terminus"] = "Ringbahn (counter-clockwise)",
			["oneway-right"] = true
		},	
		["S45"] = {
			["color"] = "CD9C53",
			["left terminus"] = "Südkreuz",
			["right terminus"] = "BER Airport – Terminal 1-2"
		},
		["S46"] = {
			["color"] = "CD9C53",
			["left terminus"] = "Westend",
			["right terminus"] = "Königs Wusterhausen"
		},
		["S47"] = {
			["color"] = "CD9C53",
			["left terminus"] = "Hermannstraße",
			["right terminus"] = "Spindlersfeld"
		},	
		["S5"] = {
			["color"] = "EB7405",
			["left terminus"] = "Westkreuz",
			["right terminus"] = "Strausberg Nord"
		},
		["S7"] = {
			["color"] = "816DA6",
			["left terminus"] = "Potsdam",
			["right terminus"] = "Ahrensfelde"
		},
		["S75"] = {
			["color"] = "816DA6",
			["left terminus"] = "Warschauer Straße",
			["right terminus"] = "Wartenberg"
		},
		["S8"] = {
			["color"] = "66AA22",
			["left terminus"] = "Birkenwerder",
			["right terminus"] = "Wildau"
		},
		["S85"] = {
			["color"] = "66AA22",
			["left terminus"] = "Pankow",
			["right terminus"] = "Grünau"
		},
		["S9"] = {
			["color"] = "992746",
			["left terminus"] = "Spandau",
			["right terminus"] = "BER Airport – Terminal 1-2"
		},
		-- Future lines
		["S21vor"] = {
			["title"] = "[[S21 (Berlin)|S21]]",
			["short name"] = "S21",
			["icon"] = "[[File:Berlin transit icons - S21.svg|x16px|link=S21 (Berlin)|S21]]",
			["color"] = "007734",
			["left terminus"] = "Gesundbrunnen",
			["right terminus"] = "Berlin"
		},
		-- Former lines
		["S21"] = {
			["title"] = "[[S21 (Berlin)#Former services|S21]]",
			["icon"] = "[[File:Berlin transit icons - S21.svg|x16px|link=S21 (Berlin)#Former services|S21]]",
			["color"] = "007734",
			["left terminus"] = "Hennigsdorf",
			["right terminus"] = "Südkreuz"
		},
		["S3E"] = {
			["title"] = "[[S3 (Berlin)#History|S3 (Strausberg branch)]]",
			["short name"] = "S3",
			["icon"] = "[[File:Berlin transit icons - S3E.svg|x16px|link=S3 (Berlin)#History|S3 (Strausberg branch)]]",
			["color"] = "EB7405",
			["left terminus"] = "Westkreuz",
			["right terminus"] = "Strausberg Nord"
		},
		["S3B"] = {
			["title"] = "[[S3 (Berlin)#History|S3 (Erkner branch)]]",
			["short name"] = "S3",
			["icon"] = "[[File:Berlin transit icons - S3B.svg|x16px|link=S3 (Berlin)#History|S3 (Erkner branch)]]",
			["color"] = "F0D722",
			["text color"] = "191919",
			["left terminus"] = "Wannsee",
			["right terminus"] = "Erkner"
		},
		["S3H"] = {
			["title"] = "[[S3 (Berlin)#History|S3 (Königs Wusterhausen branch)]]",
			["short name"] = "S3",
			["icon"] = "[[File:Berlin transit icons - S3H.svg|x16px|link=S3 (Berlin)#History|S3 (Königs Wusterhausen branch)]]",
			["color"] = "007734",
			["left terminus"] = "Wannsee",
			["right terminus"] = "Königs Wusterhausen"
		},
		["S3C"] = {
			["title"] = "[[S3 (Berlin)#History|S3 (Schönefeld Airport branch)]]",
			["short name"] = "S3",
			["icon"] = "[[File:Berlin transit icons - S3C.svg|x16px|link=S3 (Berlin)#History|S3 (Schönefeld Airport branch)]]",
			["color"] = "009BD5",
			["left terminus"] = "Charlottenburg",
			["right terminus"] = "Berlin Schönefeld Airport"
		},
		["S4"] = {
			["color"] = "AD5937",
			["left terminus"] = "Westhafen",
			["right terminus"] = "Gesundbrunnen"
		},
		["S45alt"] = {
			["title"] = "[[S45 (Berlin)|S45]]",
			["short name"] = "S45",
			["icon"] = "[[File:Berlin transit icons - S45alt.svg|x16px|link=S45 (Berlin)|S45]]",
			["color"] = "AD5937",
			["left terminus"] = "Westend",
			["right terminus"] = "Berlin Schönefeld Airport"
		},
		["S46alt"] = {
			["title"] = "[[S46 (Berlin)|S46]]",
			["short name"] = "S46",
			["icon"] = "[[File:Berlin transit icons - S46alt.svg|x16px|link=S46 (Berlin)|S46]]",
			["color"] = "AD5937",
			["left terminus"] = "Westend",
			["right terminus"] = "Königs Wusterhausen"
		},
		["S6"] = {
			["color"] = "CD9C53",
			["left terminus"] = "Warschauer Straße",
			["right terminus"] = "Zeuthen"
		},
		["S86"] = {
			["color"] = "66AA22",
			["left terminus"] = "Birkenwerder",
			["right terminus"] = "Nordbahnhof"
		},
		["S10"] = {
			["color"] = "0082C4",
			["left terminus"] = "Birkenwerder",
			["right terminus"] = "Spindlersfeld"
		},
		["S19"] = {
			["color"] = "0082C4",
			["left terminus"] = "Oranienburg",
			["right terminus"] = "Hennigsdorf"
		},
	--	Generic
		["S"] = {
			["title"] = "[[S-Bahn Berlin|S]]",
			["icon"] = "[[File:S-Bahn-Logo.svg|16px|link=Berlin S-Bahn|Berlin S-Bahn]]"
		},
	},
	["aliases"] = {
		["1" ] = "S1" , ["s1" ] = "S1" ,
		["2" ] = "S2" , ["s2" ] = "S2" ,
		["25"] = "S25", ["s25"] = "S25",
		["26"] = "S26", ["s26"] = "S26",
		["3" ] = "S3" , ["s3" ] = "S3" ,
		["41"] = "S41", ["s41"] = "S41",
		["42"] = "S42", ["s42"] = "S42",
		["45"] = "S45", ["s45"] = "S45",
		["46"] = "S46", ["s46"] = "S46",
		["47"] = "S47", ["s47"] = "S47",
		["5" ] = "S5" , ["s5" ] = "S5" ,
		["7" ] = "S7" , ["s7" ] = "S7" ,
		["75"] = "S75", ["s75"] = "S75",
		["8" ] = "S8" , ["s8" ] = "S8" ,
		["85"] = "S85", ["s85"] = "S85",
		["9" ] = "S9" , ["s9" ] = "S9" ,
	--	Future lines
		["21vor" ] = "S21vor",
		["s21vor"] = "S21vor",
	--	Former lines
		["21"] = "S21", ["s21"] = "S21",
		["3e"] = "S3E", ["s3e"] = "S3E",
		["3b"] = "S3B", ["s3b"] = "S3B",
		["3h"] = "S3H", ["s3h"] = "S3H",
		["3c"] = "S3C", ["s3c"] = "S3C",
		["4" ] = "S4" , ["s4" ] = "S4" ,
		["6" ] = "S6" , ["s6" ] = "S6" ,
		["86"] = "S86", ["s86"] = "S86",
		["10"] = "S10", ["s10"] = "S10",
		["19"] = "S19", ["s19"] = "S19",
		["45alt"] = "S45alt", ["s45alt"] = "S45alt",
		["46alt"] = "S46alt", ["s46alt"] = "S46alt",
	--	Generic
		["s"     ] = "S",
		["s-bahn"] = "S"
	}
}

return p