Module:Adjacent stations/Transperth: Difference between revisions

Content deleted Content added
Created page with 'local x = "%1 railway station, Perth" local p = { ["system title"] = "Transperth", ["system icon"] = "[[File:Transperth_icon.svg|x14px|l...'
 
No edit summary
 
(60 intermediate revisions by 13 users not shown)
Line 1:
local x = "%1 railway station, Perth"
local s = "background-color: #%s; font-size: 160%%; color: #%s; padding: 0.4em; white-space: nowrap; margin: 0.25em;"
local c = {
ARM = 'f6a800', BYF = 'f6a800', EBK = 'd2222c', FRE = '003a79', HWY = '44c2b2',
YAN = '959300', MAN = 'd25f15', MID = '960048', THO = 'a07ebf',
sys = '008635', blk = '000000', wht = 'ffffff'
}
 
local p = {
["system title"] = "[[Transperth Trains|Transperth]]",
["system icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth Trains|alt=Transperth]]",
["system color"] = "008635",
["name format"] = {
string.format(s, c.sys, c.wht),
["ARM"] = string.format(s, c.ARM, c.blk),
["BYF"] = string.format(s, c.BYF, c.blk),
["EBK"] = string.format(s, c.EBK, c.wht),
["FRE"] = string.format(s, c.FRE, c.wht),
["HWY"] = string.format(s, c.HWY, c.wht),
["YAN"] = string.format(s, c.YAN, c.wht),
["MAN"] = string.format(s, c.MAN, c.wht),
["MID"] = string.format(s, c.MID, c.wht),
["THO"] = string.format(s, c.THO, c.wht)
},
["line icon format"] = "link",
["station format"] = {
Line 14 ⟶ 33:
["Claremont"] = x,
["Clarkson"] = x,
["Eglinton"] = x,
["Guildford"] = x,
["High Wycombe"] = x,
["Midland"] = x,
["Morley"] = x,
["Queens Park"] = x,
["Rockingham"] = x,
["Sherwood"] = x,
["Showgrounds"] = x,
["Stirling"] = x,
Line 29 ⟶ 52:
["lines"] = {
["_default"] = {
["title"] = "[[%1 railway line|%1 line]]",
["color"] = "008635"c.sys
},
["Armadale"] = {
["title"] = "[[Armadale and Thornlie railway lines|Armadale line]]",
["color"] = "febe10"c.ARM,
["left terminus"] = "Perth",
["right terminus"] = "Armadale",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
},
["Byford"] = {
["title"] = "[[Armadale Line|Byford line]]",
["color"] = c.BYF,
["left terminus"] = "Perth",
["right terminus"] = "Byford",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
},
["Fremantle"] = {
["color"] = "005a9c"c.FRE,
["left terminus"] = "Perth",
["right terminus"] = "Fremantle",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
["types"] = {
["All/D"] = {
["title"] = "",
["right terminus"] = {"Shenton Park", "Fremantle"},
["note-mid"] = "All, D"
},
["D"] = {
["title"] = "",
["right terminus"] = "Shenton Park",
["note-mid"] = "D"
},
["Events"] = {
["title"] = "",
["note-mid"] = "Special events"
}
}
},
["JoondalupHigh Wycombe"] = {
["colortitle"] = "a6aa12[[Airport line, Perth|Airport line]]",
["color"] = c.HWY,
["left terminus"] = "Claremont",
["right terminus"] = "High Wycombe",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
},
["Yanchep"] = {
["color"] = c.YAN,
["left terminus"] = "Elizabeth Quay",
["right terminus"] = {"ButlerYanchep", "Clarkson", "Whitfords"}
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
["types"] = {
["All/K/W"] = {
["title"] = "",
["right terminus"] = {"Whitfords", "Clarkson", "Yanchep"},
["note-mid"] = "All, K, W"
},
["All/K"] = {
["title"] = "",
["right terminus"] = {"Clarkson", "Yanchep"},
["note-mid"] = "All, K"
},
["K"] = {
["title"] = "",
["right terminus"] = "Clarkson",
["note-mid"] = "K"
},
["W"] = {
["title"] = "",
["right terminus"] = "Whitfords",
["note-mid"] = "W"
}
}
},
["Mandurah"] = {
["color"] = "e06f1d"c.MAN,
["left terminus"] = "ElizabethPerth QuayUnderground",
["right terminus"] = "Mandurah",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
["types"] = {
["All/W"] = {
["title"] = "",
["right terminus"] = {"Cockburn Central", "Mandurah"},
["note-mid"] = "All, W"
 
},
["W"] = {
["title"] = "",
["right terminus"] = "Cockburn Central",
["note-mid"] = "W"
}
}
},
["ForrestfieldMidland"] = {
["title"] = "[[Forrestfield-AirportMidland Linkline, Perth|ForrestfieldMidland line]]",
["color"] = "1081a9"c.MID,
["left terminus"] = "Perth",
["right terminus"] = "ForrestfieldMidland",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
},
["MidlandEllenbrook"] = {
["color"] = "a90056"c.EBK,
["left terminus"] = "Perth",
["right terminus"] = "MidlandEllenbrook",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
},
["ThornlieThornlie–Cockburn"] = {
["title"] = "[[Armadale and Thornlie railway lines|ThornlieThornlie–Cockburn line]]",
["color"] = "febe10"c.THO,
["left terminus"] = "Perth",
["right terminus"] = "ThornlieCockburn Central",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
}
},
["aliases"] = {
["arm"] = "Armadale",
["ebk"] = "Ellenbrook",
["fre"] = "Fremantle",
["ftd"] = "ForrestfieldHigh Wycombe",
["jdphwy"] = "JoondalupHigh Wycombe",
["yan"] = "Yanchep",
["jdp"] = "Yanchep",
["man"] = "Mandurah",
["mid"] = "Midland",
["tho"] = "ThornlieThornlie–Cockburn",
["airport"] = "High Wycombe",
["forrestfield"] = "High Wycombe",
["ellenbrook"] = "Ellenbrook",
["joondalup"] = "Yanchep",
["thornlie"] = "Thornlie–Cockburn"
}
}