Module:Adjacent stations/Metro Trains Melbourne
local melbourne = "%1 railway station, Melbourne"
local victoria = "%1 railway station, Victoria"
local s = "background-color: #%s; font-size: 160%%; color: #%s; padding: 0.4em; white-space: nowrap; margin: 0.25em;"
local c = {
Alamein = '152C6B', Belgrave = '152C6B', Craigieburn = 'FFBE00', Cranbourne = '279FD5',
Frankston = '028430', GlenWaverley = '152C6B', Hurstbridge = 'BE1014', Lilydale = '152C6B',
Mernda = 'BE1014', Pakenham = '279FD5', Sandringham = 'F178AF', Sunbury = 'FFBE00',
Upfield = 'FFBE00', Werribee = '028430', Williamstown = '028430',
sys = '0072CE', blk = '000000', wht = 'ffffff'
}
local p = {
["system title"] = "Metro Trains",
["system icon"] = "File:Melbourne_train_logo.svg",
["system color"] = "0072ce",
["name format"] = {
string.format(s, c.sys, c.wht),
["Alamein"] = string.format(s, "152c6b", c.wht),
["Belgrave"] = string.format(s, "152c6b", c.wht),
["Craigieburn"] = string.format(s, "FFBE00", c.blk),
["Cranbourne"] = string.format(s, "279FD5", c.blk),
["Frankston"] = string.format(s, "028430", c.wht),
["Glen Waverley"] = string.format(s, "152c6b", c.wht),
["Hurstbridge"] = string.format(s, "BE1014", c.wht),
["Lilydale"] = string.format(s, "152c6b", c.wht),
["Mernda"] = string.format(s, "BE1014", c.wht),
["Pakenham"] = string.format(s, "279FD5", c.blk),
["Sandringham"] = string.format(s, "F178AF", c.wht),
["Sunbury"] = string.format(s, "FFBE00", c.blk),
["Upfield"] = string.format(s, "FFBE00", c.blk),
["Werribee"] = string.format(s, "028430", c.wht),
["Williamstown"] = string.format(s, "028430", c.wht)
},
["header background color"] = "0072ce",
["header text color"] = "ffffff",
["station format"] = {
"%1 railway station",
["City Loop"] = "City Loop",
["FS or P"] = "Flinders Street or Parliament",
["SC or F"] = "Southern Cross or Flagstaff",
["SC or J"] = "Southern Cross or Jolimont",
["SC or P"] = "Southern Cross or Parliament",
["SC or R"] = "Southern Cross or Richmond",
["G or S"] = "Ginifer or Sunshine",
["A or SA"] = "Albion or St Albans",
["T or F"] = "Tottenham or Footscray",
["MF or S"] = "Middle Footscray or Sunshine",
["M or C"] = "Malvern or Caulfield",
["S or N"] = "Seddon or Newport",
["S or F"] = "Spotswood or Footscray",
["SK or F"] = "South Kensington or Footscray",
["K or E"] = "Kensington or Essendon",
["S or L"] = "Seaholme or Laverton",
["W or N"] = "Westona or Newport",
["A or W"] = "Aircraft or Werribee",
["HC or L"] = "Hoppers Crossing or Laverton",
["WR or VP"] = "West Richmond or Victoria Park",
["CO or JO"] = "Collingwood or Jolimont",
["M or NM"] = "Moonee Ponds or North Melbourne",
["F via FS"] = "Frankston via Flinders Street",
["S via FS"] = "Sandringham via Flinders Street",
["W via FS"] = "Werribee or Williamstown via Flinders Street",
["EC via TH"] = "East Pakenham or Cranbourne via Town Hall",
["S via TH"] = "Watergardens or Sunbury via Town Hall",
["FS via CL"] = "Flinders Street via City Loop",
["Albion"] = melbourne,
["Armadale"] = melbourne,
["Arden"] = melbourne,
["Ashburton"] = melbourne,
["Auburn"] = melbourne,
["Balaclava"] = melbourne,
["Bayswater"] = melbourne,
["Beaconsfield"] = melbourne,
["Bell"] = melbourne,
["Berwick"] = melbourne,
["Blackburn"] = melbourne,
["Box Hill"] = melbourne,
["Broadmeadows"] = melbourne,
["Brunswick"] = melbourne,
["Burwood"] = melbourne,
["Camberwell"] = melbourne,
["Canterbury"] = melbourne,
["Chatham"] = melbourne,
["Chelsea"] = melbourne,
["Cheltenham"] = melbourne,
["Clayton"] = melbourne,
["Clyde"] = victoria,
["Croydon"] = melbourne,
["East Richmond"] = melbourne,
["Eltham"] = melbourne,
["Epping"] = melbourne,
["Fairfield"] = melbourne,
["Hampton"] = melbourne,
["Hastings"] = melbourne,
["Hawthorn"] = melbourne,
["Ivanhoe"] = melbourne,
["Kensington"] = melbourne,
["Laverton"] = melbourne,
["Malvern"] = melbourne,
["Melton"] = melbourne,
["Mitcham"] = melbourne,
["Montmorency"] = melbourne,
["Newmarket"] = melbourne,
["Newport"] = melbourne,
["Oak Park"] = melbourne,
["Paisley"] = melbourne,
["Preston"] = melbourne,
["Richmond"] = melbourne,
["Ringwood"] = melbourne,
["Sandown Park"] = melbourne,
["Seaford"] = melbourne,
["Showgrounds"] = melbourne,
["St Albans"] = melbourne,
["Sunbury"] = melbourne,
["Sunshine"] = melbourne,
["Thomastown"] = melbourne,
["Thornbury"] = melbourne,
["Town Hall"] = melbourne,
["Union"] = melbourne,
["Upwey"] = melbourne,
["Victoria Park"] = melbourne,
["Windsor"] = melbourne,
},
["lines"] = {
["City Circle"] = {
["title"] = "City Circle",
["color"] = "000000",
["left terminus"] = "",
["right terminus"] = "",
["circular"] = true
},
["Alamein"] = {
["title"] = "Alamein line",
["color"] = "152c6b",
["text color"] = "FFFFFF",
["left terminus"] = "Flinders Street",
["right terminus"] = "Alamein"
},
["Belgrave"] = {
["title"] = "Belgrave line",
["color"] = "152c6b",
["text color"] = "FFFFFF",
["left terminus"] = "Flinders Street",
["right terminus"] = "Belgrave"
},
["Craigieburn"] = {
["title"] = "Craigieburn line",
["color"] = "ffbe00",
["left terminus"] = "Flinders Street",
["right terminus"] = "Craigieburn"
},
["Cranbourne"] = {
["title"] = "Cranbourne line",
["color"] = "279fd5",
["text color"] = "FFFFFF",
["left terminus"] = "FS via CL",
["right terminus"] = "Cranbourne"
},
["CranbourneM"] = {
["title"] = "Cranbourne line",
["color"] = "279fd5",
["text color"] = "FFFFFF",
["left terminus"] = "S via TH",
["right terminus"] = "Cranbourne"
},
["Flemington Racecourse"] = {
["title"] = "Flemington Racecourse line",
["color"] = "95979a",
["text color"] = "FFFFFF",
["left terminus"] = {"Southern Cross", "Flinders Street"},
["right terminus"] = {"Showgrounds", "Flemington Racecourse"},
},
["Frankston"] = {
["title"] = "Frankston line",
["color"] = "028430",
["text color"] = "FFFFFF",
["left terminus"] = "W via FS",
["right terminus"] = "Frankston"
},
["FrankstonC"] = {
["title"] = "Frankston line",
["color"] = "028430",
["text color"] = "FFFFFF",
["left terminus"] = "City Loop",
["right terminus"] = "Frankston"
},
["Glen Waverley"] = {
["title"] = "Glen Waverley line",
["color"] = "152c6b",
["text color"] = "FFFFFF",
["left terminus"] = "Flinders Street",
["right terminus"] = "Glen Waverley"
},
["Hurstbridge"] = {
["title"] = "Hurstbridge line",
["color"] = "be1014",
["text color"] = "FFFFFF",
["left terminus"] = "Flinders Street",
["right terminus"] = {"Eltham", "Hurstbridge"},
},
["Lilydale"] = {
["title"] = "Lilydale line",
["color"] = "152c6b",
["text color"] = "FFFFFF",
["left terminus"] = "Flinders Street",
["right terminus"] = "Lilydale"
},
["Mernda"] = {
["title"] = "Mernda line",
["color"] = "be1014",
["text color"] = "FFFFFF",
["left terminus"] = "Flinders Street",
["right terminus"] = "Mernda"
},
["Melbourne Airport"] = {
["title"] = "Airport
(under construction)",
["color"] = "F95602",
["text color"] = "FFFFFF",
["left terminus"] = {"Pakenham", "Cranbourne"},
["right terminus"] = "Melbourne Airport"
},
["Metro Tunnel"] = {
["title"] = "Sunshine–Dandenong corridor
(under construction)",
["color"] = "279fd5",
["text color"] = "FFFFFF",
["left terminus"] = "Sunbury",
["right terminus"] = {"East Pakenham", "Cranbourne"}
},
["Pakenham"] = {
["title"] = "Pakenham line",
["color"] = "279fd5",
["text color"] = "FFFFFF",
["left terminus"] = "FS via CL",
["right terminus"] = "East Pakenham"
},
["PakenhamM"] = {
["title"] = "Pakenham line",
["color"] = "279fd5",
["text color"] = "FFFFFF",
["left terminus"] = "S via TH",
["right terminus"] = "East Pakenham"
},
["Sandringham"] = {
["title"] = "Sandringham line",
["color"] = "f178af",
["text color"] = "FFFFFF",
["left terminus"] = "Flinders Street",
["right terminus"] = "Sandringham"
},
["Sandr|ngham"] = {
["title"] = "Sandringham line",
["color"] = "f178af",
["text color"] = "FFFFFF",
["left terminus"] = "Sandringham",
["right terminus"] = "W via FS"
},
["Stony Point"] = {
["title"] = "Stony Point line",
["color"] = "028430",
["text color"] = "FFFFFF",
["left terminus"] = "Frankston",
["right terminus"] = "Stony Point"
},
["Suburban Rail Loop"] = {
["title"] = "Suburban Rail Loop
(planned)",
["color"] = "008746",
["text color"] = "FFFFFF",
["left terminus"] = "Cheltenham",
["right terminus"] = "Werribee",
["icon"] = "File:Melbourne Suburban Rail Loop logo.svg"
},
["Suburban Rail Loop East"] = {
["title"] = "Suburban Rail Loop East
(under construction)",
["color"] = "008746",
["text color"] = "FFFFFF",
["left terminus"] = "Southland",
["right terminus"] = "Box Hill",
["icon"] = "File:Melbourne Suburban Rail Loop logo.svg"
},
["Sunbury"] = {
["title"] = "Sunbury line",
["color"] = "ffbe00",
["left terminus"] = "Flinders Street",
["right terminus"] = {"Watergardens", "Sunbury"},
},
["SunburyM"] = {
["title"] = "Sunbury line",
["color"] = "279fd5",
["text color"] = "FFFFFF",
["left terminus"] = "EC via TH",
["right terminus"] = {"Watergardens", "Sunbury"},
},
["Upfield"] = {
["title"] = "Upfield line",
["color"] = "ffbe00",
["left terminus"] = "Flinders Street",
["right terminus"] = "Upfield"
},
["Werribee"] = {
["title"] = "Werribee line",
["color"] = "028430",
["text color"] = "FFFFFF",
["left terminus"] = "Werribee",
["right terminus"] = "F via FS"
},
["Werrlbee"] = {
["title"] = "Werribee line",
["color"] = "f178af",
["text color"] = "FFFFFF",
["left terminus"] = "S via FS",
["right terminus"] = "Laverton or Werribee"
},
["Williamstown"] = {
["title"] = "Williamstown line",
["color"] = "028430",
["text color"] = "FFFFFF",
["left terminus"] = "Williamstown",
["right terminus"] = "F via FS"
},
["WilIiamstown"] = {
["title"] = "Williamstown line",
["color"] = "f178af",
["text color"] = "FFFFFF",
["left terminus"] = "S via FS",
["right terminus"] = "Williamstown"
},
["V/Line"] = {
["title"] = "V/Line",
["color"] = "8f1a95",
["text color"] = "FFFFFF",
["icon"] = "File:Victoria_train_logo.svg",
},
},
["aliases"] = {
["flemington"] = "Flemington Racecourse",
["airport"] = "Melbourne Airport",
}
}
return p;