This is a data module for Module:Adjacent stations. It supports services operated by San Francisco Municipal Railway.

Lines change

LineKeysColorHex colorIcon
E Embarcadero E   666666
F Market & Wharves F   f0e68c
J Church J   faa634
K Ingleside K   569bbe
L Taraval L   92278f
M Ocean View M   008752
N Judah N   00539b
S Shuttle S   ffcc00
T Third Street T   d31245
Van Ness BRT Van Ness BRT   cc0033

local caltrain = "%1 station (Caltrain)"
local metro = "%1 station (Muni Metro)"
local sf = "%1 station (San Francisco)"

local p = {
	["system title"] = "[[San Francisco Municipal Railway|Muni]]",
	["system icon"] = "[[File:BSicon_LOGO_SFmuni.svg|19px|link=San Francisco Municipal Railway]]",
--	NOTE: see [[Template:MUNI infobox header]] before adding ["name format"]
	["header background color"] = "cc0033",
	["header text color"] = "FFFFFF",
	["system color"] = "cc0033",
	["station format"] = {
		"%1 station",
		["20th St"] = "20th Street station (Muni Metro)",
		["20th Street"] = metro,
		["23rd St"] = "23rd Street station (Muni Metro)",
		["23rd Street"] = metro,
		["4th and King"] = "San Francisco 4th and King Street station",
		["Bayshore"] = caltrain,
		["Brannan"] = "The Embarcadero and Brannan station",
		["Brighton and Grafton"] = "K Ingleside#History",
		["Chinatown"] = metro,
		["Church"] = metro,
		["City College"] = "Ocean Avenue/CCSF Pedestrian Bridge station",
		["Civic Center"] = "Civic Center/UN Plaza station",
		["East Bay Terminal"] = "San Francisco Transbay Terminal",
		["Evans"] = metro,
		["Folsom"] = "The Embarcadero and Folsom station",
		["Forest Hill"] = metro,
		["Jackson"] = sf,
		["Mariposa"] = metro,
		["Market"] = "Van Ness station",
		["Montgomery"] = "Montgomery Street station",
		["Ocean Beach"] = "Judah and La Playa station",
		["Phelan Loop"] = "Ocean and Lee station",
		["Powell"] = "Powell Street station",
		["Sacramento"] = sf,
		["San Jose/Glen Park"] = "[[San Jose/Glen Park station|San Jose/​Glen Park]]",
		["SF State"] = "San Francisco State University station",
		["SF Zoo"] = "Wawona and 46th Avenue station",
		["Transbay Terminal"] = "San Francisco Transbay Terminal",
		["UCSF Medical Center"] = "Mariposa station (Muni Metro)",
		["UCSF Parnassus"] = "Irving and Arguello / Irving and 2nd Avenue stations",
		["Union"] = sf,
		["Union Square/Market Street"] = "[[Union Square/Market Street station|Union Square/​Market Street]]",
		["Vallejo"] = sf,
		["Williams"] = metro,
		["Yerba Buena/Moscone"] = "[[Yerba Buena/Moscone station|Yerba Buena/​Moscone]]",
		
		-- Stations with different names in different directions
		["19th Avenue and Junipero Serra"] = "19th Avenue and Junipero Serra / 19th Avenue and Randolph stations",
		["19th Avenue and Randolph north"] = "[[19th Avenue and Junipero Serra / 19th Avenue and Randolph stations|19th Avenue and Randolph]]",
		["19th Avenue and Junipero Serra / 19th Avenue and Randolph"] = "19th Avenue and Junipero Serra / 19th Avenue and Randolph stations",
		
		["Broad and Orizaba"] = "Broad and Orizaba / Orizaba and Broad stations",
		["Orizaba and Broad"] = "Broad and Orizaba / Orizaba and Broad stations",
		["Broad and Orizaba / Orizaba and Broad"] = "Broad and Orizaba / Orizaba and Broad stations",
		
		["Church and Duboce"] = "Duboce and Church station",
				
		["Church and 14th Street"] = "Church station (Muni Metro)",
		["Church and Market"] = "Church station (Muni Metro)",
		["Church and Market / Church and 14th Street"] = "Church station (Muni Metro)",
		
		["Church and 29th Street"] = "Church and 29th Street / Church and Day stations",
		["Church and Day"] = "Church and 29th Street / Church and Day stations",
		["Church and 29th Street / Church and Day"] = "Church and 29th Street / Church and Day stations",
		
		["Irving and 2nd Avenue"] = "Irving and Arguello / Irving and 2nd Avenue stations",
		["Irving and Arguello"] = "Irving and Arguello / Irving and 2nd Avenue stations",
		["Irving and Arguello / Irving and 2nd Avenue"] = "Irving and Arguello / Irving and 2nd Avenue stations",

		["Irving and 5th Avenue"] = "Irving and 5th Avenue / Irving and 6th Avenue stations",
		["Irving and 6th Avenue"] = "Irving and 5th Avenue / Irving and 6th Avenue stations",
		["Irving and 5th Avenue / Irving and 6th Avenue"] = "Irving and 5th Avenue / Irving and 6th Avenue stations",
		
		["Irving and 8th Avenue"] = "Irving and 8th Avenue / 9th Avenue and Irving stations",
		["9th Avenue and Irving"] = "Irving and 8th Avenue / 9th Avenue and Irving stations",
		["Irving and 8th Avenue / 9th Avenue and Irving"] = "Irving and 8th Avenue / 9th Avenue and Irving stations",
		
		["Judah and 15th Avenue"] = "Judah and 15th Avenue / Judah and 16th Avenue stations",
		["Judah and 16th Avenue"] = "Judah and 15th Avenue / Judah and 16th Avenue stations",
		["Judah and 15th Avenue / Judah and 16th Avenue"] = "Judah and 15th Avenue / Judah and 16th Avenue stations",		
		
		["Judah and 22nd Avenue"] = "Judah and 22nd Avenue / Judah and 23rd Avenue stations",
		["Judah and 23rd Avenue"] = "Judah and 22nd Avenue / Judah and 23rd Avenue stations",
		["Judah and 22nd Avenue / Judah and 23rd Avenue"] = "Judah and 22nd Avenue / Judah and 23rd Avenue stations",
		
		["Ocean and Dorado"] = "Ocean and Dorado / Ocean and Jules stations",
		["Ocean and Jules"] = "Ocean and Dorado / Ocean and Jules stations",
		["Ocean and Dorado / Ocean and Jules"] = "Ocean and Dorado / Ocean and Jules stations",

		["Ocean and Westgate"] = "Ocean and Westgate / Ocean and Cerritos stations",
		["Ocean and Cerritos"] = "Ocean and Westgate / Ocean and Cerritos stations",
		["Ocean and Westgate / Ocean and Cerritos"] = "Ocean and Westgate / Ocean and Cerritos stations",
		
		["Ocean and Fairfield"] = "Ocean and Fairfield / Ocean and Victoria stations",
		["Ocean and Victoria"] = "Ocean and Fairfield / Ocean and Victoria stations",
		["Ocean and Fairfield / Ocean and Victoria"] = "Ocean and Fairfield / Ocean and Victoria stations",
		
		["Taraval and 22nd Avenue"] = "Taraval and 22nd Avenue / Taraval and 23rd Avenue stations",
		["Taraval and 23rd Avenue"] = "Taraval and 22nd Avenue / Taraval and 23rd Avenue stations",
		["Taraval and 24th Avenue"] = "Taraval and 22nd Avenue / Taraval and 23rd Avenue stations",
		["Taraval and 22nd Avenue / Taraval and 23rd Avenue"] = "Taraval and 22nd Avenue / Taraval and 23rd Avenue stations",
		
		["Taraval and 46th Avenue"] = "46th Avenue and Taraval / Taraval and 46th Avenue stations",
		["46th Avenue and Taraval"] = "46th Avenue and Taraval / Taraval and 46th Avenue stations",
		["46th Avenue and Taraval / Taraval and 46th Avenue"] = "46th Avenue and Taraval / Taraval and 46th Avenue stations",
		
		-- heritage streetcar stations
		["The Embarcadero and Harrison"] = "The Embarcadero and Folsom station",
		["Ferry Building"] = "San Francisco Ferry Building",
		
		["Market and Main"] = "Embarcadero station",		
		["Market and Drumm"] = "Embarcadero station",
		["Market and Main / Market and Drumm"] = "Embarcadero station",
		
		["Market and 1st Street"] = "Market and 1st Street / Market and Battery stations",
		["Market and Battery"] = "Market and 1st Street / Market and Battery stations",
		["Market and 1st Street / Market and Battery"] = "Market and 1st Street / Market and Battery stations",
		
		["Market and 2nd Street"] = "Montgomery Street station",
		["Market and New Montgomery"] = "Montgomery Street station",
		["Market and 2nd Street / Market and New Montgomery"] = "Montgomery Street station",
		
		["Market and 3rd Street"] = "Market and 3rd Street / Market and Kearny stations",
		["Market and Kearny"] = "Market and 3rd Street / Market and Kearny stations",
		["Market and 3rd Street / Market and Kearny"] = "Market and 3rd Street / Market and Kearny stations",
		
		["Market and 4th Street"] = "Powell Street station",
		["Market and Stockton"] = "Powell Street station",
		["Market and 4th Street / Market and Stockton"] = "Powell Street station",
		["Market and 5th Street"] = "Powell Street station",
		
		["Market and 6th Street"] = "Market and 6th Street / Market and Taylor stations",
		["Market and Taylor"] = "Market and 6th Street / Market and Taylor stations",
		["Market and 6th Street / Market and Taylor"] = "Market and 6th Street / Market and Taylor stations",
		
		["Market and 7th Street"] = "Civic Center/UN Plaza station",
		["Market and 8th Street"] = "Civic Center/UN Plaza station",
		["Market and Hyde"] = "Civic Center/UN Plaza station",		
		["Market and 8th Street / Market and Hyde"] = "Civic Center/UN Plaza station",
		
		["Market and 9th Street"] = "Market and 9th Street / Market and Larkin stations",
		["Market and Larkin"] = "Market and 9th Street / Market and Larkin stations",
		["Market and 9th Street / Market and Larkin"] = "Market and 9th Street / Market and Larkin stations",
		
		["Market and Van Ness"] = "Van Ness station",
		
		["Market and Guerrero"] = "Market and Guerrero / Market and Laguna stations",
		["Market and Laguna"] = "Market and Guerrero / Market and Laguna stations",
		["Market and Guerrero / Market and Laguna"] = "Market and Guerrero / Market and Laguna stations",
		
		["Market and Buchanan"] = "Market and Dolores / Market and Buchanan stations",
		["Market and Dolores"] = "Market and Dolores / Market and Buchanan stations",
		["Market and Dolores / Market and Buchanan"] = "Market and Dolores / Market and Buchanan stations",

        ["Market and Church"] = "Church station (Muni Metro)",
		["17th Street and Castro"] = "Castro station",
		
		-- M Ocean View termini
		["San Jose and Geneva only"] = "[[Balboa Park station|San Jose and Geneva]]",
		["San Jose and Geneva"] = "[[Balboa Park station|San Jose and Geneva (Balboa Park)]]",
		["San Jose and Niagara"] = "[[Balboa Park station|San Jose and Niagara]]",
	},
	["lines"] = {
		["E"] = {
			["title"] = "[[E Embarcadero]]",
			["color"] = "666666",
			["left terminus"] = "Jones and Beach",
			["right terminus"] = "4th and King",
			["note-mid"] = "Suspended",
		},
		["F"] = {
			["title"] = "[[F Market & Wharves]]",
			["color"] = "f0e68c",
			["left terminus"] = "17th Street and Castro",
			["right terminus"] = "Jones and Beach",
		},
		["J"] = {
			["title"] = "[[J Church]]",
			["color"] = "faa634",
			["left terminus"] = "Balboa Park",
			["right terminus"] = "Church and Duboce",
		},
		["K"] = {
			["title"] = "[[K Ingleside]]",
			["color"] = "569bbe",
			["left terminus"] = "Balboa Park",
			["right terminus"] = "Sunnydale",
		},
		["L"] = {
			["title"] = "[[L Taraval]]",
			["color"] = "92278f",
			["left terminus"] = "SF Zoo",
			["right terminus"] = "Embarcadero",
			["note-mid"] = "Suspended",
		},
		["M"] = {
			["title"] = "[[M Ocean View]]",
			["color"] = "008752",
			["left terminus"] = "San Jose and Geneva",
			["right terminus"] = "Embarcadero",
		},
		["N"] = {
			["title"] = "[[N Judah]]",
			["color"] = "00539b",
			["left terminus"] = "Ocean Beach",
			["right terminus"] = "4th and King",
		},
		["S"] = {
			["title"] = "[[S Shuttle]]",
			["color"] = "ffcc00",
			["left terminus"] = "West Portal",
			["right terminus"] = "Embarcadero",
		},
		["T"] = {
			["title"] = "[[T Third Street]]",
			["color"] = "d31245",
			["left terminus"] = "Balboa Park",
			["right terminus"] = "Sunnydale",
		},
		["Van Ness BRT"] = {
			["title"] = "[[Van Ness Bus Rapid Transit|Van Ness BRT]]",
			["color"] = "cc0033",
			["left terminus"] = "Market",
			["right terminus"] = "Union",
		},
	},
}

return p