Module:Adjacent stations/Transperth: Difference between revisions

Content deleted Content added
Added some bus lines (will add more in future)
Tag: Reverted
Adding High Wycombe and Claremont via Perth shortcuts
 
(22 intermediate revisions by 8 users not shown)
Line 1:
local x = "%1 railway station, Perth"
local s = "font-family: Interstate, Gill Sans, Arial, sans; background-color: #%s; font-size: 160%%; color: #%s; padding: 0.4em; white-space: nowrap; margin: 0.25em;"
local c = {
ARM = 'f6a800f2a900', EBKBYF = 'd2222cf2a900', FREEBK = '003a79d32737', HWY FRE = '44c2b2002f6c', FSO HWY = 'd25f1544c2b2',
JDPYAN = '959300949300', MAN = 'd25f15cb6015', MID = '960048910048', THO = 'ab72C2',
sys = '008635', blk = '000000', wht = 'ffffff'
}
Line 14:
string.format(s, c.sys, c.wht),
["ARM"] = string.format(s, c.ARM, c.blk),
["561BYF"] = string.format(s, c.MANBYF, c.whtblk),
["EBK"] = string.format(s, c.EBK, c.wht),
["FRE"] = string.format(s, c.FRE, c.wht),
["HWY"] = string.format(s, c.HWY, 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),
["561"] = string.format(s, c.MAN, c.wht)
},
["line icon format"] = "link",
["station format"] = {
"%1 railway station",
["HW via P"] = "[[[High Wycombe railway station, Perth|High Wycombe]] via [[Perth railway station|Perth]]",
["C via P"] = "[[Claremont railway station, Perth|Claremont]] via [[Perth railway station|Perth]]",
 
["Armadale"] = x,
["Ashfield"] = x,
Line 60 ⟶ 62:
["left terminus"] = "Perth",
["right terminus"] = "Armadale",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
},
["All/KByford"] = {
["title"] = "[[Armadale Line|Byford line]]",
["color"] = c.MANBYF,
["left terminus"] = "WarnbroPerth",
["right terminus"] = "RockinghamByford",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
},
Line 91 ⟶ 100:
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
},
["561Yanchep"] = {
["titlecolor"] = "[[561, Perth|Transperth]]"c.YAN,
["color"] = c.MAN,
["left terminus"] = "Warnbro",
["right terminus"] = "Comet Bay College",
["icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth|alt=Transperth]]",
},
["Joondalup"] = {
["color"] = c.JDP,
["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 132 ⟶ 134:
["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 155 ⟶ 149:
},
["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"] = "[[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"] = "High Wycombe",
["hwy"] = "High Wycombe",
["jdpyan"] = "JoondalupYanchep",
["titlejdp"] = "Yanchep",
["man"] = "Mandurah",
["mid"] = "Midland",
["tho"] = "ThornlieThornlie–Cockburn",
["airport"] = "High Wycombe",
["forrestfield"] = "High Wycombe",
["ellenbrook"] = "Morley–EllenbrookEllenbrook",
["joondalup"] = "Yanchep",
["thornlie"] = "Thornlie–Cockburn"
}
}