Module:Road data/strings/USA/NJ

MyWikiBiz, Author Your Legacy — Friday December 27, 2024
Jump to navigationJump to search

Documentation for this module may be created at Module:Road data/strings/USA/NJ/doc

--[==[
To inspect the content of this data module, use [[Special:ExpandTemplates]]
and enter the following input text:
  {{#invoke:Road data/dump|dump|module=Module:<name-of-this-module>}}

To inspect the content of this data module when editing, enter the following
into the Debug console:
  local util = require("Module:Road data/util")
  print(util.arrayToString(p))
To inspect a particular route type, change `p` above to include the route type,
e.g., `p.I` and `p["US-Hist"]`.
]==]

-- New Jersey
local NJ = require("Module:Road data/strings/USA")

local util = require("Module:Road data/util")
local format = mw.ustring.format

local suffix = " ([dab||%dab%, |]New Jersey)"
local maint = "[[New Jersey Department of Transportation|NJDOT]]"

NJ.I.link = {["87"] = "Interstate 87 (New York)",
        	    ["276"] = "Interstate 276",
                default = {hook = "split",
                           split = 100,
                           above = "Interstate %route% (New Jersey)",
                           below = "Interstate %route% in New Jersey"}}

NJ["I-Toll"].link = NJ.I.link
NJ["I 1957"].link = NJ.I.link        

NJ.US.shield = {["1/9"] = "US 1-9.svg",
            	["1-9"] = "US 1-9.svg",
            	default = "US %route%.svg"}
NJ.US.link = {	["1/9"] = "U.S. Route 1/9",
                ["1-9"] = "U.S. Route 1/9",
                default = "U.S. Route %route% in New Jersey"}
         
for _,year in ipairs({"1926", "1948", "1961"}) do
	NJ["US " .. year] = {
		shield = format("US %%route%% (%s).svg", year),
		shieldmain = format("US %%route%% New Jersey %s.svg", year),
		base = NJ.US.base,
		name = NJ.US.name,
		link = NJ.US.link,
		abbr = NJ.US.abbr,
		width = "square",
	}
end

NJ["US 1961"].shield = "US %route% (1961).svg"
NJ["US 1961"].shieldmain = "US %route% (1961).svg"

for _,type in ipairs({'US', 'US 1926', 'US 1948', 'US 1961'}) do
	for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
		local spec = NJ[" aux "][auxType]
		NJ[type .. "-" .. auxType] = {
			shield = NJ[type].shield,
			shieldmain = NJ[type].shieldmain,
			name = NJ[type].name .. " " .. spec.name,
			link = NJ[type].link.default .. " " .. spec.name .. suffix,
			abbr = NJ[type].abbr .. " " .. spec.abbrsuffix,
			banner = spec.bannerprefix .. " plate.svg",
			aux = spec.aux,
			width = NJ[type].width
		}
	end
end
                 
NJ.SR = {shield = {hook = "between",
                  lower = 20,
                  upper = 100,
                    yes = "Elongated circle %route%.svg",
                     no = "Ellipse sign %route%.svg"},
         name = "Route %route%",
         link = "New Jersey Route %route% [dab||(%dab%)|]",
         abbr = "Route&nbsp;%route%",
         width = "expand"}

NJ.NJ = NJ.SR

NJ.Route = NJ.SR

NJ["SR-Bus"] = {shield = NJ.SR.shield,
				name = NJ.SR.name .. " Business",
                link = "New Jersey Route %route% Business [dab||(%dab%)|]",
                abbr = NJ.SR.abbr .." Bus.",
                banner = "Business plate.svg",
                width = "expand"}

NJ["NJ-Bus"] = NJ["SR-Bus"]

NJ["SR-Alt"] = {shield = NJ.SR.shield,
				name = NJ.SR.name .. " Alternate",
                link = "New Jersey Route %route% Alternate [dab||(%dab%)|]",
                abbr = NJ.SR.abbr .." Alt.",
                banner = "Alt plate.svg",
                width = "expand"}

NJ["NJ-Alt"] = NJ["SR-Alt"]

NJ["SR-Byp"] = {shield = NJ.SR.shield,
				name = NJ.SR.name .. " Bypass",
                link = "New Jersey Route %route% Bypass [dab||(%dab%)|]",
                abbr = NJ.SR.abbr .." Byp.",
                banner = "By-pass plate.svg",
                width = "expand"}

NJ["NJ-Byp"] = NJ["SR-Byp"]

NJ["SR 1956"] = {shield = "NJ %route% (1956).svg",
				 name = NJ.SR.name,
                 link = "New Jersey Route %route% [dab||(%dab%)|]",
                 abbr = NJ.SR.abbr,
        	     bannersuffix = "green"}

NJ["NJ 1956"] = NJ["SR 1956"]

NJ["SR 1926"] = {shield = "NJ %route% (1926).svg",
				name = NJ.SR.name,
                link = NJ.SR.link,
                abbr = NJ.SR.abbr}

NJ["NJ 1926"] = NJ["SR 1926"]

NJ["NJ-old"] = NJ["SR 1926"]

NJ["SR-old"] = NJ["SR 1926"]

NJ["SRS 1926"] = {shield = "NJ S%route% (1926).svg", --workaround because the Route Snn routes throw an error
				name = "Route S%route%",
                link = "New Jersey Route S%route% [dab||(%dab%)|]",
                abbr = "Route&nbsp;S%route%"}

NJ["NJS 1926"] = NJ["SRS 1926"]

NJ.NJTP = {shield = "New Jersey Turnpike Shield.svg",
           name = "New Jersey Turnpike",
           link = "New Jersey Turnpike",
           abbr = "N.J. Turnpike",
           bannersuffix = "green"}
           
NJ.NJTP2 = {shield = "New Jersey Turnpike Shield.svg",
	        name = "New Jersey Turnpike",
	        link = "New Jersey Turnpike",
	        abbr = "N.J. Turnpike",
	        banner = "Toll plate yellow.svg",
	        bannersuffix = "green"}
	            
NJ.NBEX = {shield = "New Jersey Turnpike Shield.svg",
			name = "Newark Bay Extension",
			link = "Interstate 78 in New Jersey",
			abbr = "Newark Bay Extension",
        	bannersuffix = "green"}
        
NJ.NBEX2 = {shield = "New Jersey Turnpike Shield.svg",
	        name = "Newark Bay Extension",
	        link = "Interstate 78 in New Jersey",
	        abbr = "Newark Bay Extension",
	        banner = "Toll plate yellow.svg",
	        bannersuffix = "green"}

NJ.PAEX = {shield = "New Jersey Turnpike Shield.svg",
			name = "Pearl Harbor Extension",
			link = "Pearl Harbor Memorial Turnpike Extension",
			abbr = "Pearl Harbor Extension",
        	bannersuffix = "green"}
        
NJ.PAEX2 = {shield = "New Jersey Turnpike Shield.svg",
	        name = "Pearl Harbor Extension",
	        link = "Pearl Harbor Memorial Turnpike Extension",
	        abbr = "Pearl Harbor Extension",
	        banner = "Toll plate yellow.svg",
	        bannersuffix = "green"}

NJ.GSP = {shield = "GSPkwy Shield.svg",
          name = "Garden State Parkway",
          link = "Garden State Parkway",
          abbr = "G.S. Parkway",
          bannersuffix = "GSP"}
          
NJ.GSP2 = {shield = "GSPkwy Shield.svg",
	       name = "Garden State Parkway",
	       link = "Garden State Parkway",
	       abbr = "G.S. Parkway",
	       banner = "Toll plate yellow.svg",
	       bannersuffix = "GSP"}

NJ.ACE = {shield = "Atlantic City Expressway.svg",
          name = "Atlantic City Expressway",
          link = "Atlantic City Expressway",
          abbr = "A.C. Expressway",
          bannersuffix = "blue"}
          
NJ.ACE2 = {shield = "Atlantic City Expressway.svg",
	       name = "Atlantic City Expressway",
	       link = "Atlantic City Expressway",
	       abbr = "A.C. Expressway",
	       banner = "Toll plate yellow.svg",
	       bannersuffix = "blue"}

NJ.ACBC = {shield = "Atlantic City Expy Connector.svg",
           name = "Atlantic City–Brigantine Connector",
           link = "Atlantic City–Brigantine Connector",
           abbr = "A.C.–Brigantine Connector",
           bannersuffix = "blue"}

NJ.PIP = {
	shield = "Palisades Interstate Pkwy.svg",
	name = "Palisades Interstate Parkway",
	link = "Palisades Interstate Parkway",
	abbr = "Palisades Parkway",
	bannersuffix = "brown",
	color = "hist"
}

NJ.OD = {shield = "Ocean Drive NJ.svg",
         name = "Ocean Drive",
         link = "Ocean Drive (New Jersey)",
         abbr = "Ocean Drive"}

NJ.CR.shield = "[county|Bergen|Bergen County %route% NJ.svg|CR %route% jct.svg]"
NJ.CR.shieldmain = {
	default = "[county||%county% |]County %route%.svg",
	arg = "county",
	Bergen = "Bergen County %route% NJ.svg"
	}
	
NJ.CR.name = "County Route %route%"
NJ.CR.link = {
	hook = "between",
	lower = 500,
	upper = 600,
	yes = "County Route %route% (New Jersey)",
	no = "County Route %route% (%county% County, New Jersey)"
}
       	         
for _,type in ipairs({'CR'}) do
	for _,auxType in ipairs({"Alt", "Byp", "Spur", "Truck"}) do
		local spec = NJ[" aux "][auxType]
		NJ["CR-" .. auxType] = {
			shield = NJ.CR.shield,
			shieldmain = NJ.CR.shieldmain,
			name = NJ.CR.name .. " " .. spec.name,
			link = NJ.CR.name .. " " .. spec.name ..  " ([county||%county% County, |]New Jersey)",
			abbr = NJ.CR.abbr .. " " .. spec.abbrsuffix,
			banner = spec.bannerprefix .. " plate county.svg",
			aux = spec.aux,
			width = "square",
			bannersuffix = "county"
		}
	end
end       	         

NJ.PA = {alias = {module = "USA/PA", type = "PA"}}
NJ.NY = {alias = {module = "USA/NY", type = "NY"}}

return NJ