Module:Adjacent stations/Transperth: Difference between revisions

Content deleted Content added
+Thornlie
No edit summary
 
(42 intermediate revisions by 13 users not shown)
Line 1:
local x = "%1 railway station, Perth"
local s = "font-family: Arial, sans; background-color: #%s; font-size: 180160%%; color: #%s; padding: 0.5em; line-height: 0.54em; white-space: nowrap; margin: 0.25em; text-align: center;"
local c = {
ARM = 'f6a800', BYF = 'f6a800', EBK = 'd2222c', FRE = '003a79', FTDHWY = '1081a944c2b2',
JDPYAN = '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),
["FTDHWY"] = string.format(s, c.FTDHWY, c.wht),
["JDPYAN"] = string.format(s, c.JDPYAN, c.wht),
["MAN"] = string.format(s, c.MAN, c.wht),
["MID"] = string.format(s, c.MID, c.wht),
["THO"] = string.format(s, c.ARMTHO, c.blkwht)
},
["line icon format"] = "link",
Line 33 ⟶ 34:
["Clarkson"] = x,
["Eglinton"] = x,
["Ellenbrook"] = x,
["Guildford"] = x,
["MalagaHigh Wycombe"] = x,
["Midland"] = x,
["Morley"] = x,
["Queens Park"] = x,
["Redcliffe"] = x,
["Rockingham"] = x,
["Sherwood"] = x,
Line 53 ⟶ 52:
["lines"] = {
["_default"] = {
["title"] = "[[%1 railway line|%1 line]]",
["color"] = c.sys
},
["Armadale"] = {
["title"] = "[[Armadale and Thornlie railway lines|Armadale line]]",
["color"] = c.ARM,
["left terminus"] = "Perth",
["right terminus"] = "Armadale",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
},
["EllenbrookByford"] = x,{
["title"] = "[[Armadale Line|Byford line]]",
["titlecolor"] = ""c.BYF,
["rightleft terminus"] = "RockinghamPerth",
["right terminus"] = {"RockinghamByford", "Mandurah"},
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
},
["Fremantle"] = {
Line 66 ⟶ 73:
["left terminus"] = "Perth",
["right terminus"] = "Fremantle",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
["types"] = {
["All/D"] = {
Line 83 ⟶ 91:
}
},
["ForrestfieldHigh Wycombe"] = {
["title"] = "[[Forrestfield–AirportAirport Linkline, Perth|ForrestfieldAirport line]]",
["color"] = c.FTDHWY,
["left terminus"] = "PerthClaremont",
["right terminus"] = "ForrestfieldHigh Wycombe",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
},
["JoondalupYanchep"] = {
["color"] = c.JDPYAN,
["left terminus"] = "Elizabeth Quay",
["right terminus"] = "ButlerYanchep",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
["types"] = {
["All/K/W"] = {
["title"] = "",
["right terminus"] = {"Whitfords", "Clarkson", "ButlerYanchep"},
["note-mid"] = "All, K, W"
},
["All/K"] = {
["title"] = "",
["right terminus"] = {"Clarkson", "ButlerYanchep"},
["note-mid"] = "All, K"
},
Line 118 ⟶ 128:
["Mandurah"] = {
["color"] = c.MAN,
["left terminus"] = "Perth Underground",
["right terminus"] = "Mandurah",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
["types"] = {

["All/K/W"] = {
["title"] = "",
["right terminus"] = {"Cockburn Central", "Rockingham", "Mandurah"},
["note-mid"] = "All, K, W"
 
},
["All/K"] = {
["title"] = "",
["right terminus"] = {"Rockingham", "Mandurah"},
["note-mid"] = "All, K"
},
["K"] = {
["title"] = "",
["right terminus"] = "Rockingham",
["note-mid"] = "K"
},
["W"] = {
Line 144 ⟶ 147:
},
["Midland"] = {
["title"] = "[[Midland line, Perth|Midland line]]",
["color"] = c.MID,
["left terminus"] = "Perth",
["right terminus"] = "Midland",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
},
["Morley–EllenbrookEllenbrook"] = {
["color"] = c.EBK,
["left terminus"] = "Perth",
["right terminus"] = "Ellenbrook",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
},
["ThornlieThornlie–Cockburn"] = {
["title"] = "[[Armadale and Thornlie railway lines|ThornlieThornlie–Cockburn line]]",
["color"] = c.ARMTHO,
["left terminus"] = "Perth",
["right terminus"] = "ThornlieCockburn Central",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
}
},
["aliases"] = {
["arm"] = "Armadale",
["ebk"] = "Morley–EllenbrookEllenbrook",
["fre"] = "Fremantle",
["ftd"] = "ForrestfieldHigh Wycombe",
["jdphwy"] = "JoondalupHigh Wycombe",
["titleyan"] = "Yanchep",
["jdp"] = "Yanchep",
["man"] = "Mandurah",
["mid"] = "Midland",
["tho"] = "ThornlieThornlie–Cockburn",
["ellenbrookairport"] = "Morley–EllenbrookHigh Wycombe",
["forrestfield"] = "High Wycombe",
["ellenbrook"] = "Ellenbrook",
["joondalup"] = "Yanchep",
["thornlie"] = "Thornlie–Cockburn"
}
}