Module:Road data/strings/USA/PA

MyWikiBiz, Author Your Legacy — Monday November 25, 2024
Jump to navigationJump to search

Documentation for this module may be created at Module:Road data/strings/USA/PA/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"]`.
]==]

-- Pennsylvania
local PA = {}

local format = mw.ustring.format
local util = require("Module:Road data/util")
util.addAll(PA, require("Module:Road data/strings/USA"))

local suffix = " ([dab||%dab%, |]Pennsylvania)"
local maint = "[[Pennsylvania Department of Transportation|PennDOT]]"

PA.I.link = "Interstate %route% (Pennsylvania)"
 
PA.Future.link = PA.I.link
PA["I-Future"] = PA.Future

PA["I-Toll"].link = PA.I.link

PA["I 1957"].link = "Interstate %route% (Pennsylvania)"

PA.BL.link = "Interstate %route% Business ([dab||%dab%, |]Pennsylvania)"

PA.US.link = "U.S. Route %route% in Pennsylvania"

PA["US 1926"].shieldmain = "US %route% Pennsylvania 1926.svg"
PA["US 1926"].link = PA.US.link
PA["US 1948"].shieldmain = "US %route% Pennsylvania 1948.svg"
PA["US 1948"].link = PA.US.link
PA["US 1961"].shield = "US %route% (1961 cutout).svg"
PA["US 1961"].shieldmain = "US %route% (1961 cutout).svg"
PA["US 1961"].link = PA.US.link

PA["US-Alt"].link = PA.US.base .. " Alternate" .. suffix
PA["US-Bus"].link = PA.US.base .. " Business" .. suffix
PA["US-Byp"].link = PA.US.base .. " Bypass" .. suffix
PA["US-Truck"].link = PA.US.base .. " Truck" .. suffix
	
PA["US-Truck-Alt"] = {
	shield = PA.US.shield,
	name = PA["US-Alt"].name .. " Truck",
	link = "U.S. Route %route% Alternate Truck ([dab||%dab%, |]Pennsylvania)",
	abbr = "US&nbsp;%route% Alt. Truck",
	banner = "Alternate truck plate.svg",
	width = "expand"
}
PA["US-Alt-Truck"] = PA["US-Truck-Alt"]
	
PA["US-Bus-Truck-Alt"] = {
	shield = PA.US.shield,
	name = PA["US-Bus"].name .. " Alternate Truck",
	link = "U.S. Route %route% Business Alternate Truck ([dab||%dab%, |]Pennsylvania)",
	abbr = "US&nbsp;%route% Bus. Alt. Truck",
	banner = "Business alternate plate.svg", -- Temporary
	width = "expand"
}

    
PA["US 1926-Byp"] = {
	shield = PA["US 1926"].shield,
	shieldmain = PA["US 1926"].shieldmain,
	name = PA["US-Byp"].name,
	link = PA["US-Byp"].link,
	abbr = PA["US-Byp"].abbr,
	banner = "By-pass plate 1927.svg",
	width = 'US1926',
	bannersuffix = "1927"
}
    
PA["US 1948-Alt"] = {
	shield = PA["US 1948"].shield,
	shieldmain = PA["US 1948"].shieldmain,
    name = PA["US-Alt"].name,
    link = PA["US-Alt"].link,
    abbr = PA["US-Alt"].abbr,
    banner = "Alternate plate 1948.svg",
    width = 'US1926',
	bannersuffix = "1948"
}

PA["US 1948-Bus"] = {
	shield = PA["US 1948"].shield,
	shieldmain = PA["US 1948"].shieldmain,
    name = PA["US-Bus"].name,
    link = PA["US-Bus"].link,
    abbr = PA["US-Bus"].abbr,
    banner = "Alternate plate 1948.svg",
    width = 'US1926',
	bannersuffix = "1948"
}
   
PA["US 1948-Byp"] = {
	shield = PA["US 1948"].shield,
	shieldmain = PA["US 1948"].shieldmain,
    name = PA["US-Byp"].name,
    link = PA["US-Byp"].link,
    abbr = PA["US-Byp"].abbr,
    banner = "By-pass plate 1948.svg",
    width = 'US1926',
    bannersuffix = "1948"
}
    
PA["US 1948-Truck"] = {
	shield = PA["US 1948"].shield,
	shieldmain = PA["US 1948"].shieldmain,
    name = PA["US-Truck"].name,
    link = PA["US-Truck"].link,
    abbr = PA["US-Truck"].abbr,
    banner = PA["US-Truck"].banner,
    width = 'US1926',
    bannersuffix = "1948"
}
    
PA["US 1961-Alt"] = {
	shield = PA["US 1961"].shield,
	shieldmain = PA["US 1961"].shieldmain,
    name = PA["US-Alt"].name,
    link = PA["US-Alt"].link,
    abbr = PA["US-Alt"].abbr,
    banner = "Alternate plate 1948.svg",
    bannersuffix = "1948"
}
    
PA["US 1961-Byp"] = {
	shield = PA["US 1961"].shield,
	shieldmain = PA["US 1961"].shieldmain,
    name = PA["US-Byp"].name,
    link = PA["US-Byp"].link,
    abbr = PA["US-Byp"].abbr,
    banner = "By-pass plate 1948.svg",
    bannersuffix = "1948"
}
	  

