Module:Adjacent stations/Transperth: Difference between revisions

Content deleted Content added
mNo edit summary
+style by railway line
Line 1:
local x = "%1 railway station, Perth"
["namelocal format"]s = "font-family: Arial, sans; background-color: #008635%s; font-size: 170180%%; color: #ffffff%s; padding: 0.5em; line-height: 0.5; white-space: nowrap; margin: 0.25em; text-align: center;",
local c = {
ARM = 'f6a800', EBK = 'd2222c', FRE = '003a79', FTD = '1081a9',
JDP = '959300', MAN = 'd25f15', MID = '960048',
sys = '008635', blk = '000000', wht = 'ffffff'
}
 
local p = {
Line 5 ⟶ 11:
["system icon"] = "[[File:Transperth_icon.svg|x14px|link=Transperth Trains|alt=Transperth]]",
["system color"] = "008635",
["name format"] = {
["name format"] = "font-family: Arial; background-color: #008635; font-size: 170%; color: #ffffff; padding: 0.5em; line-height: 0.5; white-space: nowrap; margin: 0.25em; text-align: center",
string.format(s, c.sys, c.wht),
["ARM"] = string.format(s, c.ARM, c.blk),
["EBK"] = string.format(s, c.EBK, c.wht),
["FRE"] = string.format(s, c.FRE, c.wht),
["FTD"] = string.format(s, c.FTD, c.wht),
["JDP"] = string.format(s, c.JDP, c.wht),
["MAN"] = string.format(s, c.MAN, c.wht),
["MID"] = string.format(s, c.MID, c.wht)
},
["line icon format"] = "link",
["station format"] = {
Line 38 ⟶ 53:
["_default"] = {
["title"] = "[[%1 railway line|%1 line]]",
["color"] = "008635"c.sys
},
["Armadale"] = {
["title"] = "[[Armadale and Thornlie railway lines|Armadale line]]",
["color"] = "f6a800"c.ARM,
["left terminus"] = "Perth",
["right terminus"] = "Armadale"
},
["Fremantle"] = {
["color"] = "003a79"c.FRE,
["left terminus"] = "Perth",
["right terminus"] = "Fremantle",
Line 69 ⟶ 84:
["Forrestfield"] = {
["title"] = "[[Forrestfield–Airport Link|Forrestfield line]]",
["color"] = "1081a9"c.FTD,
["left terminus"] = "Perth",
["right terminus"] = "Forrestfield"
},
["Joondalup"] = {
["color"] = "959300"c.JDP,
["left terminus"] = "Elizabeth Quay",
["right terminus"] = "Butler",
Line 101 ⟶ 116:
},
["Mandurah"] = {
["color"] = "d25f15"c.MAN,
["left terminus"] = "Perth",
["right terminus"] = "Mandurah",
Line 128 ⟶ 143:
},
["Midland"] = {
["color"] = "960048"c.MID,
["left terminus"] = "Perth",
["right terminus"] = "Midland"
},
["Morley–Ellenbrook"] = {
["color"] = "d2222c"c.EBK,
["left terminus"] = "Perth",
["right terminus"] = "Ellenbrook"
Line 139 ⟶ 154:
["Thornlie"] = {
["title"] = "[[Armadale and Thornlie railway lines|Thornlie line]]",
["color"] = "f6a800"c.ARM,
["left terminus"] = "Perth",
["right terminus"] = "Thornlie"