Documentation for this module may be created at Module:Adjacent stations/MUNI/doc

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"] = "d41144",
	["header text color"] = "ffffff",
	["system color"] = "d41144",
	["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]]",
		["Union Sq/Market St"] = "[[Union Square/Market Street station|Union Sq/​Market St]]",
		["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/Randolph"] = "19th Avenue and Junipero Serra / 19th Avenue and Randolph stations",
		["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/14th Street"] = "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/Day Streets"] = "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/2nd Avenue"] = "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/6th Avenues"] = "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/16th Avenues"] = "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/23rd Avenues"] = "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/Jules"] = "Ocean and Dorado / Ocean and Jules stations",
		["Ocean and Jules/Dorado"] = "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 Cerritos/Westgate"] = "Ocean and Westgate / Ocean and Cerritos stations",
		["Ocean and Westgate/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/Victoria"] = "Ocean and Fairfield / Ocean and Victoria stations",
		["Ocean and Victoria/Fairfield"] = "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/23rd Avenues"] = "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]]",
		["San Jose and Geneva/Niagara"] = "[[Balboa Park station|San Jose and Geneva/Niagara]]",
	},
	["lines"] = {
		["C"] = {
			["title"] = "[[Central Subway (San Francisco)|Central Subway]] shuttle",
			["color"] = "d40843",
			["left terminus"] = "Chinatown",
			["right terminus"] = "4th and Brannan",
		},
		["E"] = {
			["title"] = "[[E Embarcadero]]",
			["color"] = "666666",
			["icon"] = "[[File:E Embarcadero logo.svg|16px|alt=]]",
			["left terminus"] = "Jones and Beach",
			["right terminus"] = "4th and King",
			["note-mid"] = "Suspended",
		},
		["F"] = {
			["title"] = "[[F Market & Wharves]]",
			["color"] = "f0e68c",
			["icon"] = "[[File:F Market & Wharves logo.svg|16px|alt=]]",
			["left terminus"] = "17th Street and Castro",
			["right terminus"] = "Jones and Beach",
		},
		["J"] = {
			["title"] = "[[J Church]]",
			["color"] = "e18813",
			["icon"] = "[[File:J Church logo.svg|16px|alt=]]",
			["left terminus"] = "Balboa Park",
			["right terminus"] = "Embarcadero",
		},
		["K"] = {
			["title"] = "[[K Ingleside]]",
			["color"] = "549dbf",
			["icon"] = "[[File:K Ingleside logo.svg|16px|alt=]]",
			["left terminus"] = "Balboa Park",
			["right terminus"] = "Embarcadero",
		},
		["L"] = {
			["title"] = "[[L Taraval]]",
			["color"] = "932290",
			["icon"] = "[[File:L Taraval logo.svg|16px|alt=]]",
			["left terminus"] = "SF Zoo",
			["right terminus"] = "Embarcadero",
			["note-mid"] = "Suspended",
		},
		["M"] = {
			["title"] = "[[M Ocean View]]",
			["color"] = "008851",
			["icon"] = "[[File:M Ocean View logo.svg|16px|alt=]]",
			["left terminus"] = "San Jose and Geneva",
			["right terminus"] = "Embarcadero",
		},
		["N"] = {
			["title"] = "[[N Judah]]",
			["color"] = "004988",
			["icon"] = "[[File:N Judah logo.svg|16px|alt=]]",
			["left terminus"] = "Ocean Beach",
			["right terminus"] = "4th and King",
		},
		["S"] = {
			["title"] = "[[S Shuttle]]",
			["color"] = "ffcc00",
			["icon"] = "[[File:S Shuttle logo.svg|16px|alt=]]",
			["left terminus"] = "West Portal",
			["right terminus"] = "Embarcadero",
		},
		["T"] = {
			["title"] = "[[T Third Street]]",
			["color"] = "d40843",
			["icon"] = "[[File:T Third Street logo.svg|16px|alt=]]",
			["left terminus"] = "Chinatown",
			["right terminus"] = "Sunnydale",
		},
		["Van Ness BRT"] = {
			["title"] = "[[Van Ness Bus Rapid Transit|Van Ness BRT]]",
			["color"] = "cc0033",
			["icon"] = "[[File:BSicon BUS3.svg|16px|alt=]]",	
			["left terminus"] = "Market",
			["right terminus"] = "Union",
		},
	},
}

return p