Module:Adjacent stations/Metro Trains Melbourne: Difference between revisions

Content deleted Content added
fixed
changed how Line colours are shown
Tag: Reverted
Line 1:
local melbourne = "%1 railway station, Melbourne"
local victoria = "%1 railway station, Victoria"
local c = {
ALM = '152C6B', BEG = '152C6B', CGB = 'FFBE00', CBE = '279FD5',
FKN = '028430', GWY = '152C6B', HBE = 'BE1014', LIL = '152C6B',
MDD = 'BE1014', PKM = '279FD5', SHM = 'F178AF', SUY = 'FFBE00',
UFD = 'FFBE00', WER = '028430', WIL = '028430',
sys = '0072CE', blk = '000000', wht = 'ffffff'
}
local p = {
["system title"] = "[[Metro Trains Melbourne|Metro Trains]]",
["system icon"] = "[[File:Melbourne_train_logo.svg|18px|link=Railways in Melbourne|alt=Railways in Melbourne]]",
["systemname colorformat"] = "0072ce",{
string.format(s, c.sys, c.wht),
["name format"] = "font-size: 170%; font-family:sans-serif; line-height: 100%; text-align:center; color: #ffffff; background-color:#0072ce; padding: 0.35em 0.35em 0.25em 0.25em;",
["ALM"] = string.format(s, c.ALM, c.wht),
["header background color"] = "0072ce",
["BEG"] = string.format(s, c.BEG, c.wht),
["CGB"] = string.format(s, c.CGB, c.blk),
["CBE"] = string.format(s, c.CBE, c.blk),
["FKN"] = string.format(s, c.FKN, c.wht),
["GWY"] = string.format(s, c.GWY, c.wht),
["HBE"] = string.format(s, c.HBE, c.wht),
["LIL"] = string.format(s, c.LIL, c.wht),
["MDD"] = string.format(s, c.MDD, c.wht),
["PKM"] = string.format(s, c.PKM, c.blk),
["SHM"] = string.format(s, c.SHM, c.wht),
["SUY"] = string.format(s, c.SUY, c.blk),
["UFD"] = string.format(s, c.UFD, c.blk),
["WER"] = string.format(s, c.WER, c.wht),
["WIL"] = string.format(s, c.WIL, c.wht),
},
["header background color"] = "0072ce",
["header text color"] = "ffffff",
["station format"] = {
Line 107 ⟶ 130:
["Alamein"] = {
["title"] = "[[Alamein line]]",
["color"] = "152c6b"c.ALM,
["text color"] = "FFFFFF",
["left terminus"] = "Flinders Street",
["right terminus"] = "Alamein"
Line 114 ⟶ 136:
["Belgrave"] = {
["title"] = "[[Belgrave line]]",
["color"] = "152c6b"c.BEG,
["text color"] = "FFFFFF",
["left terminus"] = "Flinders Street",
["right terminus"] = "Belgrave"
Line 121 ⟶ 142:
["Craigieburn"] = {
["title"] = "[[Craigieburn line]]",
["color"] = "ffbe00"c.CGB,
["left terminus"] = "Flinders Street",
["right terminus"] = "Craigieburn"
Line 127 ⟶ 148:
["Cranbourne"] = {
["title"] = "[[Cranbourne line]]",
["color"] = "279fd5"c.CBE,
["text color"] = "FFFFFF",
["left terminus"] = "FS via CL",
["right terminus"] = "Cranbourne"
Line 148 ⟶ 168:
["Frankston"] = {
["title"] = "[[Frankston line]]",
["color"] = "028430"c.FKN,
["text color"] = "FFFFFF",
["left terminus"] = "W via FS",
["right terminus"] = "Frankston"
Line 162 ⟶ 181:
["Glen Waverley"] = {
["title"] = "[[Glen Waverley line]]",
["color"] = "152c6b"c.GWY,
["text color"] = "FFFFFF",
["left terminus"] = "Flinders Street",
["right terminus"] = "Glen Waverley"
Line 169 ⟶ 187:
["Hurstbridge"] = {
["title"] = "[[Hurstbridge line]]",
["color"] = "be1014"c.HBE,
["text color"] = "FFFFFF",
["left terminus"] = "Flinders Street",
["right terminus"] = {"Eltham", "Hurstbridge"},
Line 176 ⟶ 193:
["Lilydale"] = {
["title"] = "[[Lilydale line]]",
["color"] = "152c6b"c.LIL,
["text color"] = "FFFFFF",
["left terminus"] = "Flinders Street",
["right terminus"] = "Lilydale"
Line 183 ⟶ 199:
["Mernda"] = {
["title"] = "[[Mernda line]]",
["color"] = "be1014"c.MDD,
["text color"] = "FFFFFF",
["left terminus"] = "Flinders Street",
["right terminus"] = "Mernda"
Line 204 ⟶ 219:
["Pakenham"] = {
["title"] = "[[Pakenham line]]",
["color"] = "279fd5"c.PKM,
["text color"] = "FFFFFF",
["left terminus"] = "FS via CL",
["right terminus"] = "East Pakenham"
Line 218 ⟶ 232:
["Sandringham"] = {
["title"] = "[[Sandringham line]]",
["color"] = "f178af"c.SHM,
["text color"] = "FFFFFF",
["left terminus"] = "Flinders Street",
["right terminus"] = "Sandringham"
Line 232 ⟶ 245:
["Stony Point"] = {
["title"] = "[[Stony Point line]]",
["color"] = "028430"c.FKN,
["text color"] = "FFFFFF",
["left terminus"] = "Frankston",
["right terminus"] = "Stony Point"
Line 255 ⟶ 267:
["Sunbury"] = {
["title"] = "[[Sunbury line]]",
["color"] = "ffbe00"c.SUY,
["left terminus"] = "Flinders Street",
["right terminus"] = {"Watergardens", "Sunbury"},
Line 268 ⟶ 280:
["Upfield"] = {
["title"] = "[[Upfield line]]",
["color"] = "ffbe00"c.UFD,
["left terminus"] = "Flinders Street",
["right terminus"] = "Upfield"
Line 274 ⟶ 286:
["Werribee"] = {
["title"] = "[[Werribee line]]",
["color"] = "028430"c.WER,
["text color"] = "FFFFFF",
["left terminus"] = "Werribee",
["right terminus"] = "F via FS"
Line 281 ⟶ 292:
["Werrlbee"] = {
["title"] = "[[Werribee line]]",
["color"] = "f178af"c.SHM,
["text color"] = "FFFFFF",
["left terminus"] = "S via FS",
["right terminus"] = "Laverton or Werribee"
Line 288 ⟶ 298:
["Williamstown"] = {
["title"] = "[[Williamstown line]]",
["color"] = "028430"c.WIL,
["text color"] = "FFFFFF",
["left terminus"] = "Williamstown",
["right terminus"] = "F via FS"