Module:Road data/strings/USA/NY

--New York local NY = {}

NY.I = {shield = "I-%route%.svg", link = "Interstate %route% (New York)", abbr = "I-%route%", width = "expand"}

NY["I-Future"] = {shield = "I-%route% (Future).svg", link = NY.I.link, abbr = "Future I-%route%", width = "expand"} NY.Future=NY["I-Future"]

NY["I 1957"] = {shield = "I-%route% (NY 1957).svg", link = NY.I.link, abbr = NY.I.abbr} NY.BL = {shield = "Business Loop %route%.svg", link = "Interstate %route% Business ([dab||%dab%, |]New York)", abbr = "I-%route% Bus.", width = "expand"}

NY.US = { shield = { ["1-9"] = "US 1-9.svg", ["9W"] = "US 9W (NY).svg", default = { hook = "splitlen", split = 3, above = "US %route% (NY).svg", below = "US %route%.svg"} },   link = "U.S. Route %route% in New York", abbr = "US %route%", width = "expand" }

NY["US 1926"] = {shield = "US %route% New York 1926.svg", link = NY.US.link, abbr = NY.US.abbr}

NY["US 1948"] = {shield = "US %route% (1948).svg", link = NY.US.link, abbr = NY.US.abbr} NY["US 1961"] = {shield = "US %route% (1961).svg", link = NY.US.link, abbr = NY.US.abbr}

NY["US-Bus"] = {shield = NY.US.shield, link = "U.S. Route %route% Business ([dab||%dab%, |]New York)", abbr = "US %route% Bus.", banner = "Business plate.svg", width = "expand"} NY["US-Alt"] = {shield = NY.US.shield, link = "U.S. Route %route% Alternate ([dab||%dab%, |]New York)", abbr = "US %route% Alt.", banner = "Alternate plate.svg", width = "expand"}

NY["US-Truck"] = {shield = NY.US.shield, link = "U.S. Route %route% Truck ([dab||%dab%, |]New York)", abbr = "US %route% Truck", banner = "Truck plate.svg", width = "expand"}

NY.NY = {shield = "NY-%route%.svg", link = "New York State Route %route% [dab||(%dab%)|]", abbr = "NY %route%", width = "expand"}

NY.SR = NY.NY

NY.Ref = {shield = "", 			--Reference routes link = NY.NY.link, abbr = NY.NY.abbr}

NY["NY 1927"] = {shield = "NY-%route% (1927).svg", link = NY.NY.link, abbr = NY.NY.abbr}

NY["NY 1948"] = {shield = "NY-%route% (1948).svg", link = NY.NY.link, abbr = NY.NY.abbr} NY["NY 1955"] = {shield = "NY-%route% (1955).svg", link = NY.NY.link, abbr = NY.NY.abbr}

NY["NY 1960"] = {shield = "NY-%route% (1960).svg", link = NY.NY.link, abbr = NY.NY.abbr} NY["NY-Alt"] = {shield = NY.NY.shield, link = "New York State Route %route% Alternate [dab||(%dab%)|]", abbr = "NY %route% Alt.", banner = "Alt plate.svg", width = "expand"}

NY["NY-Bus"] = {shield = NY.NY.shield, link = "New York State Route %route% Business [dab||(%dab%)|]", abbr = "NY %route% Bus.", banner = "Business plate.svg", width = "expand"}

NY["NY-Byp"] = {shield = NY.NY.shield, link = "New York State Route %route% Bypass [dab||(%dab%)|]", abbr = "NY %route% Byp.", banner = "Bypass plate.svg", width = "expand"} NY["NY-Spur"] = {shield = NY.NY.shield, link = "New York State Route %route% Spur [dab||(%dab%)|]", abbr = "NY %route% Spur", banner = "Spur plate.svg", width = "expand"} NY["NY-Truck"] = {shield = NY.NY.shield, link = "New York State Route %route% Truck [dab||(%dab%)|]", abbr = "NY %route% Truck", banner = "Truck plate.svg", width = "expand"}

NY.NYST = {shield = "NYS Thruway Sign.svg", link = "New York State Thruway", abbr = "New York Thruway", bannersuffix = "blue"}

NY.NYBC = {shield = "NYS Thruway Sign.svg", link = "Berkshire Connector", abbr = "Berkshire Connector", bannersuffix = "blue"}

