Difference between revisions of "Module:Adjacent stations/New York City Subway"

From blackwiki
Jump to navigation Jump to search
blackwiki>Szqecs
blackwiki>Cards84664
(Gutting and starting over, Jc86035)
Line 1: Line 1:
-- Template not yet implemented
 
 
 
local NYCS = "%1 (New York City Subway)"
 
local NYCS = "%1 (New York City Subway)"
 
local AA = "%1 (Archer Avenue lines)"
 
local AA = "%1 (Archer Avenue lines)"
local BC = "%1 (BMT Canarsie Line)"
 
local BJ = "%1 (BMT Jamaica Line)"
 
local BN = "%1 (BMT Nassau Street Line)"
 
local DF = "%1 (IND Fulton Street Line)"
 
 
local alltimes = "[[File:NYCS-SSI-alltimes.svg|10px|link=List of New York City Subway services#Time periods|Stops all times]] all times"
 
local allexceptrush = "[[File:NYCS-SSI-allexceptrush.svg|10px|link=List of New York City Subway services#Time periods|Stops all times except rush hours in the peak direction]] all times except rush hours peak direction"
 
local rushpeak = "[[File:NYCS-SSI-rushpeak.svg|10px|link=List of New York City Subway services#Time periods|Stops rush hours in peak direction only]] rush hours peak direction only"
 
  
 
local p = {
 
local p = {
 
["lang"] = "en-US",
 
["lang"] = "en-US",
["system title"] = "[[New York City Subway]]",
+
["system title"] = "[[New York City Subway|NYCS]]",
 
["system icon"] = "[[File:MTA NYC logo.svg|16px|link=New York City Subway|alt=New York City Subway]]",
 
["system icon"] = "[[File:MTA NYC logo.svg|16px|link=New York City Subway|alt=New York City Subway]]",
 
["station format"] = {
 
["station format"] = {
 
NYCS,
 
NYCS,
 
["104th Street"] = BJ,
 
["104th Street"] = BJ,
["111th Street"] = BJ,
 
["121st Street"] = BJ,
 
["75th Street–Elderts Lane"] = BJ,
 
["85th Street–Forest Parkway"] = BJ,
 
["Alabama Avenue"] = BJ,
 
["Atlantic Avenue"] = BC,
 
["Bedford Avenue"] = BC,
 
["Bowery"] = BN,
 
["Broad Street"] = BN,
 
["Broadway Junction"] = {
 
NYCS,
 
["A"] = DF,
 
["C"] = DF,
 
["J"] = BJ,
 
["L"] = BC,
 
["Z"] = BJ,
 
},
 
["Bushwick Avenue–Aberdeen Street"] = BC,
 
["Canal Street"] = BN,
 
["Canarsie–Rockaway Parkway"] = BC,
 
["Chambers Street"] = BN,
 
["Chauncey Street"] = BJ,
 
["Cleveland Street"] = BJ,
 
["Crescent Street"] = BJ,
 
["Cypress Hills"] = BJ,
 
["DeKalb Avenue"] = BC,
 
["East 105th Street"] = BC,
 
["Eighth Avenue"] = BC,
 
["Essex Street"] = BN,
 
["First Avenue"] = BC,
 
["Flushing Avenue"] = BJ,
 
["Fulton Street"] = BN,
 
["Gates Avenue"] = BJ,
 
["Graham Avenue"] = BC,
 
["Grand Street"] = BC,
 
["Halsey Street"] = {
 
["J"] = BJ,
 
["L"] = BC
 
},
 
["Hewes Street"] = BJ,
 
["Jamaica Center–Parsons/Archer"] = AA,
 
["Jefferson Street"] = BC,
 
["Kosciuszko Street"] = BJ,
 
["Livonia Avenue"] = BC,
 
["Lorimer Street"] = {
 
BJ,
 
["L"] = BC
 
},
 
["Marcy Avenue"] = BJ,
 
["Montrose Avenue"] = BC,
 
["Morgan Avenue"] = BC,
 
["Myrtle Avenue"] = BJ,
 
["Myrtle–Wyckoff Avenues"] = BC,
 
["New Lots Avenue"] = BC,
 
["Norwood Avenue"] = BJ,
 
["Sixth Avenue"] = BC,
 
["Sutphin Boulevard–Archer Avenue–JFK Airport"] = AA,
 
["Sutter Avenue"] = BC,
 
["Third Avenue"] = BC,
 
["Union Square"] = BC,
 
["Van Siclen Avenue"] = BJ,
 
["Wilson Avenue"] = BC,
 
["Woodhaven Boulevard"] = BJ,
 
 
},
 
},
 
["lines"] = {
 
["lines"] = {
["_default"] = {
+
["IRT BSA Express"] = {
["title"] = "[[%1 (New York City Subway service)|%1]]"
+
["title"] = "<big>{{NYCS|2}} {{NYCS|3}}</big>",
 +
["color"] = "EE352E",
 +
["left terminus"] = "Eighth Avenue",
 +
["right terminus"] = "Canarsie–Rockaway Parkway",
 
},
 
},
["J"] = {
+
["IRT BSA Local"] = {
["title"] = "[[J/Z (New York City Subway service)|J]]",
+
["title"] = "<big>{{NYCS|1}}</big>",
["note-mid"] = alltimes,
+
["color"] = "EE352E",
["types"] = {
 
["offpeak"] = {
 
["title"] = "",
 
["note-mid"] = allexceptrush
 
},
 
["peak"] = {
 
["title"] = "",
 
["note-mid"] = rushpeak
 
}
 
},
 
["color"] = "996633",
 
 
["left terminus"] = "Broad Street",
 
["left terminus"] = "Broad Street",
["right terminus"] = "Jamaica Center–Parsons/Archer"
+
["right terminus"] = "Jamaica Center–Parsons/Archer",
 
},
 
},
["L"] = {
+
},
["note-mid"] = alltimes,
 
["color"] = "a7a9ac",
 
["left terminus"] = "Eighth Avenue",
 
["right terminus"] = "Canarsie–Rockaway Parkway"
 
},
 
["Z"] = {
 
["title"] = "[[J/Z (New York City Subway service)|Z]]",
 
["note-mid"] = rushpeak,
 
["color"] = "996633",
 
["left terminus"] = "Broad Street",
 
["right terminus"] = "Jamaica Center–Parsons/Archer"
 
}
 
}
 
 
}
 
}
  
 
return p
 
return p

Revision as of 21:11, 20 April 2020

This is a data module for Module:Adjacent stations. It supports services operated by the New York City Subway.

Lines

Template:Rail template doc Template:Rail template doc


local NYCS = "%1 (New York City Subway)"
local AA = "%1 (Archer Avenue lines)"

local p = {
	["lang"] = "en-US",
	["system title"] = "[[New York City Subway|NYCS]]",
	["system icon"] = "[[File:MTA NYC logo.svg|16px|link=New York City Subway|alt=New York City Subway]]",
	["station format"] = {
		NYCS,
		["104th Street"] = BJ,
	},
	["lines"] = {
		["IRT BSA Express"] = {
			["title"] = "<big>{{NYCS|2}} {{NYCS|3}}</big>",
			["color"] = "EE352E",
			["left terminus"] = "Eighth Avenue",
			["right terminus"] = "Canarsie–Rockaway Parkway",
		},
		["IRT BSA Local"] = {
			["title"] = "<big>{{NYCS|1}}</big>",
			["color"] = "EE352E",
			["left terminus"] = "Broad Street",
			["right terminus"] = "Jamaica Center–Parsons/Archer",
		},
	},
}

return p