Module:Adjacent stations/London Underground

Permanently protected module
From Wikipedia, the free encyclopedia

local x = "%1 station"
local rs = "%1 railway station"
local default = "%1 tube station"
local Q_type = "<span class=\"error\">Specify a type</span>"

local p = {
	["system title"] = "[[London Underground]]",
	["system icon"] = "[[File:Underground no-text.svg|18px|link=London Underground]]",
	["station format"] = {
		default,
		
		-- Multi-line stations
		["Bank"] = "Bank and Monument stations",
		["Barking"] = x,
		["Blackfriars"] = x,
		["Bond Street"] = x,
		["Cannon Street"] = x,
		["Charing Cross"] = {
			default,
			["District"] = "Embankment tube station"
		},
		["Denham"] = rs,
		["Edgware Road"] = {
			"Edgware Road tube station (Circle, District and Hammersmith & City lines)",
			["Bakerloo"] = "Edgware Road tube station (Bakerloo line)"
		},
		["Ealing Broadway"] = x,
		["Farringdon"] = x,
		["Finsbury Park"] = x,
		["Hammersmith"] = {
			"Hammersmith tube station (Circle and Hammersmith & City lines)",
			["District"] = "Hammersmith tube station (District and Piccadilly lines)",
			["Piccadilly"] = "Hammersmith tube station (District and Piccadilly lines)"
		},
		["Leigh-on-Sea"] = rs,
		["Liverpool Street"] = x,
		["London Bridge"] = x,
		["Monument"] = "Bank and Monument stations",
		["Moorgate"] = x,
		["Paddington"] = {
			"Paddington tube station (Bakerloo, Circle and District lines)",
			["Hammersmith & City"] = "Paddington tube station (Circle and Hammersmith & City lines)",
			["Circle"] = {
				["section 1"] = "Paddington tube station (Circle and Hammersmith & City lines)",
				["section 6"] = "Paddington tube station (Bakerloo, Circle and District lines)"
			},
			["Metropolitan Railway"] = "Paddington tube station (Circle and Hammersmith & City lines)",
			["Great Western Railway"] = "Paddington tube station (Circle and Hammersmith & City lines)"
		},
		["Shepherd's Bush"] = {
			default,
			["Metropolitan"] = "Shepherd's Bush Market tube station",
			["London and South Western Railway"] = "Shepherd's Bush railway station (1869–1916)"
		},
		["Shoeburyness"] = rs,
		["Stratford"] = x,
		["Southend Central"] = rs,
		["Sutton"] = "Sutton railway station (London)",
		["Sutton Common"] = rs,
		["Swiss Cottage"] = 
		{
			default,
			["Metropolitan"] = "Swiss Cottage tube station (1868–1940)"
		},
		["Terminals 2 & 3"] = "Heathrow Terminals 2 & 3 tube station",
		["Terminal 4"] = "Heathrow Terminal 4 tube station",
		["Tottenham Court Road"] = x,
		["West Ham"] = x,
		["Wood Green"] = {
			default,
			["Great Northern & Strand"] = "Alexandra Palace railway station"
		},
		["Wood Lane"] = {
			default,
			["Central"] = "Wood Lane tube station (Central line)",
			["Metropolitan"] = "Wood Lane tube station (Metropolitan line)"
		},
		
		-- Bakerloo line
		["Bushey"] = rs,
		["Carpenders Park"] = rs,
		["Harlesden"] = x,
		["Harrow & Wealdstone"] = x,
		["Hatch End"] = rs,
		["Headstone Lane"] = rs,
		["North Wembley"] = x,
		["Old Oak Common"] = rs,
		["Queen's Park"] = "Queen's Park station (England)",
		["South Kenton"] = x,
		["Stonebridge Park"] = x,
		["Victoria"] = "London Victoria station",
		["Wembley Central"] = x,
		["Whitechapel"] = x,
		["Willesden Junction"] = x,
		
		-- Central line
		["Greenford"] = x,
		["North Weald"] = rs,
		["Ongar"] = rs,
		["Post Office"] = "St Paul's tube station",
		["South Ruislip"] = x,
		["West Ruislip"] = x,
		
		-- Circle line
		
		-- District line
		["Gunnersbury"] = x,
		["Hanwell"] = rs,
		["Heston & Hounslow"] = "Hounslow Central tube station",
		["Hounslow Barracks"] = "Hounslow West tube station",
		["Kew Gardens"] = "Kew Gardens station (London)",
		["Langley"] = rs,
		["Morden (Village)"] = "[[Morden tube station (District Railway)|Morden]]",
		["Richmond"] = "Richmond station (London)",
		["Slough"] = rs,
		["South Acton"] = "South Acton railway station (England)",
		["Southall"] = rs,
		["Upminster"] = x,
		["West Brompton"] = x,
		["West Drayton"] = rs,
		["West Ealing"] = rs,
		["Wimbledon"] = x,
		["Windsor"] = "Windsor & Eton Central railway station",

		-- Hammersmith & City line
		
		-- Jubilee line
		["Canada Water"] = x,
		["Canning Town"] = x,
		["Fenchurch Street"] = rs,
		["Silvertown"] = rs,

		-- Metropolitan line
		["Amersham"] = x,
		["Aylesbury"] = rs,
		["Brill"] = rs,
		["Chalfont & Latimer"] = x,
		["Chorleywood"] = x,
		["Great Missenden"] = rs,
		["Harrow-on-the-Hill"] = x,
		["Kensington (Addison Road)"] = "Kensington (Olympia) station",
		["Quainton Road"] = rs,
		["Rickmansworth"] = x,
		["Stoke Mandeville"] = rs,
		["Verney Junction"] = rs,
		["Watford High Street"] = rs,
		["Watford Junction"] = rs,
		["Wendover"] = rs,

		-- Northern line
		["Alexandra Palace"] = "Alexandra Palace railway station (1873–1954)",
		["Balham"] = x,
		["Cranley Gardens"] = rs,
		["Crouch End"] = rs,
		["Essex Road"] = rs,
		["Kentish Town"] = x,
		["Mill Hill (The Hale)"] = rs,
		["Muswell Hill"] = rs,
		["Old Street"] = x,
		["Stroud Green"] = rs,

		-- Piccadilly line
		["Dover Street"] = "Green Park tube station",
		["Heathrow Terminal 5"] = x,
		--psudo station entry for display as terminal
		["Heathrow"] = "[[Heathrow Airport]] ([[Heathrow Terminal 4 tube station|Terminal 4]] or [[Heathrow Terminal 5 station|Terminal 5]])",

		-- Victoria line
		["Blackhorse Road"] = x,
		["Highbury & Islington"] = x,
		["Seven Sisters"] = x,
		["Vauxhall"] = x,
		["Tottenham Hale"] = x,
		["Walthamstow Central"] = x,
		["Walthamstow Wood Street"] = "Wood Street railway station",

		-- Waterloo & City line
		
		-- Historical lines
		["Addison Road"] = "Kensington (Olympia) station",
		["Custom House"] = x,
		["Deptford Road"] = "Surrey Quays railway station",
		["Drayton Park"] = rs,
		["Gillespie Road"] = "Arsenal tube station",
		["Hammersmith (Grove Road)"] = rs,
		["Harringay"] = rs,
		["Harrow"] = {
			default,
			["Metropolitan Railway"] = "Harrow-on-the-Hill station"
		},
		["Hornsey"] = rs,
		["New Cross"] = rs,
		["New Cross Gate"] = rs,
		["Putney Bridge & Fulham"] = "Putney Bridge tube station",
		["Rotherhithe"] = rs,
		["Shadwell"] = rs,
		["St Pancras"] = rs,
		["Strand"] = "Aldwych tube station",
		["Surrey Docks"] = "Surrey Quays railway station",
		["Surrey Quays"] = rs,
		["Wapping"] = rs,
		["Woolwich Arsenal"] = x
	},
	["lines"] = {
		["_default"] = {
			["title"] = "[[%1 line]]",
			["color"] = "10069f",
			["text color"] = "ffffff"
		},
		["Bakerloo"] = {
			["color"] = "a45a2a",
			["icon"] = "[[File:Bakerloo line roundel (no text).svg|18px|link=Bakerloo line|alt=Bakerloo line]]",
			["left terminus"] = "Harrow & Wealdstone",
			["right terminus"] = "Elephant & Castle",
			["types"] = {
				["Stanmore"] = {
					["title"] = "[[Bakerloo line#Stanmore branch|Stanmore branch]] (1939–1979)",
					["left terminus"] = "Stanmore",
					["right terminus"] = "Elephant & Castle"
				}
			}
		},
		["Central"] = {
			["title"] = "[[Central line (London Underground)|Central line]]",
			["color"] = "da291c",
			["icon"] = "[[File:Central line roundel (no text).svg|18px|link=Central line (London Underground)|alt=Central line (London Underground)]]",
			["left terminus"] = {"Ealing Broadway", "West Ruislip"},
			["right terminus"] = {"Epping", "Hainault", "Woodford", ["via"] = "Newbury Park"},
			["types"] = {
				["Ealing Broadway"] = {
					["title"] = "Ealing Broadway branch",
					["left terminus"] = "Ealing Broadway"
				},
				["Ruislip"] = {
					["title"] = "Ruislip Branch",
					["left terminus"] = "West Ruislip"
				}
			}
		},
		["Circle"] = {
			["title"] = "[[Circle line (London Underground)|Circle line]]",
			["color"] = "ffcd00",
			["text color"] = "0613AA",
			["icon"] = "[[File:Circle line roundel (no text).svg|18px|link=Circle line (London Underground)|alt=Circle line (London Underground)]]",
			["circular"] = true,	--for custom links to terminus
			["left terminus"] = Q_type,
			["right terminus"] = Q_type,
			["types"] = {
				["section 1"] = {
					["title"] = "",
					["left terminus"] = "Hammersmith",
					["right terminus"] = {"Edgware Road", ["via"] = "Aldgate"}
				},
				["section 2"] = {
					["title"] = "",
					["left terminus"] = {"Hammersmith", ["via"] = "King's Cross St Pancras"},
					["right terminus"] = {"Edgware Road", ["via"] = "Victoria"}
				},
				["section 3"] = {
					["title"] = "",
					["left terminus"] = {"Edgware Road", ["via"] = "Victoria"},
					["right terminus"] = {"Hammersmith", ["via"] = "King's Cross St Pancras"}
				},
				["section 4"] = {
					["title"] = "",
					["left terminus"] = {"Edgware Road", ["via"] = "Victoria"},
					["right terminus"] = {"Hammersmith", ["via"] = "Tower Hill"}
				},
				["section 5"] = {
					["title"] = "",
					["left terminus"] = "Edgware Road",
					["right terminus"] = {"Hammersmith", ["via"] = "Tower Hill"}
				},
				["section 6"] = {
					["title"] = "",
					["left terminus"] = {"Hammersmith", ["via"] = "Tower Hill"},
					["right terminus"] = "Edgware Road"
				}
			}
		},
		["Chelsea-Hackney"] = {
			["color"] = "8cc63e"
		},
		["District"] = {
			["color"] = "007a33",
			["icon"] = "[[File:District line roundel (no text).svg|18px|link=District line|alt=District line]]",
			["left terminus"] = {"Wimbledon", "Richmond", "Ealing Broadway"},
			["right terminus"] = {"Upminster", "High Street Kensington", "Edgware Road"},
			["types"] = {
				["Deep"] = {	--Abandoned plan
					["title"] = "Deep-level route\n(1898–1908)",
					["left terminus"] = {"Wimbledon", "Richmond", "Ealing Broadway", "Hounslow West"},
					["right terminus"] = "Mansion House"
				},
				["Ealing Broadway"] = {
					["title"] = "",
					["left terminus"] = "Ealing Broadway",
					["right terminus"] = {"Upminster", "High Street Kensington"}
				},
				["Edgware"] = {
					["title"] = "",
					["left terminus"] = "Wimbledon",
					["right terminus"] = "Edgware Road"
				},
				["Richmond"] = {
					["title"] = "",
					["left terminus"] = "Richmond",
					["right terminus"] = "Upminster"
				},
				["Upminster"] = {
					["title"] = "",
					["right terminus"] = "Upminster"
				},
				["Uxbridge"] = {
					["title"] = "(1910–1933)",
					["left terminus"] = "Uxbridge",
					["right terminus"] = "Upminster"
				},
				["West"] = {
					["title"] = "",
					["left terminus"] = {"Ealing Broadway", "Richmond"},
					["right terminus"] = {"Upminster", "High Street Kensington"}
				},
				["Wimbledon"] = {
					["title"] = "",
					["left terminus"] = "Wimbledon",
					["right terminus"] = {"Edgware Road", "Upminster"}
				}
			}
		},
		["East London"] = {
			["color"] = "ffa300",
			["title"] = "[[East London line#London Underground era|East London line]]",
			["left terminus"] = "Shoreditch",
			["right terminus"] = {"New Cross", "New Cross Gate"}
		},
		["Fleet"] = {
			["color"] = "414b56"
		},
		["Great Northern & Strand"] = {
			["title"] = "[[Great Northern, Piccadilly and Brompton Railway|Great Northern & Strand]]",
			["color"] = "10069f",
			["left terminus"] = "Strand",
			["right terminus"] = "Wood Green"
		},
		["Hammersmith & City"] = {
			["color"] = "e89cae",
			["text color"] = "0613AA",
			["icon"] = "[[File:H&c line roundel (no text).svg|18px|link=Hammersmith & City line|alt=Hammersmith & City line]]",
			["left terminus"] = "Hammersmith",
			["right terminus"] = "Barking"
		},
		["Jubilee"] = {
			["color"] = "7c878e",
			["icon"] = "[[File:Jubilee line roundel (no text).svg|18px|link=Jubilee line|alt=Jubilee line]]",
			["left terminus"] = "Stanmore",
			["right terminus"] = "Stratford",
			["types"] = {
				["phase 2"] = {
					["title"] = "Phase 2 (never constructed)",
					["right terminus"] = {"New Cross Gate", "Lewisham"}
				},
				["phase 3"] = {
					["title"] = "Phase 3 (1980) (never constructed)",
					["right terminus"] = {"Woolwich Arsenal", "Beckton"}
				}
			}
		},
		["Metropolitan"] = {
			["color"] = "840b55",
			["icon"] = "[[File:Metropolitan line roundel (no text).svg|18px|link=Metropolitan line|alt=Metropolitan line]]",
			["left terminus"] = {"Uxbridge", "Amersham", "Chesham", "Watford"},
			["right terminus"] = {"Baker Street", "Aldgate"},
			["types"] = {
				["1868–1939"] = {
					["title"] = "(1868–1939)",
					["left terminus"] = {"Uxbridge", "Aylesbury", "Chesham", "Watford"}
				},
				["Stanmore"] = {
					["title"] = "Stanmore branch (1932–1939)",
					["left terminus"] = "Stanmore",
					["right terminus"] = {"Baker Street", "Aldgate"}
				},
				["Two"] = {
					["title"] = "",
					["left terminus"] = {"Amersham", "Chesham"}
				},
				["Three"] = {
					["title"] = "",
					["left terminus"] = {"Amersham", "Chesham", "Watford"}
				},
				["Uxbridge"] = {
					["title"] = "Uxbridge branch",
					["left terminus"] = "Uxbridge"
				}
			}
		},
		["Northern"] = {
			["line title"] = "Northern line",
			["color"] = "000000",
			["icon"] = "[[File:Northern line roundel (no text).svg|18px|link=Northern line|alt=Northern line]]",
			["left terminus"] = {"Edgware", "Mill Hill East", "High Barnet"},
			["right terminus"] = {"Battersea Power Station", "Morden"},
			["types"] = {
				["Charing Cross"] = {
					["title"] = "Charing Cross Branch",
					["right terminus"] = {"Battersea Power Station", "Morden", "Kennington"}
				},
				["Bank"] = {
					["title"] = "Bank Branch",
					["right terminus"] = "Morden"
				},
				["Edgware"] = {
					["title"] = "",
					["left terminus"] = "Edgware",
					["right terminus"] = {"Battersea Power Station", "Morden", "Kennington"}
				},
				["High Barnet"] = {
					["title"] = "High Barnet branch",
					["left terminus"] = {"High Barnet", "Mill Hill East"},
					["right terminus"] = {"Battersea Power Station", "Morden", "Kennington"}
				},
				["Morden"] = {
					["title"] = "",
					["left terminus"] = {"Edgware", "High Barnet", "Mill Hill East"},
					["right terminus"] = "Morden"
				},
				["Northern Heights"] = {
					["title"] = "",
					["left terminus"] = "Bushey Heath",
					["right terminus"] = {"Morden", "Kennington"}
				}
			}
		},
		["Piccadilly"] = {
			["color"] = "10069f",
			["icon"] = "[[File:Piccadilly line roundel (no text).svg|18px|link=Piccadilly line|alt=Piccadilly line]]",
			["left terminus"] = {"Uxbridge", "Rayners Lane", "Heathrow"},
			["right terminus"] = {"Cockfosters", "Arnos Grove"},
			["types"] = {
				["Cockfosters"] = {
					["title"] = "",
					["right terminus"] = "Cockfosters"
				},
				["Heathrow"] = {
					["title"] = "[[Piccadilly line#Heathrow branch|Heathrow branch]]",
					["left terminus"] = "Heathrow"
				},
				["Uxbridge"] = {
					["title"] = "[[Piccadilly line#Uxbridge branch|Uxbridge branch]]",
					["left terminus"] = {"Uxbridge", "Rayners Lane"}
				}
			}
		},
		["Victoria"] = {
			["color"] = "00a3e0",
			["icon"] = "[[File:Victoria line roundel (no text).svg|18px|link=Victoria line|alt=Victoria line]]",
			["left terminus"] = "Brixton",
			["right terminus"] = "Walthamstow Central"
		},
		["Waterloo & City"] = {
			["color"] = "6eceb2",
			["text color"] = "0613AA",
			["icon"] = "[[File:W&c line roundel (no text).svg|18px|link=Waterloo & City line|alt=Waterloo & City line]]",
			["left terminus"] = "Waterloo",
			["right terminus"] = "Bank"
		},
		-- Old railway lines, all out of use and using what would eventually become London Underground stations
		["District Railway"] = {
			["title"] = "[[District Railway]]",
			["note-mid"] = "(1868–1933)",
			["color"] = "007a33",
			["left terminus"] = "West Brompton",
			["right terminus"] = "Mansion House"
		},
		["London and South Western Railway"] = {
			["title"] = "[[London and South Western Railway]]",
			["note-mid"] = "(1869–1916)",
			["color"] = "CC9999",
			["left terminus"] = "Richmond",
			["right terminus"] = "West Brompton"
		},
		["Metropolitan Railway"] = {
			["title"] = "[[Metropolitan Railway]]",
			["note-mid"] = "(1877–1906)",
			["color"] = "810541",
			["left terminus"] = "Richmond",
			["right terminus"] = "Paddington"
		},
		["Great Western Railway"] = {
			["title"] = "[[Great Western Railway]]",
			["note-mid"] = "(1894–1910)",
			["color"] = "8f691e",
			["left terminus"] = "Richmond",
			["right terminus"] = "Paddington"
		},
		["Midland Railway"] = {
			["title"] = "[[Midland Railway]]",
			["note-mid"] = "(1878–1880)",
			["color"] = "DC143C",
			["left terminus"] = "St Pancras",
			["right terminus"] = "Earl's Court"
		},
		-- Colours only for backward compatiblity with LUL colour template
		["Crossrail 2"] = {
			["title"] = "[[Crossrail 2]]",
			["color"] = "e1eb5b",
			["left terminus"] = "?",
			["right terminus"] = "?"
		},
		["London Cable Car"] = {
			["title"] = "[[London Cable Car]]",
			["color"] = "c8102e",
			["left terminus"] = "?",
			["right terminus"] = "?"
		},
		["London River Services"] = {
			["title"] = "[[London River Services]]",
			["color"] = "00a3e0",
			["left terminus"] = "?",
			["right terminus"] = "?"
		}
	},
	["aliases"] = {
		["bakerloo"] = "Bakerloo",
		["brown"] = "Bakerloo",
		["central"] = "Central",
		["red"] = "Central",
		["yellow"] = "Circle",
		["circle"] = "Circle",
		["district"] = "District",
		["green"] = "District",
		["hammersmith"] = "Hammersmith & City",
		["pink"] = "Hammersmith & City",
		["jubilee"] = "Jubilee",
		["grey"] = "Jubilee",
		["magenta"] = "Metropolitan",
		["met"] = "Metropolitan",
		["metropolitan"] = "Metropolitan",
		["northern"] = "Northern",
		["north"] = "Northern",
		["black"] = "Northern",
		["piccadilly"] = "Piccadilly",
		["dark-blue"] = "Piccadilly",
		["light-blue"] = "Victoria",
		["victoria"] = "Victoria",
		["waterloo"] = "Waterloo & City",
		["turquoise"] = "Waterloo & City",
		["eal"] = "London Cable Car",
		["river"] = "London River Services"
	}
}

return p