NY.CR = {shield = {ifexists  = true, arg       = "county", default   = "CR %route% jct.svg", Albany		= "CR %route% jct wide.svg", Broome		= {hook = "splitlen", split = 3, below = "CR %route% jct.svg", above = "CR %route% jct wide.svg"}, Cayuga		= "", Columbia		= {["21C"] = "CR 21C jct wide.svg", default = "CR %route% jct.svg"}, Clinton		= "CR %route% jct.svg", Cortland		= "", Dutchess		= {hook = "splitlen", split = 3, below = "CR %route% jct.svg", above = "CR %route% jct wide.svg"}, Erie			= "Erie County %route% NY.svg", Franklin		= "Franklin County %route% NY.svg", Fulton		= "CR %route% jct wide.svg", Genesee		= "", Herkimer		= "", Monroe		= "", Montgomery	= "", Nassau		= "", Niagara		= "", Onandaga		= {["57"] = "CR 57 jct.svg", default = ""}, Oneida		= {["840"] = "CR 840 jct wide.svg", default = "CR %route% jct.svg"}, Ontario		= "", Orleans		= "", Schenectady	= "", Seneca		= "", Steuben		= {["333"] = "CR 333 jct wide.svg", default = "CR %route% jct.svg"}, Wayne		= "", Westcheser	= "", Wyoming		= "", Yates		= ""}, link = "County Route %route% (%county% County, New York)", --ifexist abbr = "CR %route%", width = {ifexists  = true, arg		= "county", default 	= "square", Albany	= "wide", Columbia	= {["21C"] = "wide", default = "square"}, Erie		= "16", Fulton	= "wide", Oneida	= 	{["840"] = "wide", default = "square"}, Steuben	= 	{["333"] = "wide", default = "square"}}, bannersuffix = { arg = "county", Franklin = "green" } } NY["CR-Truck"] = {shield = NY.CR.shield, link = "County Route %route% Truck ([county||%county% County, |]New York)", abbr = NY.CR.abbr .." Truck", banner = "Truck plate county.svg"} NY.ILR = {shield = "Rochester Inner Loop.svg", link = "Inner Loop (Rochester)", abbr = "Inner Loop", width = "wide"}

NY.LSEX = {shield = "LaSalle Expy.svg", link = "LaSalle Expressway", abbr = "LaSalle Expressway", bannersuffix = "green"}

NY.STE = {shield = "Southern Tier Expressway.svg", link = "Southern Tier Expressway", abbr = "Southern Tier Expressway", bannersuffix = "green"}

