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

-- standardized types
local cjx = {
	["title"] = "[[Cityjet (ÖBB)|Cityjet]]",
	["color"] = "3d85d0",
}
local d = {
	["title"] = "[[Schnellzug]]",
	["color"] = "221d47",
}
local en = {
	["title"] = "[[EuroNight]]",
	["color"] = "221d47",	
}
local ic = {
	["title"] = "[[InterCity#Austria|InterCity]]",
	["icon"] = "[[File:InterCity Austria.svg|16px|link=InterCity#Austria]]",
	["color"] = "ab0020",
}
local nj = {
	["color"] = "221d47",
	["title"] = "[[Nightjet]]",
}
local rex = {
	["title"] = "[[Regional-Express]]",
	["color"] = "3d85d0",
	["icon"] = "[[File:REX Österreich.svg|16px|link=Regional-Express]]",
}
local r = {
	["color"] = "3d85d0",
	["title"] = "[[Regionalzug]]",
}
local rj = {
	["color"] = "7b0e07",
	["title"] = "[[Railjet]]",
}
local rjx = {
	["color"] = "7b0e07",
	["title"] = "[[Railjet|Railjet Express]]",
}

local p = {
	["system title"] = "[[ÖBB]]",
	["system icon"] = "[[File:Logo ÖBB.svg|18px|link=Austrian Federal Railways]]",
	["system color"] = "1E007D",
	["name format"] = {
		-- Using Verdana instead of Frutiger Next Pro
		"background-color: #1E007D; font-size: 185%; font-family: Verdana; font-weight: 200; color: white; padding: 8px; line-height: 95%;",
	},
	["station format"] = {
		"%1 railway station",
		["Amsterdam Centraal"] = stn,
		["Augsburg"] = hbf,
		["Basel Bad Bf"] = "Basel Badischer Bahnhof",
		["Berlin-Charlottenburg"] = stn,
		["Berlin"] = hbf,
		["Bonn"] = hbf,
		["Bratislava hl.st."] = "Bratislava hlavná stanica",
		["Bremen"] = hbf,
		["Bruck a.d. Leitha"] = "Bruck an der Leitha railway station",
		["Budapest"] = "Budapest Keleti station",
		["Darmstadt"] = hbf,
		["Dortmund"] = hbf,
		["Duisburg"] = hbf,
		["Düsseldorf"] = hbf,
		["Frankfurt (Main)"] = hbf,
		["Freiburg"] = hbf,
		["Graz"] = hbf,
		["Hamburg-Altona"] = stn,
		["Hamburg"] = hbf,
		["Hannover"] = hbf,
		["Innsbruck"] = hbf,
		["Karlsruhe"] = hbf,
		["Klagenfurt"] = hbf,
		["Koblenz"] = hbf,
		["Köln"] = hbf,
		["Krumpendorf/Wörthersee"] = "[[Krumpendorf/Wörthersee railway station|Krumpendorf/​Wörthersee]]",
		["Lindau-Reutin"] = stn,
		["Linz"] = hbf,
		["Mainz"] = hbf,
		["Mannheim"] = hbf,
		["München"] = hbf,
		["Nürnberg"] = hbf,
		["Oberhausen"] = hbf,
		["Passau"] = hbf,
		["Prague"] = "[[Praha hlavní nádraží|Praha hl.n.]]",
		["Praha hl.n."] = "Praha hlavní nádraží",
		["Regensburg"] = hbf,
		["Saarbrücken"] = hbf,
		["Salzburg"] = hbf,
		["St. Pölten"] = hbf,
		["Stuttgart"] = hbf,
		["Villach"] = hbf,
		["Wels"] = hbf,
		["Wien"] = hbf,
		["Wien FJB"] = "Wien Franz-Josefs-Bahnhof",
		["Wien Franz-Josefs-Bahnhof"] = "%1",
		["Wien Westbahnhof"] = "%1",
		["Wiener Neustadt"] = hbf,
		["Wörgl"] = hbf,
		["Würzburg"] = hbf,
		["Zagreb"] = "Zagreb Glavni kolodvor",
		["Zürich"] = "[[Zürich Hauptbahnhof|Zürich HB]]",
		["Zürich Hauptbahnhof"] = "[[Zürich Hauptbahnhof|Zürich HB]]",
	},
	["lines"] = {
		-- RJX (Railjet Express)
		-- 760, 765
		["RJX Bregenz-Vienna"] = {
			["title"] = rjx.title,
			["color"] = rjx.color,
			["left terminus"] = "Bregenz",
			["right terminus"] = "Vienna Airport",		
		},
		-- 890, 897
		["RJX Frankfurt-Bregenz"] = {
			["title"] = rjx.title,
			["color"] = rjx.color,
			["left terminus"] = "Frankfurt (Main)",
			["right terminus"] = "Bregenz",		
		},
		-- 184-185, 560, 562, 565, 569, 669, 762-763, 766-767, 868
		["RJX Innsbruck-Vienna"] = {
			["title"] = rjx.title,
			["color"] = rjx.color,
			["left terminus"] = "Innsbruck",
			["right terminus"] = "Vienna Airport",		
		},
		-- 60-68, 261
		["RJX Munich-Budapest"] = {
			["title"] = rjx.title,
			["color"] = rjx.color,
			["left terminus"] = "München",
			["right terminus"] = "Budapest Keleti",		
		},
		-- 69, 260, 262, 265
		["RJX Munich-Vienna"] = {
			["title"] = rjx.title,
			["color"] = rjx.color,
			["left terminus"] = "München",
			["right terminus"] = "Wien",		
		},
		-- 160, 167
		["RJX Zürich-Bratislava"] = {
			["title"] = rjx.title,
			["color"] = rjx.color,
			["left terminus"] = "Zürich",
			["right terminus"] = "Bratislava hl.st.",		
		},
		-- 162, 165
		["RJX Zürich-Budapest"] = {
			["title"] = rjx.title,
			["color"] = rjx.color,
			["left terminus"] = "Zürich",
			["right terminus"] = "Budapest Keleti",		
		},
		-- 161, 166, 168-169, 367-368
		["RJX Zürich-Vienna"] = {
			["title"] = rjx.title,
			["color"] = rjx.color,
			["left terminus"] = "Zürich",
			["right terminus"] = "Vienna Airport",		
		},

		-- RJ (Railjet)
		-- 666-667
		["RJ Bregenz-Innsbruck"] = {
			["title"] = rj.title,
			["color"] = rj.color,
			["left terminus"] = "Bregenz",
			["right terminus"] = "Innsbruck",		
		},
		-- 256-257
		["RJ Graz-Berlin"] = {
			["title"] = rj.title,
			["color"] = rj.color,
			["left terminus"] = "Graz",
			["right terminus"] = "Berlin-Charlottenburg",		
		},
		-- 370-373
		["RJ Graz-Prague"] = {
			["title"] = rj.title,
			["color"] = rj.color,
			["left terminus"] = "Graz",
			["right terminus"] = "Praha hl.n.",		
		},
		-- 551, 553-554, 558-559, 656-657
		["RJ Graz-Vienna"] = {
			["title"] = rj.title,
			["color"] = rj.color,
			["left terminus"] = "Graz",
			["right terminus"] = "Vienna Airport",		
		},
		-- 596, 691, 698, 797
		["RJ Klagenfurt-Vienna"] = {
			["title"] = rj.title,
			["color"] = rj.color,
			["left terminus"] = "Klagenfurt",
			["right terminus"] = "Vienna Airport",		
		},
		-- 110-111
		["RJ Munich-Klagenfurt"] = {
			["title"] = rj.title,
			["color"] = rj.color,
			["left terminus"] = "München",
			["right terminus"] = "Klagenfurt",		
		},
		-- 1298-1299
		["RJ Munich-Salzburg"] = {
			["title"] = rj.title,
			["color"] = rj.color,
			["left terminus"] = "München",
			["right terminus"] = "Salzburg",		
		},
		-- 540-549
		["RJ Salzburg-Vienna"] = {
			["title"] = rj.title,
			["color"] = rj.color,
			["left terminus"] = "Salzburg",
			["right terminus"] = "Wien",		
		},
		-- 130-133
		["RJ Venice-Vienna"] = {
			["title"] = rj.title,
			["color"] = rj.color,
			["left terminus"] = "Venezia Santa Lucia",
			["right terminus"] = "Wien",		
		},
		-- 535-536, 630-633
		["RJ Villach-Vienna"] = {
			["title"] = rj.title,
			["color"] = rj.color,
			["left terminus"] = "Villach",
			["right terminus"] = "Wien",		
		},
	
		-- IC (InterCity)
		-- 118-119
		["IC Dortmund-Innsbruck"] = {
			["title"] = ic.title,
			["icon"] = ic.icon,
			["color"] = ic.color,
			["note-mind"] = "''Bodensee''",
			["left terminus"] = "Dortmund",
			["right terminus"] = "Innsbruck"				
		},
		-- 312-313; see also Module:Adjacent stations/MÁV START
		["IC Graz-Budapest"] = {
			["title"] = ic.title,
			["color"] = ic.color,
			["icon"] = ic.icon,
			["left terminus"] = "Graz",
			["right terminus"] = "Budapest Keleti",
		},
		-- 310-311; see also Module:Adjacent stations/MÁV START
		["IC Ljubljana-Budapest Keleti"] = {
			["title"] = ic.title,
			["color"] = ic.color,
			["icon"] = ic.icon,
			["left terminus"] = "Ljubljana",
			["right terminus"] = "Budapest Keleti",
		},
		-- 515, 518
		["IC Innsbruck-Graz"] = {
			["title"] = ic.title,
			["icon"] = ic.icon,
			["color"] = ic.color,
			["left terminus"] = "Innsbruck",
			["right terminus"] = "Graz"				
		},
		-- 533, 632
		["IC Lienz-Vienna"] = {
			["title"] = ic.title,
			["icon"] = ic.icon,
			["color"] = ic.color,
			["left terminus"] = "Lienz",
			["right terminus"] = "Wien"				
		},
		-- 500-507, 600, 602-603
		["IC Linz-Graz"] = {
			["title"] = ic.title,
			["icon"] = ic.icon,
			["color"] = ic.color,
			["left terminus"] = "Linz",
			["right terminus"] = "Graz"				
		},
		-- 512-513, 610-611
		["IC Salzburg-Graz"] = {
			["title"] = ic.title,
			["icon"] = ic.icon,
			["color"] = ic.color,
			["left terminus"] = "Salzburg",
			["right terminus"] = "Graz"				
		},
		-- 597, 793-794, 894-895, 898
		["IC Salzburg-Klagenfurt"] = {
			["title"] = ic.title,
			["icon"] = ic.icon,
			["color"] = ic.color,
			["left terminus"] = "Salzburg",
			["right terminus"] = "Klagenfurt"				
		},
		["IC Stainach-Irdning-Vienna"] = {
			["title"] = ic.title,
			["icon"] = ic.icon,
			["color"] = ic.color,
			["left terminus"] = "Stainach-Irdning",
			["right terminus"] = "Wien"			
		},
		["IC Stuttgart-Vienna"] = {
			["title"] = ic.title,
			["icon"] = ic.icon,
			["color"] = ic.color,
			["left terminus"] = "Stuttgart",
			["right terminus"] = "Wien"
		},
		-- 44, 45
		["IC Vienna-Košice"] = {
			["title"] = ic.title,
			["icon"] = ic.icon,
			["color"] = ic.color,
			["left terminus"] = "Wien",
			["right terminus"] = "Košice"
		},
		-- 730, 735, 830-831
		["IC Villach-Vienna"] = {
			["title"] = ic.title,
			["icon"] = ic.icon,
			["color"] = ic.color,
			["left terminus"] = "Villach",
			["right terminus"] = "Wien"
		},

		-- EN (EuroNight)
		-- 407, 40456
		["EN Graz-Warsaw"] = {
			["title"] = en.title,
			["color"] = en.color,
			["left terminus"] = "Graz",
			["right terminus"] = "Warszawa Wschodnia",
		},
		["EN Zürich-Budapest"] = {
			["title"] = en.title,
			["color"] = en.color,
			["left terminus"] = {"Zürich", "Stuttgart"},
			["right terminus"] = "Budapest Keleti",
			["types"] = {
				-- 50237, 50462
				["Stuttgart"] = {
					["title"] = "",
					["left terminus"] = "Stuttgart",
				},
				-- 40462, 40467
				["Zürich"] = {
					["title"] = "",
					["left terminus"] = "Zürich",
				},
			}
		},
		-- 50466, 50467
		["EN Zürich-Prague"] = {
			["title"] = en.title,
			["color"] = en.color,
			["left terminus"] = "Zürich",
			["right terminus"] = "Praha hl.n.",		
		},
		["EN Stuttgart-Zagreb"] = {
			["title"] = en.title,
			["color"] = en.color,
			["left terminus"] = {"Zürich", "Stuttgart"},
			["right terminus"] = "Zagreb",
			["types"] = {
				-- 414, 40237
				["Stuttgart"] = {
					["title"] = "",
					["left terminus"] = "Stuttgart",					
				},
				-- 40414, 40465
				["Zürich"] = {
					["title"] = "",
					["left terminus"] = "Zürich",
				},
			}
		},		

		-- NJ (Nightjet)
		["NJ Hamburg-Zürich"] = {
			["title"] = nj.title,
			["color"] = nj.color,
			["left terminus"] = "Hamburg-Altona",
			["right terminus"] = "Zürich",
		},
		["NJ Amsterdam/Hamburg-Austria"] = {
			["title"] = nj.title,
			["color"] = nj.color,
			["left terminus"] = {"Amsterdam Centraal", "Hamburg-Altona"},
			["right terminus"] = {"Innsbruck", "Wien"},
		},
		-- 402-403, 470-471
		["NJ Amsterdam-Zürich"] = {
			["title"] = nj.title,
			["color"] = nj.color,
			["left terminus"] = "Amsterdam Centraal",
			["right terminus"] = "Zürich",		
		},
		-- 408-409
		["NJ Berlin-Zürich"] = {
			["title"] = nj.title,
			["color"] = nj.color,
			["left terminus"] = "Berlin",
			["right terminus"] = "Zürich",		
		},
		-- 446-447
		["NJ Bregenz-Vienna"] = {
			["title"] = nj.title,
			["color"] = nj.color,
			["left terminus"] = "Bregenz",
			["right terminus"] = "Wien",		
		},
		["NJ Graz-Berlin"] = {
			["title"] = nj.title,
			["color"] = nj.color,
			["left terminus"] = "Graz",
			["right terminus"] = {"Berlin-Charlottenburg", "Warszawa Wschodnia"},
			["types"] = {
				-- 456-457
				["Berlin"] = {
					["title"] = "",
					["right terminus"] = "Berlin-Charlottenburg",
				},
				-- For the Warsaw section, see EN Graz-Warsaw
			},
		},
		["NJ La Spezia-Vienna"] = {
			["title"] = nj.title,
			["color"] = nj.color,
			["left terminus"] = {"Roma Termini", "La Spezia Centrale"},
			["right terminus"] = "Wien",
			["types"] = {
				-- 40233-40294
				["Rome"] = {
					["title"] = "",
					["left terminus"] = "Roma Termini",
				},
				-- 233, 235
				["La Spezia"] = {
					["title"] = "",
					["left terminus"] = "La Spezia Centrale",
				}
			},
		},
		["NJ Munich-Rome"] = {
			["title"] = nj.title,
			["color"] = nj.color,
			["left terminus"] = "München",
			["right terminus"] = {"Roma Termini", "La Spezia Centrale"},
			["types"] = {
				-- 294-295
				["Rome"] = {
					["title"] = "",
					["left terminus"] = "Roma Termini",
					["right terminus"] = "München",
				},
				-- 40235, 40295
				["La Spezia"] = {
					["title"] = "",
					["left terminus"] = "La Spezia Centrale",
					["right terminus"] = "München",
				}
			},
		},
		-- 236-237
		["NJ Stuttgart-Venice"] = {
			["title"] = nj.title,
			["color"] = nj.color,
			["left terminus"] = "Stuttgart",
			["right terminus"] = "Venezia Santa Lucia",		
		},
		-- 464-465
		["NJ Zürich-Graz"] = {
			["title"] = nj.title,
			["color"] = nj.color,
			["left terminus"] = "Zürich",
			["right terminus"] = "Graz",		
		},
		["NJ Zürich-Vienna"] = {
			["title"] = nj.title,
			["color"] = nj.color,
			["left terminus"] = {"Zürich", "Venezia Santa Lucia"},
			["right terminus"] = "Wien",
			["types"] = {
				-- 40236, 40466
				["Venice"] = {
					["title"] = "",
					["left terminus"] = "Venezia Santa Lucia",
				},
				-- 466-467
				["Zürich"] = {
					["title"] = "",
					["left terminus"] = "Zürich",
				},
			},
		},

		-- D (Schnellzug)
		["D Bischofshofen–Vienna"] = {
			["title"] = "[[Pyhrn railway line|''ÖBB-Urlaubsexpress'']]",
			["note-mid"] = "Limited service",
			["color"] = d.color,
			["left terminus"] = "Bischofshofen",
			["right terminus"] = "Wien"
		},

		-- CJX (Cityjet xpress)
		["CJX 1"] = {
			["title"] = "[[Cityjet (ÖBB)|CJX 1]]",
			["color"] = cjx.color,
			["left terminus"] = "Innsbruck",
			["right terminus"] = "Kufstein"
		},
		["CJX 5"] = {
			["title"] = "[[Cityjet (ÖBB)|CJX 5]]",
			["color"] = cjx.color,
			["left terminus"] = "Amstetten",
			["right terminus"] = "Wien Westbahnhof"
		},

		-- REX (Regional-Express)
		["REX 1"] = {
			["title"] = "[[Regional-Express|REX 1]]",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Bludenz",
			["right terminus"] = "Lindau-Insel",
		},
		["REX 1 (Vienna)"] = {
			["title"] = "[[Regional-Express|REX 1]]",
			["short name"] = "REX 1",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Payerbach-Reichenau",
			["right terminus"] = "Břeclav",
		},
		["REX 2"] = {
			["title"] = "[[Regional-Express|REX 2]]",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Innsbruck",
			["right terminus"] = "Kufstein"
		},
		["REX 2 (Vienna)"] = {
			["title"] = "[[Regional-Express|REX 2]]",
			["short name"] = "REX 2",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Wien Westbahnhof",
			["right terminus"] = "Laa an der Thaya",
		},
		["REX 3"] = {
			["title"] = "[[Regional-Express|REX 3]]",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Salzburg",
			["right terminus"] = "Wörgl"
		},
		["REX 3 (Vienna)"] = {
			["title"] = "[[Regional-Express|REX 3]]",
			["short name"] = "REX 3",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Wiener Neustadt",
			["right terminus"] = "Satov",
		},
		["REX 4 (Vienna)"] = {
			["title"] = "[[Regional-Express|REX 4]]",
			["short name"] = "REX 4",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Krems an der Donau",
			["right terminus"] = "Wien Franz-Josefs-Bahnhof",
		},
		["REX 6 (Vienna)"] = {
			["title"] = "[[Regional-Express|REX 6]]",
			["short name"] = "REX 6",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Wien",
			["right terminus"] = "Bratislava-Petržalka",
		},
		["REX 7"] = {
			["title"] = "[[Regional-Express|REX 7]]",
			["short name"] = "REX 7",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Lindau-Reutin",
			["right terminus"] = "Romanshorn",
		},
		["REX 8"] = {
			["title"] = "[[Regional-Express|REX 8]]",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Wien",
			["right terminus"] = "Bratislava hl.st.",
		},
		["REX 9 (Vienna)"] = {
			["title"] = "[[Regional-Express|REX 9]]",
			["short name"] = "REX 9",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Payerbach-Reichenau",
			["right terminus"] = "Wien",
		},
		["REX 21"] = {
			["title"] = "[[Regional-Express|REX 21]]",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Salzburg Taxham Europark",
			["right terminus"] = "Braunau am Inn",
		},
		["REX 41 (Vienna)"] = {
			["title"] = "[[Regional-Express|REX 41]]",
			["short name"] = "REX 41",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "České Velenice",
			["right terminus"] = "Wien Franz-Josefs-Bahnhof",
		},
		["REX 51"] = {
			["title"] = "[[Regional-Express|REX 51]]",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "St. Pölten",
			["right terminus"] = "Wien Westbahnhof",
		},
		["REX 62"] = {
			["title"] = "[[Regional-Express|REX 62]]",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Bruck an der Leitha",
			["right terminus"] = "Győr"
		},
		["REX 62 (Vienna)"] = {
			["title"] = "[[Regional-Express|REX 62]]",
			["short name"] = "REX 62",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Wien",
			["right terminus"] = "Hegyeshalom",
		},
		["REX 64 (Vienna)"] = {
			["title"] = "[[Regional-Express|REX 64]]",
			["short name"] = "REX 64",
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Wien",
			["right terminus"] = "Wulkaprodersdorf",
		},
		["REX Passau-Linz"] = {
			["title"] = rex.title,
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Passau",
			["right terminus"] = "Linz",
		},
		["REX Linz-Selzthal"] = {
			["title"] = rex.title,
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Linz",
			["right terminus"] = "Selzthal",
		},
		["REX Linz-St. Nikola-Struden"] = {
			["title"] = rex.title,
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Linz",
			["right terminus"] = "St. Nikola-Struden",
		},
		["REX Simbach-Linz"] = {
			["title"] = rex.title,
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Simbach (Inn)",
			["right terminus"] = "Linz",
		},
		["REX Wels-Linz"] = {
			["title"] = rex.title,
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Wels",
			["right terminus"] = "Linz",
		},
		["REX Udine-Villach"] = {
			["title"] = rex.title,
			["color"] = rex.color,
			["icon"] = rex.icon,
			["left terminus"] = "Udine",
			["right terminus"] = "Villach",
		},

		-- R (Regionalzug)
		["R 2"] = {
			["title"] = "[[Regionalzug|R 2]]",
			["color"] = r.color,
			["left terminus"] = "Straßwalchen",
			["right terminus"] = "Linz"
		},
		["R 81"] = {
			["title"] = "[[Regionalzug|R 81]]",
			["color"] = r.color,
			["left terminus"] = "Wien",
			["right terminus"] = "Marchegg",
		},
		["R 95"] = {
			["title"] = "[[Regionalzug|R 95]]",
			["color"] = r.color,
			["left terminus"] = "Wien",
			["right terminus"] = "Wiener Neustadt",
		},
		["R Buchs-Feldkirch"] = {
			["title"] = r.title,
			["color"] = r.color,
			["left terminus"] = "Buchs SG",
			["right terminus"] = "Feldkirch",
		},
		["R Grünau im Almtal-Wels"] = {
			["title"] = r.title,
			["color"] = r.color,
			["left terminus"] = "Grünau im Almtal",
			["right terminus"] = "Wels",
		},
		["R Kammer-Schörfling-Attnang-Puchheim"] = {
			["title"] = r.title,
			["color"] = r.color,
			["left terminus"] = "Kammer-Schörfling",
			["right terminus"] = "Attnang-Puchheim"
		},
		["R Obertraun Dachsteinhöhlen-Attnang-Puchheim"] = {
			["title"] = r.title,
			["color"] = r.color,
			["left terminus"] = "Obertraun Dachsteinhöhlen",
			["right terminus"] = "Attnang-Puchheim"
		},
	    ["R Passau-Linz"] = {
			["title"] = r.title,
			["color"] = r.color,
			["left terminus"] = "Passau",
			["right terminus"] = "Linz",
		},
		["R Simbach-Neumarkt-Kallham"] = {
			["title"] = r.title,
			["color"] = r.color,
			["left terminus"] = "Simbach (Inn)",
			["right terminus"] = "Neumarkt-Kallham",
		},
		["R St. Valentin-St. Nikola-Struden"] = {
			["title"] = r.title,
			["color"] = r.color,
			["left terminus"] = "St. Valentin",
			["right terminus"] = "St. Nikola-Struden",
		},
	},
	["aliases"] = {
		["en zürich-zagreb"] = "EN Stuttgart-Zagreb",
	}
}

-- Import EuroCity services
local ec = require('Module:Adjacent stations/EuroCity')
local ec_lines = {
	"EC Frankfurt-Graz",
	"EC Frankfurt-Klagenfurt",
	"EC Frankfurt-Zagreb",
	"EC Graz-Przemysl",
	"EC Linz-Prague",
	"EC Munich-Bologna",
	"EC Munich-Rimini",
	"EC Munich-Venice",
	"EC Munich-Verona",
	"EC Munich-Innsbruck",
	"EC Saarbrücken-Graz",
	"EC Trieste-Vienna",
	"EC Vienna-Budapest",	
	"EC Vienna-Cluj Napoca",
	"EC Vienna-Gdynia",
	"EC Vienna-Katowice",
	"EC Vienna-Warsaw",
	"EC Zagreb-Vienna",
	"EC Zürich-Graz",
	"EC Zürich-München",
}
for k, v in pairs(ec_lines) do
	p["lines"][v] = ec["lines"][v]
	p["lines"][v]["color"] = "ab0020"
end

return p