Module:Adjacent stations/DB Regio Bayern

local hbf = "[[%1 Hauptbahnhof|%1 Hbf]]"

local p = {
	["system title"] = "[[DB Regio Bayern]]",
	["system icon"] = "[[File:Deutsche_Bahn_AG-Logo.svg|15px]]",
	["system icon format"] = "croute",
	["station format"] = {
		"%1 station",
		["Aalen"] = hbf,
		["Aschaffenburg"] = hbf,
		["Augsburg"] = hbf,
		["Bayreuth"] = hbf,
		["Dettelbach Bahnhof"] = "%1",
		["Frankfurt (Main)"] = hbf,
		["Fürth"] = hbf,
		["Hanau"] = hbf,
		["Hof"] = hbf,
		["Ingolstadt"] = hbf,
		["Innsbruck"] = hbf,
		["Kempten"] = hbf,
		["Kempten (Allgäu)"] = hbf,
		["Landshut"] = hbf,
		["Leipzig"] = hbf,
		["München"] = hbf,
		["Nürnberg"] = hbf,
		["Offenbach (Main)"]= hbf,
		["Passau"] = hbf,
		["Regensburg"] = hbf,
		["Salzburg"] = hbf,
		["Schweinfurt"] = hbf,
		["Sonneberg (Thür)"] = hbf,
		["Ulm"] = hbf,
		["Würzburg"] = hbf,
				-- common English spellings
		["Munich"] = "[[München Hauptbahnhof|München Hbf]]",
		["Nuremberg"] = "[[Nürnberg Hauptbahnhof|Nürnberg Hbf]]",
	},
	["lines"] = {
		["_default"] = {
			["text color"] = "FFFFFF",
		},
		-- New style
		["RB 6"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 6, 60–69 (south)|RB 6/S 6]]",
			["color"] = "e50000",
			["left terminus"] = "Innsbruck",
			["right terminus"] = "München",
		},
		["RB 10"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 1, 10–19 (north)|RB 10]]",
			["color"] = "90bf26",
			["left terminus"] = "Neustadt (Aisch)",
			["right terminus"] = "Nürnberg",
		},
		["RB 11"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 1, 10–19 (north)|RB 11]]",
			["color"] = "00ace5",
			["left terminus"] = "Cadolzburg",
			["right terminus"] = "Fürth",
		},
		["RB 12"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 1, 10–19 (north)|RB 12]]",
			["color"] = "6cc3d9",
			["left terminus"] = "Markt Erlbach",
			["right terminus"] = "Fürth",
		},
		["RB 16"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 1, 10–19 (south)|RB 16]]",
			["color"] = "ff9999",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "München",
		},
		["RB 21"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 2, 20–29 (northwest)|RB 21]]",
			["color"] = "e5a05c",
			["left terminus"] = "Nürnberg Nordost",
			["right terminus"] = "Gräfenberg",
		},
		["RB 25"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 2, 20–29 (northwest)|RB 25]]",
			["color"] = "ffa0a0",
			["left terminus"] = "Bamberg",
			["right terminus"] = "Kronach",
		},
		["RB 30"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 3, 30–39 (north)|RB 30]]",
			["color"] = "bf73bf",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "Neuhaus (Pegnitz)",
		},
		["RB 31"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 3, 30–39 (north)|RB 31]]",
			["color"] = "ff9999",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "Simmelsdorf-Hüttenbach",
		},
		["RB 33"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 3, 30–39 (south)|RB 33]]",
			["color"] = "bf73bf",
			["left terminus"] = "München",
			["right terminus"] = "Landshut",
		},
		["RB 53"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 5, 50–59 (northwest)|RB 53]]",
			["color"] = "bf73bf",
			["left terminus"] = "Schlüchtern",
			["right terminus"] = "Bamberg",
		},
		["RB 60"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 6, 60–69 (south)|RB 60]]",
			["color"] = "e50000",
			["left terminus"] = "Pfronten-Steinach",
			["right terminus"] = "München",
		},
		["RB 61"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 6, 60–69 (north)|RB 61]]",
			["color"] = "bf73bf",
			["left terminus"] = "Roth",
			["right terminus"] = "Hilpoltstein",
		},
		["RB 62"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 6, 60–69 (north)|RB 62]]",
			["color"] = "90bf26",
			["left terminus"] = "Gunzenhausen",
			["right terminus"] = "Pleinfeld",
		},
		["RB 63"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 6, 60–69 (south)|RB 63]]",
			["color"] = "ffb200",
			["left terminus"] = "Oberammergau",
			["right terminus"] = "Murnau",
		},
		["RB 65"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 6, 60–69 (south)|RB 65]]",
			["color"] = "ff9999",
			["left terminus"] = "Weilheim (Oberbay)",
			["right terminus"] = "München",
		},
		["RB 66"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 6, 60–69 (south)|RB 66]]",
			["color"] = "ff9999",
			["left terminus"] = "Kochel",
			["right terminus"] = "München",
		},
		["RB 73"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 7, 17, 70–79 (south)|RB 73]]",
			["color"] = "6cc3d9",
			["left terminus"] = "Kempten",
			["right terminus"] = "Pfronten",
		},
		["RB 74"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 7, 17, 70–79 (south)|RB 74]]",
			["color"] = "e50000",
			["left terminus"] = "Buchloe",
			["right terminus"] = "München",
		},
		["RB 78"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 7, 17, 70–79 (south)|RB 78]]",
			["color"] = "ff9999",
			["left terminus"] = "Ulm",
			["right terminus"] = "Mindelheim",
		},
		["RB 79"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 7, 70–79 (North)|RB 79]]",
			["color"] = "ffffff",
			["text color"] = "53B147",
			["border color"] = "53B147",
			["left terminus"] = "Aschaffenburg",
			["right terminus"] = {"Würzburg", "Bamberg"}
		},
		["RB 80"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 8, 80–89 (south)|RB 80]]",
			["color"] = "008fbf",
			["left terminus"] = "Würzburg",
			["right terminus"] = "Treuchtlingen",
		},
		["RB 81"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 8, 80–89 (south)|RB 81]]",
			["color"] = "24b27d",
			["left terminus"] = "Steinach (b Rothenburg o. d. Tauber)",
			["right terminus"] = "Neustadt (Aisch)",
		},
		["RB 82"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 8, 80–89 (south)|RB 82]]",
			["color"] = "00ace5",
			["left terminus"] = "Steinach",
			["right terminus"] = "Rothenburg o.d. Tauber",
		},
		["RB 85"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 8, 80–89 (north)|RB 85]]",
			["color"] = "009fe3",
			["left terminus"] = "Würzburg",
			["right terminus"] = "Osterburken",
		},
		["RB 89"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 8, 80–89 (south)|RB 89]]",
			["color"] = "008fbf",
			["left terminus"] = "Aalen",
			["right terminus"] = "Donauwörth",
		},
		["RB 91"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 9, 90–99 (north)|RB 91]]",
			["color"] = "6cc3d9",
			["left terminus"] = "Wicklesgreuth",
			["right terminus"] = "Windsbach",
		},
		["RB 94"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 9, 90–99 (south)|RB 94]]",
			["color"] = "ffffff",
			["text color"] = "90BF26",
			["border color"] = "90BF26",
			["left terminus"] = "Kempten",
			["right terminus"] = "Hergatz",
		},
		["RE 1"] = {
			["title"] = "[[München-Nürnberg-Express|RE 1]]",
			["color"] = "e50000",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "München",
		},
		["RE 2"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 3, 30–39 (south)|RE 2]]",
			["color"] = "006666",
			["left terminus"] = "Hof",
			["right terminus"] = "München",
		},
		["RE 3"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 3, 30–39 (south)|RE 3]]",
			["color"] = "800080",
			["left terminus"] = "München",
			["right terminus"] = "Passau",
		},
		["RE 7"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 7, 17, 70–79 (south)|RE 7]]",
			["color"] = "992e00",
			["left terminus"] = "Lindau-Reutin",
			["right terminus"] = "Augsburg",
		},
		["RE 10"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 1, 10–19 (north)|RE 10]]",
			["color"] = "006428",
			["left terminus"] = "Würzburg",
			["right terminus"] = "Nürnberg",
		},
		["RE 14"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 1, 10–19 (north)|RE 14]]",
			["color"] = "ffb200",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "Saalfeld (Saale)",
		},
		["RE 16"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 1, 10–19 (south)|RE 16]]",
			["color"] = "ff9999",
			["left terminus"] = "Augsburg",
			["right terminus"] = "Nürnberg",
		},
		["RE 17"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 7, 17, 70–79 (south)|RE 17]]",
			["color"] = "992e00",
			["left terminus"] = "Oberstdorf",
			["right terminus"] = "Nürnberg",
		},
		["RE 19"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 1, 10–19 (north)|RE 19]]",
			["color"] = "ff6600",
			["left terminus"] = "Sonneberg (Thür)",
			["right terminus"] = "Nürnberg",
		},
		["RE 20"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 2, 20–29|RE 20]]",
			["color"] = "e50000",
			["left terminus"] = "Würzburg",
			["right terminus"] = "Nürnberg",
		},
		["RE 22"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 2, 20–29|RE 22]]",
			["color"] = "ff6600",
			["left terminus"] = "Munich Airport Terminal",
			["right terminus"] = "Regensburg",
		},
		["RE 28"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 2, 20–29|RE 28]]",
			["color"] = "ff0000",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "Sonneberg",
		},
	    ["RE 29"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 2, 20–29|RE 29]]",
			["color"] = "ff6600",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "Erfurt",
		},
		["RE 30"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 3, 30–39 (north)|RE 30]]",
			["color"] = "e50000",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "Hof",
		},
		["RE 31"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 3, 30–39 (north)|RE 31]]",
			["color"] = "e50000",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "Hof",
		},
		["RE 32"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 3, 30–39 (north)|RE 32]]",
			["color"] = "004080",
			["left terminus"] = "Coburg",
			["right terminus"] = "Nürnberg",
		},
		["RE 33"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 3, 30–39 (north)|RE 33]]",
			["color"] = "e50000",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "Cheb",
		},
		["RE 35"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 3, 30–39 (north)|RE 35]]",
			["color"] = "004080",
			["left terminus"] = "Bamberg",
			["right terminus"] = "Hof",
		},
		["RE 38"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 3, 30–39 (north)|RE 38]]",
			["color"] = "36a7cd",
			["left terminus"] = "Bamberg",
			["right terminus"] = "Nürnberg",
		},
		["RE 39"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 3, 30–39 (north)|RE 39]]",
			["color"] = "008fbf",
			["left terminus"] = "Lichtenfels",
			["right terminus"] = "Hof",
		},
		["RE 40"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 4, 40–49 (north)|RE 40]]",
			["color"] = "992e00",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "Regensburg",
		},
		["RE 41"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 4, 40–49 (north)|RE 41]]",
			["color"] = "992e00",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "Neustadt (Waldnaab)",
		},
		["RE 42"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 4, 40–49 (north)|RE 42]]",
			["color"] = "e50000",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "Leipzig",
		},
		["RE 43"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 4, 40–49 (north)|RE 43]]",
			["color"] = "992e00",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "Schwandorf",
		},
		["RE 47"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 4, 40–49 (north)|RE 47]]",
			["color"] = "992e00",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "Furth im Wald",
		},
		["RE 49"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 4, 40–49 (north)|RE 49]]",
			["color"] = "ffb200",
			["left terminus"] = "Nürnberg",
			["right terminus"] = "Sonneberg (Thür)",
		},
		["RE 50"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 5, 50–59 (east)|RE 50]]",
			["color"] = "804080",
			["left terminus"] = "München",
			["right terminus"] = "Nürnberg",
		},
		["RE 54"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 5, 50–59 (northwest)|RE 54]]",
			["color"] = "800080",
			["left terminus"] = "Frankfurt (Main)",
			["right terminus"] = "Bamberg",
		},
		["RE 55"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 5, 50–59 (northwest)|RE 55]]",
			["color"] = "800080",
			["left terminus"] = "Frankfurt (Main)",
			["right terminus"] = "Würzburg",
		},
		["RE 60"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 6, 60–69 (north)|RE 60]]",
			["color"] = "800080",
			["left terminus"] = "Treuchtlingen",
			["right terminus"] = "Nürnberg",
		},
		["RE 61"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 6, 60–69 (south)|RE 61]]",
			["color"] = "992e00",
			["left terminus"] = "Mittenwald",
			["right terminus"] = "München",
		},
		["RE 62"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 6, 60–69 (south)|RE 62]]",
			["color"] = "992e00",
			["left terminus"] = "Lermoos",
			["right terminus"] = "München",
		},
		["RE 70"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 7, 17, 70–79 (south)|RE 70]]",
			["color"] = "006629",
			["left terminus"] = "Lindau-Reutin",
			["right terminus"] = "München",
		},
		["RE 71"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 7, 17, 70–79 (south)|RE 71]]",
			["color"] = "e5a05c",
			["left terminus"] = "Memmingen",
			["right terminus"] = "Augsburg",
		},
		["RE 73"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 7, 17, 70–79 (south)|RE 73]]",
			["color"] = "e5a05c",
			["left terminus"] = "Augsburg",
			["right terminus"] = "Bad Wörishofen",
		},
		["RE 75"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 7, 17, 70–79 (south)|RE 75]]",
			["color"] = "e50000",
			["left terminus"] = "Ulm",
			["right terminus"] = "Oberstdorf",
		},
		["RE 76"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 7, 17, 70–79 (south)|RE 76]]",
			["color"] = "006629",
			["left terminus"] = "Oberstdorf",
			["right terminus"] = "München",
		},
		["RE 79"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 7, 17, 70–79 (south)|RE 79]]",
			["color"] = "800080",
			["left terminus"] = "Augsburg",
			["right terminus"] = "Kempten (Allgäu)",
		},
		["RE 87"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 8, 80–89 (south)|RE 87]]",
			["color"] = "b6931d",
			["left terminus"] = "Donauwörth",
			["right terminus"] = "München",
		},
		["RE 89"] = {
			["title"] = "[[List of railway routes in Bavaria#Lines 8, 80–89 (south)|RE 89]]",
			["color"] = "008fbf",
			["left terminus"] = "Aalen",
			["right terminus"] = "München",
		},
		["RS 7"] = {
			["title"] = "[[Danube-Iller Regional S-Bahn|RS 7]]",
			["color"] = "0000FF",
			["left terminus"] = "Ulm",
			["right terminus"] = "Memmingen",					
		},
	    ["RS 71"] = {
			["title"] = "[[Danube-Iller Regional S-Bahn|RS 71]]",
			["color"] = "00FFFF",
			["left terminus"] = "Ulm",
			["right terminus"] = "Weißenhorn",	
		},
	},
}

return p