PA.SR = {
	base = "Pennsylvania Route %route%",
	shield = "PA-%route%.svg",
	shieldmain = {
		["179"] = {"PA-%route%.svg", "Ellipse sign %route%.svg"},
		["491"] = {"PA-%route%.svg", "Ellipse sign %route%.svg"},
		default = "PA-%route%.svg"
	},
    name = {
		["179"] = "Route %route%",
		["491"] = "Route %route%",
		default = "Pennsylvania Route %route%"
	},
	link = "Pennsylvania Route %route% [dab||(%dab%)|]",
	abbr = "PA&nbsp;%route%",
	width = "expand"
}

PA.PA = PA.SR



for _,year in ipairs({"1926", "1948", "1960", "1962"}) do
	PA["SR " .. year] = {
		shield = format("PA-%%route%% (%s).svg", year),
		shieldmain = format("PA-%%route%% (%s).svg", year),
		name = PA.SR.name.default,
		link = PA.SR.link,
		abbr = PA.SR.abbr,
		width = "expand",
		bannersuffix = "1948"
	}
end

PA["PA 1962"] = PA["SR 1962"]
PA["PA 1960"] = PA["SR 1960"]
PA["SR 1948"].width = 21
PA["PA 1948"] = PA["SR 1948"]
PA["SR 1926"].width = 21
PA["SR 1926"].bannersuffix = "1927"
PA["PA 1926"] = PA["SR 1926"]

for _,type in ipairs({'SR', 'SR 1926', 'SR 1948', 'SR 1960', 'SR 1962'}) do
	for _,auxType in ipairs({"Alt", "Bus", "Byp", "Truck"}) do
		local spec = PA[" aux "][auxType]
		PA[type .. "-" .. auxType] = {
			shield = PA[type].shield,
			shieldmain = PA[type].shield,
			name = "Pennsylvania Route %route% " .. spec.name,
			link = "Pennsylvania Route %route% " .. spec.name .. PA[" dab "],
			abbr = PA[type].abbr .. " " .. spec.abbrsuffix,
			banner = spec.bannerprefix .. " plate.svg",
			aux = spec.aux,
			width = "expand",
		}
	end
end

PA["PA-Bus"] = PA["SR-Bus"]
PA["PA-Byp"] = PA["SR-Byp"]
PA["PA-Alt"] = PA["SR-Alt"]
PA["PA-Truck"] = PA["SR-Truck"]

PA["SR-Truck-Alt"] = {
	shield = "PA-%route%.svg",
	name = "PA Route %route% Alternate Truck",
	link = "Pennsylvania Route %route% Alternate Truck [dab||(%dab%)|]",
	abbr = "PA&nbsp;%route% Alt. Truck",
	banner = "Alternate truck plate.svg",
	width = "expand"
}

PA["PA-Truck-Alt"] = PA["SR-Truck-Alt"]
PA["SR-Alt-Truck"] = PA["SR-Truck-Alt"]
PA["PA-Alt-Truck"] = PA["SR-Truck-Alt"]

PA.PATP = {
	shield = "Pennsylvania Turnpike logo.svg",
    name = "Pennsylvania Turnpike",
    link = "Pennsylvania Turnpike",
    abbr = "Penna Turnpike",
    bannersuffix = "green"
}

PA.PANE = {
	shield = "Pennsylvania Turnpike logo.svg",
    name = "Pennsylvania Turnpike Northeast Extension",
    link = "Pennsylvania Turnpike Northeast Extension",
    abbr = "Penna Turnpike NE Extension",
    bannersuffix = "green"
}

PA.Toll = {
	shield = "Turnpike-%route%.svg",
	name = PA.SR.name.default,
    link = PA.SR.link,
    abbr = "PA&nbsp;Turnpike&nbsp;%route%",
    width = "expand",
    bannersuffix = "green"
}

PA["Toll2"] = {
	shield = "Turnpike-%route%.svg",
    link = PA.Toll.link,
    abbr = PA.Toll.abbr,
    width = PA.Toll.width,
    banner = "Toll plate yellow.svg",
    bannersuffix = "green"
}

PA["PA-Toll"] = {
	shield = PA.SR.shield,
	name = PA.SR.name.default .. " Toll",
    link = PA.SR.link,
    abbr = PA.SR.abbr .. " Toll",
    width = "expand",
    banner = "Toll plate.svg",
}

PA.QR = {
	shield = "",
	name = "State Route %route%",
	link = "",
	abbr = "SR&nbsp;%route%"
}

PA.Belt = {
	shield = "Pittsburgh PA %route% Belt shield.svg",
    name = "%route% Belt",
    link = "%route% Belt (Pittsburgh)",
    abbr = "%route% Belt"}

PA.SBR = {
	shield = "PA Bike Route %route%.svg",
	name = "BicyclePA Route %route%",
	link = "BicyclePA Route %route%",
	abbr = "BicyclePA Route %route%",
	orientation = "upright"	
}

PA.DE = {alias = {module = "USA/DE", type = "DE"}}
PA.MD = {alias = {module = "USA/MD", type = "MD"}}
PA.NJ = {alias = {module = "USA/NJ", type = "NJ"}}
PA.NJTP = {alias = {module = "USA/NJ", type = "NJTP"}}
PA["I-NJ"] = {alias = {module = "USA/NJ", type = "I"}}

return PA