local pkwys = { -- link-suffix => parkways -- Do not list "Parkway" link-suffix. [""] = {		["Saw Mill"] = "Saw Mill River Parkway", ["Robert Moses Cswy"] = "Robert Moses Causeway" },	Drive = { ["FDR"] = "Franklin D. Roosevelt East River", "Harlem River", "Seven Lakes" },	["Interstate Parkway"] = { "Palisades" },	Road = { "Arden Valley", "Tiorati Brook" },	["State Parkway"] = { "Bear Mountain", "Caumsett", "Lake Ontario", "Robert Moses", "Taconic", } } local pkwyShields = {default = "%route% Pkwy Shield.svg", Belt = "%route% Pkwy Shield free.svg", ["Bronx River"] = "%route% Pkwy Shield free.svg", ["Cross Island"] = "%route% Pkwy Shield free.svg", ["FDR"] = "%route% Drive Shield free.svg", ["FDR Drive"] = "%route% Shield free.svg", ["Grand Central"] = "%route% Pkwy Shield free.svg", ["Harlem River"] = "%route% Drive Shield free.svg", ["Harlem River Drive"] = "%route% Shield free.svg", ["Henry Hudson"] = "%route% Pkwy Shield free.svg", ["Hutchinson River"] = "%route% Pkwy Shield free.svg", ["Jackie Robinson"] = "%route% Pkwy Shield free.svg", ["Korean War Vets"] = "%route% Pkwy Shield free.svg", Pelham = "%route% Pkwy Shield free.svg", Bay = "", ["Long Mountain"] = ""} local pkwyAbbrs = { -- link-suffix => abbr-suffix ["Interstate Parkway"] = "Parkway" } local pkwyLIPkwys = { -- Parkways in Long Island that do not end with "State Parkway" "Loop", "Ocean", "Robert Moses Cswy", } local pkwyLIStatePkwys = { -- Parkways in Long Island that end with "State Parkway" "Bethpage", "Heckscher", "Meadowbrook", "Northern", "Sagtikos", "Southern", "Sunken Meadow", "Wantagh" } for _,pkwy in ipairs(pkwyLIStatePkwys) do	table.insert(pkwyLIPkwys, pkwy) table.insert(pkwys["State Parkway"], pkwy) end local pkwyPIPPkwys = { -- Parkways maintained by Palisades Interstate Park Commission "Lake Welch", "Palisades" } for _,pkwy in ipairs(pkwys.Road) do	table.insert(pkwyPIPPkwys, pkwy) end NY.Parkway = { shield = pkwyShields, link = {default = "%route% Parkway [dab||(%dab%)|]"}, abbr = {default = "%route% Parkway"}, width = {default = 'square', ["Bear Mountain"] = 'wide', ["Cross County"] = 'wide', ["Saw Mill"] = 'wide', ["Sprain Brook"] = 'wide', ["Taconic State"] = 'wide' },	bannersuffix = { default = "green", ["Garden State"] = "GSP", ["Grand Central"] = "", } } for suffix,list in pairs(pkwys) do	local abbrSuffix = pkwyAbbrs[suffix] or suffix for abbr,pkwy in pairs(list) do		if type(abbr) == "number" then abbr = pkwy end if suffix == "" then NY.Parkway.link[abbr] = pkwy NY.Parkway.abbr[abbr] = pkwy else NY.Parkway.link[abbr] = pkwy .. " " .. suffix if abbrSuffix ~= "Parkway" then NY.Parkway.abbr[abbr] = abbr .. " " .. abbrSuffix end end end end for _,pkwy in ipairs(pkwyLIPkwys) do	NY.Parkway.bannersuffix[pkwy] = "" end for _,pkwy in ipairs(pkwyPIPPkwys) do	NY.Parkway.bannersuffix[pkwy] = "brown" end

NY.Tour = {shield = {default = "Great Lakes Circle Tour.svg", LSCT = "Lake Superior Circle Tour.svg", LMCT = "Lake Michigan Circle Tour.svg", LHCT = "Lake Huron Circle Tour.svg", LECT = "Lake Erie Circle Tour.svg", ["LSCT-Spur"] = "Lake Superior Circle Tour brown.svg", ["LMCT-Spur"] = "Lake Michigan Circle Tour brown.svg", ["LHCT-Spur"] = "Lake Huron Circle Tour brown.svg"}, link = {default = "Great Lakes Circle Tour", LSCT = "Lake Superior Circle Tour", LMCT = "Lake Michigan Circle Tour", LHCT = "Lake Huron Circle Tour", LECT = "Lake Erie Circle Tour", ["LSCT-Spur"] = "Lake Superior Circle Tour", ["LMCT-Spur"] = "Lake Michigan Circle Tour", ["LHCT-Spur"] = "Lake Huron Circle Tour"}, abbr = {default = "GLCT", LSCT = "LSCT", LMCT = "LMCT", LHCT = "LHCT", LECT = "LECT", ["LSCT-Spur"] = "LSCT Spur", ["LMCT-Spur"] = "LMCT Spur", ["LHCT-Spur"] = "LHCT Spur"}, bannersuffix = {default = "green", ["LSCT-Spur"] = "brown", ["LMCT-Spur"] = "brown", ["LHCT-Spur"] = "brown"} } NY.GSP = {alias = {module = "USA/NJ", type = "GSP"}} NY.CT = {alias = {module = "USA/CT", type = "CT"}} NY.MATP = {alias = {module = "USA/MA", type = "MATP"}} NY.NJ = {alias = {module = "USA/NJ", type = "NJ"}} NY.PA = {alias = {module = "USA/PA", type = "PA"}} NY.VT = {alias = {module = "USA/VT", type = "VT"}} NY["I-VT"] = {alias = {module = "USA/VT", type = "I"}} NY["QC-A"] = {alias = {module = "CAN/QC", type = "A"}} NY.ON = {alias = {module = "CAN/ON", type = "ON"}} NY.road = {alias = {module = "USA", type = "road"}}

return NY