Module:Adjacent stations/Mexico City Metro

local mc = "%1 metro station (Mexico City)" local np = "%1 metro station (Naucalpan)" local sm = "%1 metro station (State of Mexico)" local az = "UAM-Azcapotzalco metro station" local et = "Etiopía / Plaza de la Transparencia metro station" local fe = "Ferrería/Arena Ciudad de México metro station" local ga = "Garibaldi / Lagunilla metro station" local ni = "Niños Héroes / Poder Judicial CDMX metro station" local vi = "Viveros / Derechos Humanos metro station" local zo = "Zócalo/Tenochtitlan metro station"

local name_format = "font-size: 185%; font-family: sans-serif; color: white; padding: 5px; line-height: 50%;"

local p = { ["lang"] = "en-US", ["system title"] = "Mexico City Metro", ["system icon"] = "", ["system color"] = "FF8C00", ["name format"] = { "background-color: #FF8C00; " .. name_format .. " text-transform: uppercase;", ["1"] = "background-color: #F04E98; " .. name_format, ["2"] = "background-color: #005EB8; " .. name_format, ["3"] = "background-color: #AF9800; " .. name_format, ["4"] = "background-color: #6BBBAE; " .. name_format, ["5"] = "background-color: #FFD100; " .. name_format, ["6"] = "background-color: #DA291C; " .. name_format, ["7"] = "background-color: #E87722; " .. name_format, ["8"] = "background-color: #009A44; " .. name_format, ["9"] = "background-color: #512F2E; " .. name_format, ["A"] = "background-color: #981D97; " .. name_format, ["B"] = "background-color: #B1B3B3; " .. name_format, ["12"] = "background-color: #B0A32A; " .. name_format, ["1 2"] = name_format .. " background-image: linear-gradient(to right, #F04E98, #F04E98, #005EB8, #005EB8);", ["1 3"] = name_format .. " background-image: linear-gradient(to right, #F04E98, #F04E98, #AF9800, #AF9800);", ["1 4"] = name_format .. " background-image: linear-gradient(to right, #F04E98, #F04E98, #6BBBAE, #6BBBAE);", ["1 8"] = name_format .. " background-image: linear-gradient(to right, #F04E98, #F04E98, #009A44, #009A44);", ["1 B"] = name_format .. " background-image: linear-gradient(to right, #F04E98, #F04E98, #B1B3B3, #B1B3B3);", ["1 12"] = name_format .. " background-image: linear-gradient(to right, #F04E98, #F04E98, #B0A32A, #B0A32A);", ["1 7 9"] = name_format .. " background-image: linear-gradient(to right, #F04E98, #E87722, #E87722, #512F2E);", ["1 5 9 A"] = name_format .. " background-image: linear-gradient(to right, #F04E98, #FFD100, #512F2E, #981D97);", ["2 3"] = name_format .. " background-image: linear-gradient(to right, #005EB8, #005EB8, #AF9800, #AF9800);", ["2 7"] = name_format .. " background-image: linear-gradient(to right, #005EB8, #005EB8, #E87722, #E87722);", ["2 8"] = name_format .. " background-image: linear-gradient(to right, #005EB8, #005EB8, #009A44, #009A44);", ["2 12"] = name_format .. " background-image: linear-gradient(to right, #005EB8, #005EB8, #B0A32A, #B0A32A);", ["2 8 9"] = name_format .. " background-image: linear-gradient(to right, #005EB8, #009A44, #009A44, #512F2E);", ["3 5"] = name_format .. " background-image: linear-gradient(to right, #AF9800, #AF9800, #FFD100, #FFD100);", ["3 6"] = name_format .. " background-image: linear-gradient(to right, #AF9800, #AF9800, #DA291C, #DA291C);", ["3 9"] = name_format .. " background-image: linear-gradient(to right, #AF9800, #AF9800, #512F2E, #512F2E);", ["3 12"] = name_format .. " background-image: linear-gradient(to right, #AF9800, #AF9800, #B0A32A, #B0A32A);", ["3 B"] = name_format .. " background-image: linear-gradient(to right, #AF9800, #AF9800, #B1B3B3, #B1B3B3);", ["4 5"] = name_format .. " background-image: linear-gradient(to right, #6BBBAE, #6BBBAE, #FFD100, #FFD100);", ["4 6"] = name_format .. " background-image: linear-gradient(to right, #6BBBAE, #6BBBAE, #DA291C, #DA291C);", ["4 8"] = name_format .. " background-image: linear-gradient(to right, #6BBBAE, #6BBBAE, #009A44, #009A44);", ["4 9"] = name_format .. " background-image: linear-gradient(to right, #6BBBAE, #6BBBAE, #512F2E, #512F2E);", ["4 B"] = name_format .. " background-image: linear-gradient(to right, #6BBBAE, #6BBBAE, #B1B3B3, #B1B3B3);", ["5 6"] = name_format .. " background-image: linear-gradient(to right, #FFD100, #FFD100, #DA291C, #DA291C);", ["5 B"] = name_format .. " background-image: linear-gradient(to right, #FFD100, #FFD100, #B1B3B3, #B1B3B3);", ["6 7"] = name_format .. " background-image: linear-gradient(to right, #DA291C, #DA291C, #E87722, #E87722);", ["7 12"] = name_format .. " background-image: linear-gradient(to right, #E87722, #E87722, #B0A32A, #B0A32A);", ["8 12"] = name_format .. " background-image: linear-gradient(to right, #009A44, #009A44, #B0A32A, #B0A32A);", ["8 B"] = name_format .. " background-image: linear-gradient(to right, #009A44, #009A44, #B1B3B3, #B1B3B3);", },	["station format"] = { "%1 metro station", ["Azcapotzalco"] = az, ["Bellas Artes"] = mc, ["Cuatro Caminos"] = np, ["Cuauhtémoc"] = mc, ["Etiopía"] = et, ["Ferrería"] = fe, ["Garibaldi"] = ga, ["General Anaya"] = mc, ["Hospital General"] = mc, ["Lázaro Cárdenas"] = mc, ["Niños Héroes"] = ni, ["Observatorio"] = mc, ["La Paz"] = sm, ["Revolución"] = mc, ["San Antonio"] = mc, ["San Joaquín"] = mc, ["Sevilla"] = mc, ["Universidad"] = mc, ["Viveros"] = vi, ["Zaragoza"] = mc, ["Zócalo"] = zo, },	["lines"] = { ["_default"] = { ["title"] = "Line %1", ["icon"] = "", },		["1"] = {			["color"] = "F04E98", ["left terminus"] = "Observatorio", ["right terminus"] = "Pantitlán", },		["2"] = {			["color"] = "005EB8", ["left terminus"] = "Cuatro Caminos", ["right terminus"] = "Tasqueña", },		["3"] = {			["color"] = "AF9800", ["left terminus"] = "Indios Verdes", ["right terminus"] = "Universidad", },		["4"] = {			["color"] = "6BBBAE", ["left terminus"] = "Martín Carrera", ["right terminus"] = "Santa Anita", },		["5"] = {			["color"] = "FFD100", ["left terminus"] = "Politécnico", ["right terminus"] = "Pantitlán", },		["6"] = {			["color"] = "DA291C", ["left terminus"] = "El Rosario", ["right terminus"] = "Martín Carrera", },	   ["7"] = {			["color"] = "E87722", ["left terminus"] = "El Rosario", ["right terminus"] = "Barranca del Muerto", },		["8"] = {			["color"] = "009A44", ["left terminus"] = "Garibaldi / Lagunilla", ["right terminus"] = "Constitución de 1917", },		["9"] = {			["color"] = "512F2E", ["left terminus"] = "Tacubaya", ["right terminus"] = "Pantitlán", },	   ["A"] = { ["color"] = "981D97", ["left terminus"] = "Pantitlán", ["right terminus"] = "La Paz", },	   ["B"] = { ["color"] = "B1B3B3", ["left terminus"] = "Ciudad Azteca", ["right terminus"] = "Buenavista", },	   ["12"] = {			["color"] = "B0A32A", ["left terminus"] = "Observatorio", ["right terminus"] = "Tláhuac", },	}, }

return p