Module:Adjacent stations/Helsinki commuter rail/sandbox

local color = {
	blue = "305fb8",
	gray = "545454",
	green = "58a618",
	purple = "8c4799",
}

local p = {
	["system title"] = "[[Helsinki commuter rail]]",
	["system icon"] = "[[File:Helsingin lähiliikenteen logo.png|x14px|link=Helsinki commuter rail|alt=Helsinki commuter rail]]",
	["line icon format"] = "croute",
	["station format"] = {
		"%1 railway station",
		["Helsinki"] = "Helsinki Central Station",
		["Airport"] = "Helsinki Airport station",
	},
	["lines"] = {
		["Z"] = {
			["title"] = "[[Helsinki commuter rail#Lahti Line|Z]]",
			["color"] = color.green,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = {"Lahti", "Kouvola"}
		},
		["Y"] = {
			["title"] = "[[Helsinki commuter rail#Coastal Line|Y]]",
			["color"] = color.purple,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Siuntio",
		},
	    ["X"] = {
			["title"] = "[[Helsinki commuter rail#Coastal Line|X]]",
			["color"] = color.purple,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Siuntio",
		},
	    ["T"] = {
			["title"] = "[[Helsinki commuter rail#Coastal Line|T]]",
			["color"] = color.green,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Riihimäki",
		},
	    ["D"] = {
			["title"] = "[[Helsinki commuter rail#Main Line|D]]",
			["color"] = color.green,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = {"Riihimäki", "Hämeenlinna"}
		},
	    ["R"] = {
			["title"] = "[[Helsinki commuter rail#Main Line|R]]",
			["color"] = color.green,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = {"Riihimäki", "Tampere"}
		},
	    ["U"] = {
			["title"] = "[[Helsinki commuter rail#Coastal Line|U]]",
			["color"] = color.purple,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Kirkkonummi",
		},
	    ["E"] = {
			["title"] = "[[Helsinki commuter rail#Coastal Line|E]]",
			["color"] = color.purple,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Kauklahti",
		},
	    ["A"] = {
			["title"] = "[[Helsinki commuter rail#Coastal Line|A]]",
			["color"] = color.purple,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Leppävaara",
		},
	    ["L"] = {
			["title"] = "[[Helsinki commuter rail#Coastal Line|L]]",
			["color"] = color.purple,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Kirkkonummi",
		},
	    ["K"] = {
			["title"] = "[[Helsinki commuter rail#Main Line|K]]",
			["color"] = color.purple,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Kerava",
		},
	    ["I"] = {
			["title"] = "[[Helsinki commuter rail#Ring Rail Line|I]]",
			["color"] = color.purple,
			["text color"] = "ffffff",
			["oneway-left"] = "true",
			["note-mid"] = "counterclockwise via [[Tikkurila railway station|Tikkurila]]",
			["right terminus"] = { "Helsinki", ["via"] = "Airport" },
		},
	    ["P"] = {
			["title"] = "[[Helsinki commuter rail#Ring Rail Line|P]]",
			["color"] = color.purple,
			["text color"] = "ffffff",
			["oneway-left"] = "true",
			["note-mid"] = "clockwise via [[Myyrmäki railway station|Myyrmäki]]",
			["right terminus"] = { "Helsinki", ["via"] = "Airport" },
		},
	    ["G"] = {
			["title"] = "[[VR commuter rail#Services|G]]",
			["color"] = color.green,
			["text color"] = "ffffff",
			["left terminus"] = "Riihimäki",
			["right terminus"] = "Lahti",
		},
		["M"] = {
			["title"] = "[[VR commuter rail#Services|M]]",
			["color"] = color.blue,
			["text color"] = "ffffff",
			["left terminus"] = "Toijala",
			["right terminus"] = "Nokia",
		},
		["O"] = {
			["title"] = "[[VR commuter rail#Services|O]]",
			["color"] = color.green,
			["text color"] = "ffffff",
			["left terminus"] = "Lahti",
			["right terminus"] = "Kotkan satama",
		},
		["H"] = {
			["title"] = "[[Helsinki commuter rail#Former services|H]]",
			["color"] = color.gray,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Riihimäki",
		},
		["N"] = {
			["title"] = "[[Helsinki commuter rail#Former services|N]]",
			["color"] = color.gray,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Kerava",
		},
		["G-old"] = {
			["title"] = "[[Helsinki commuter rail#Former services|G]]",
			["short name"] = "G",
			["color"] = color.gray,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Saunakallio",
		},
		["P-old"] = {
			["title"] = "[[Helsinki commuter rail#Former services|P]]",
			["short name"] = "P",
			["color"] = color.gray,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Hiekkaharju",
		},
		["M-old"] = {
			["title"] = "[[Helsinki commuter rail#Former services|M]]",
			["short name"] = "M",
			["color"] = color.gray,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Vantaankoski",
		},
		["X-old"] = {
			["title"] = "[[Helsinki commuter rail#Former services|X]]",
			["short name"] = "X",
			["color"] = color.gray,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Kirkkonummi",
		},
		["S-old"] = {
			["title"] = "[[Helsinki commuter rail#Former services|S]]",
			["short name"] = "S",
			["color"] = color.gray,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Kirkkonummi",
		},
		["Y-old"] = {
			["title"] = "[[Helsinki commuter rail#Former services|Y]]",
			["color"] = color.gray,
			["text color"] = "ffffff",
			["left terminus"] = "Helsinki",
			["right terminus"] = "Karis",
		},
	},
}

return p