Module:Adjacent stations/Transperth

MyWikiBiz, Author Your Legacy — Friday November 15, 2024
< Module:Adjacent stations
Revision as of 18:51, 8 July 2021 by Zoran (talk | contribs) (Moved page from wikipedia:en:Module:Adjacent stations/Transperth)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
local x = "%1 railway station, Perth"
local s = "font-family: Arial, sans; background-color: #%s; font-size: 160%%; color: #%s; padding: 0.4em; white-space: nowrap; margin: 0.25em;"
local c = {
	ARM = 'f6a800', EBK = 'd2222c', FRE = '003a79',	HWY = '1081a9',
	JDP = '959300',	MAN = 'd25f15',	MID = '960048',
	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),
		["EBK"] = string.format(s, c.EBK, c.wht),
		["FRE"] = string.format(s, c.FRE, c.wht),
		["HWY"] = string.format(s, c.HWY, 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),
		["THO"] = string.format(s, c.ARM, c.blk)
	},
	["line icon format"] = "link",
	["station format"] = {
		"%1 railway station",
		
		["Armadale"] = x,
		["Ashfield"] = x,
		["Bayswater"] = x,
		["Carlisle"] = x,
		["Claremont"] = x,
		["Clarkson"] = x,
		["Eglinton"] = x,
		["Ellenbrook"] = x,
		["Guildford"] = x,
		["High Wycombe"] = x,
		["Malaga"] = x,
		["Midland"] = x,
		["Morley"] = x,
		["Perth Underground"] = "Perth railway station",
		["Queens Park"] = x,
		["Redcliffe"] = x,
		["Rockingham"] = x,
		["Sherwood"] = x,
		["Showgrounds"] = x,
		["Stirling"] = x,
		["Swanbourne"] = x,
		["Victoria Park"] = x,
		["Victoria Street"] = x,
		["Warwick"] = x,
		["Welshpool"] = x,
		["Woodbridge"] = x,
	},
	["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"
		},
		["Fremantle"] = {
			["color"] = c.FRE,
			["left terminus"] = "Perth",
			["right terminus"] = "Fremantle",
			["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"
				}
			}
		},
		["High Wycombe"] = {
			["title"] = "[[Airport railway line, Perth|Airport line]]",
			["color"] = c.HWY,
			["left terminus"] = "Perth",
			["right terminus"] = "High Wycombe"
		},
		["Joondalup"] = {
			["color"] = c.JDP,
			["left terminus"] = "Elizabeth Quay",
			["right terminus"] = "Butler",
			["types"] = {
				["All/K/W"] = {
					["title"] = "",
					["right terminus"] = {"Whitfords", "Clarkson", "Butler"},
					["note-mid"] = "All, K, W"
				},
				["All/K"] = {
					["title"] = "",
					["right terminus"] = {"Clarkson", "Butler"},
					["note-mid"] = "All, K"
				},
				["K"] = {
					["title"] = "",
					["right terminus"] = "Clarkson",
					["note-mid"] = "K"
				},
				["W"] = {
					["title"] = "",
					["right terminus"] = "Whitfords",
					["note-mid"] = "W"
				}
			}
		},
		["Mandurah"] = {
			["color"] = c.MAN,
			["left terminus"] = "Perth",
			["right terminus"] = "Mandurah",
			["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"] = {
					["title"] = "",
					["right terminus"] = "Cockburn Central",
					["note-mid"] = "W"
				}
			}
		},
		["Midland"] = {
			["color"] = c.MID,
			["left terminus"] = "Perth",
			["right terminus"] = "Midland"
		},
		["Morley–Ellenbrook"] = {
			["color"] = c.EBK,
			["left terminus"] = "Perth",
			["right terminus"] = "Ellenbrook"
		},
		["Thornlie"] = {
			["title"] = "[[Armadale and Thornlie railway lines|Thornlie line]]",
			["color"] = c.ARM,
			["left terminus"] = "Perth",
			["right terminus"] = "Thornlie"
		}
	},
	["aliases"] = {
		["arm"] = "Armadale",
		["ebk"] = "Morley–Ellenbrook",
		["fre"] = "Fremantle",
		["ftd"] = "High Wycombe",
		["hwy"] = "High Wycombe",
		["jdp"] = "Joondalup",
		["man"] = "Mandurah",
		["mid"] = "Midland",
		["tho"] = "Thornlie",
		["airport"] = "High Wycombe",
		["forrestfield"] = "High Wycombe",
		["ellenbrook"] = "Morley–Ellenbrook"
	}
}

return p