Module:Adjacent stations/Koleje Mazowieckie

local s = "%1 station"
local n = "<span style=\"color:#FFF; background:#50B53C; padding-left:.3em; padding-right:.3em; font-weight:bold;\">%1</span>"
local Q = "<span class=error>????</span>"

local p = {
	["system title"] = "[[Masovian Railways|KM]]",
	["system icon"] = " ",
	["system color"] = "50B53C",
	["station format"] = {
		"%1 railway station",
		["Radom"] = "[[Radom Główny railway station|Radom]]",
		["Czachówek Południowy or Warszawa Wschodnia"] = "[[Czachówek Południowy railway station|Czachówek Południowy]] or [[Warszawa Wschodnia railway station|Warszawa Wschodnia]]",
		["Warszawa Zachodnia or Warszawa Wileńska"] = "[[Warszawa Wileńska station|Warszawa Wileńska]] or [[Warszawa Zachodnia station|Warszawa Zachodnia]]",
		["Warszawa Wileńska or Warszawa Zachodnia"] = "[[Warszawa Wileńska station|Warszawa Wileńska]] or [[Warszawa Zachodnia station|Warszawa Zachodnia]]",
		["Góra Kalwaria or Skarżysko-Kamienna"] = "[[Góra Kalwaria railway station|Góra Kalwaria]] or [[Skarżysko-Kamienna railway station|Skarżysko-Kamienna]]",
		["Warszawa Wola or Warszawa Zachodnia"] = "[[Warszawa Zachodnia station|Warszawa Zachodnia]]",
        ["Warszawa Wschodnia or Warszawa Główna"] = "[[Warszawa Wschodnia railway station|Warszawa Wschodnia]] or [[Warszawa Główna railway station|Warszawa Główna]]",
		["Warszawa Gdańska"] = s,
		["Warszawa Wileńska"] = s,
		["Warszawa Zachodnia"] = s,
		["Warszawa Zachodnia via Warszawa Śródmieście"] = "[[Warszawa Zachodnia station|Warszawa Zachodnia]] (via&nbsp;[[Warszawa Śródmieście railway station|Warszawa Śródmieście]])",
		["Warszawa Zachodnia via Warszawa Gdańska"] = "[[Warszawa Zachodnia station|Warszawa Zachodnia]] (via&nbsp;[[Warszawa Gdańska station|Warszawa Gdańska]])",
		["Warszawa Zachodnia via Centralna"] = "[[Warszawa Zachodnia station|Warszawa Zachodnia]] (via&nbsp;[[Warszawa Centralna railway station|Warszawa Centralna]])",
		["Działdowo via Warszawa Gdańska"] = "[[Działdowo railway station|Działdowo]] (via [[Warszawa Gdańska station|Warszawa Gdańska]])",
		["Działdowo via Warszawa Śródmieście"] = "[[Działdowo railway station|Działdowo]] (via [[Warszawa Śródmieście railway station|Warszawa Śródmieście]])",
		["Działdowo via Warszawa Centralna"] = "[[Działdowo railway station|Działdowo]] (via [[Warszawa Centralna railway station|Warszawa Centralna]])",
		["Skarżysko-Kamienna or Radom"] = "[[Skarżysko-Kamienna railway station|Skarżysko-Kamienna]] or [[Radom Główny railway station|Radom]]",
	},
	["lines"] = {
		["_default"] = {
			["color"] = "50B53C",
			["title"] = "''[[Masovian Railways|KM]]''"
		},
		["R1"] = {
			["title"] = n,
			["left terminus"] = "Skierniewice",
			["right terminus"] = "Warszawa Wschodnia or Warszawa Główna"
		},
		["RE1"] = {
			["title"] = n,
			["left terminus"] = "Skierniewice",
			["right terminus"] = "Warszawa Wschodnia or Warszawa Główna"
		},
		["R2"] = {
			["title"] = n,
			["left terminus"] = "Warszawa Zachodnia",
			["right terminus"] = "Łuków"
		},
		["RE2"] = {
			["title"] = n,
			["left terminus"] = "Warszawa Zachodnia",
			["right terminus"] = "Łuków"
		},
		["R3"] = {
			["title"] = n,
			["left terminus"] = "Kutno",
			["right terminus"] = "Warszawa Wschodnia or Warszawa Główna"
		},
		["RE3"] = {
			["title"] = n,
			["left terminus"] = "Kutno",
			["right terminus"] = "Warszawa Główna"
		},
		["R6"] = {
			["title"] = n,
			["left terminus"] = "Warszawa Zachodnia",
			["right terminus"] = "Czyżew"
		},
		["RE6"] = {
			["title"] = n,
			["left terminus"] = "Warszawa Zachodnia",
			["right terminus"] = "Małkinia"
		},
		["R7"] = {
			["title"] = n,
			["left terminus"] = "Warszawa Zachodnia",
			["right terminus"] = "Dęblin"
		},
		["R8"] = {
			["title"] = n,
			["left terminus"] = "Góra Kalwaria or Skarżysko-Kamienna",
			["right terminus"] = "Warszawa Wschodnia"
		},
		["RE8"] = {
			["title"] = n,
			["left terminus"] = "Góra Kalwaria or Skarżysko-Kamienna",
			["right terminus"] = "Warszawa Wschodnia"
		},
		["R9"] = {
			["title"] = n,
			["left terminus"] = "Warszawa Zachodnia",
			["right terminus"] = "Działdowo"
		},
		["RE9"] = {
			["title"] = n,
			["left terminus"] = "Warszawa Zachodnia",
			["right terminus"] = "Działdowo"
		},
		["R21"] = {
			["title"] = n,
			["left terminus"] = "Siedlce",
			["right terminus"] = "Czeremcha"
		},
		["RE21"] = {
			["title"] = n,
			["left terminus"] = "Siedlce",
			["right terminus"] = "Czeremcha"
		},
		["R22"] = {
			["title"] = n,
			["left terminus"] = Q,
			["right terminus"] = Q
		},
		["R23"] = {
			["title"] = n,
			["left terminus"] = Q,
			["right terminus"] = Q
		},
		["R27"] = {
			["title"] = n,
			["left terminus"] = Q,
			["right terminus"] = Q
		},
		["R29"] = {
			["title"] = n,
			["left terminus"] = Q,
			["right terminus"] = Q
		},
		["R31"] = {
			["title"] = n,
			["left terminus"] = "Sierpc",
			["right terminus"] = "Kutno"
		},
		["R33"] = {
			["title"] = n,
			["left terminus"] = Q,
			["right terminus"] = Q
		},
		["R60"] = {
			["title"] = n,
			["left terminus"] = "Warszawa Wileńska",
			["right terminus"] = "Czyżew"
		},
		["RE60"] = {
			["title"] = n,
			["left terminus"] = "Warszawa Wileńska",
			["right terminus"] = "Łochów"
		},
		["R61"] = {
			["title"] = n,
			["left terminus"] = "Tłuszcz",
			["right terminus"] = "Ostrołęka"
		},
		["R81"] = {
			["title"] = n,
			["left terminus"] = "Dęblin",
			["right terminus"] = "Radom"
		},
		["R82"] = {
			["title"] = n,
			["left terminus"] = "Radom",
			["right terminus"] = "Drzewica"
		},
		["R90"] = {
			["title"] = n,
			["left terminus"] = "Warszawa Zachodnia",
			["right terminus"] = "Działdowo"
		},
		["RE90"] = {
			["title"] = n,
			["left terminus"] = "Warszawa Zachodnia",
			["right terminus"] = "Działdowo"
		},
		["R91"] = {
			["title"] = n,
			["left terminus"] = "Nasielsk",
			["right terminus"] = "Sierpc"
		},
		["RE91"] = {
			["title"] = n,
			["left terminus"] = "Nasielsk",
			["right terminus"] = "Sierpc"
		},
		["R92"] = {
			["title"] = n,
			["left terminus"] = Q,
			["right terminus"] = Q
		},
		["RE92"] = {
			["title"] = n,
			["left terminus"] = "Legionowo",
			["right terminus"] = "Tłuszcz"
		},
		["RL"] = {
			["title"] = n,
			["left terminus"] = "Warsaw Chopin Airport",
			["right terminus"] = "Modlin"
		},
	},
	["aliases"] = {
		["1"] = "R1",
		["km1"] = "R1",
		["r1"] = "R1",
		["e1"] = "RE1",
		["kme1"] = "RE1",
		["re1"] = "RE1",
		["2"] = "R2",
		["km2"] = "R2",
		["r2"] = "R2",
		["e2"] = "RE2",
		["kme2"] = "RE2",
		["re2"] = "RE2",
		["3"] = "R3",
		["km3"] = "R3",
		["r3"] = "R3",
		["e3"] = "RE3",
		["kme3"] = "RE3",
		["re3"] = "RE3",
		["6"] = "R6",
		["km6"] = "R6",
		["r6"] = "R6",
		["e6"] = "RE6",
		["kme6"] = "RE6",
		["re6"] = "RE6",
		["7"] = "R7",
		["km7"] = "R7",
		["r7"] = "R7",
		["8"] = "R8",
		["km8"] = "R8",
		["r8"] = "R8",
		["e8"] = "RE8",
		["kme8"] = "RE8",
		["re8"] = "RE8",
		["9"] = "R9",
		["km9"] = "R9",
		["r9"] = "R9",
		["e9"] = "RE9",
		["kme9"] = "RE9",
		["re9"] = "RE9",
		["21"] = "R21",
		["km21"] = "R21",
		["r21"] = "R21",
		["e21"] = "RE21",
		["kme21"] = "RE21",
		["re21"] = "RE21",
		["22"] = "R22",
		["km22"] = "R22",
		["r22"] = "R22",
		["26"] = "R23",
		["km26"] = "R23",
		["r23"] = "R23",
		["27"] = "R27",
		["km27"] = "R27",
		["r27"] = "R27",
		["29"] = "R29",
		["km29"] = "R29",
		["r29"] = "R29",
		["31"] = "R31",
		["km31"] = "R31",
		["r31"] = "R31",
		["33"] = "R33",
		["km33"] = "R33",
		["r33"] = "R33",
		["60"] = "R60",
		["km60"] = "R60",
		["r60"] = "R60",
		["e60"] = "RE60",
		["kme60"] = "RE60",
		["re60"] = "RE60",
		["61"] = "R61",
		["km61"] = "R61",
		["r61"] = "R61",
		["81"] = "R81",
		["km81"] = "R81",
		["r81"] = "R81",
		["82"] = "R82",
		["km82"] = "R82",
		["r82"] = "R82",
		["90"] = "R90",
		["km90"] = "R90",
		["r90"] = "R90",
		["e90"] = "RE90",
		["kme90"] = "RE90",
		["re90"] = "RE90",
		["91"] = "R91",
		["km91"] = "R91",
		["r91"] = "R91",
		["e91"] = "RE91",
		["kme91"] = "RE91",
		["re91"] = "RE91",
		["92"] = "R92",
		["km92"] = "R92",
		["r92"] = "R92",
		["e92"] = "RE92",
		["kme92"] = "RE92",
		["re92"] = "RE92",
		["l"] = "RL",
		["rl"] = "RL",
		["kml"] = "RL",
	}
}

return p