Jump to content

Module:Road data/strings/USA/MD

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 21:40, 14 August 2021 (fix MD-Bus). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

--[==[
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"]`.
]==]

-- Maryland
local MD = {}

local util = require("Module:Road data/util")
util.addAll(MD, require("Module:Road data/strings/USA"))

local suffix = " ([dab||%dab%, |]Maryland)"

MD[" aux "].Alt.bannerprefix = "Alt"

MD.I.link = {
	["68"] = "Interstate 68",
	["97"] = "Interstate 97",
	["295"] = "Interstate 295 (Maryland–District of Columbia)",
	["370"] = "Interstate 370",
	["495"] = "Interstate 495 (Capital Beltway)",
	["495X"] = "Cabin John Parkway",
	default = {
		hook = "split",
		split = 100,
		above = "Interstate %route% (Maryland)",
		below = "Interstate %route% in Maryland"
		
	}
	
}

MD["I-Spur"] = {
	shield = MD.I.shield,
	name = MD.I.name .. " Spur",
	link = "Interstate %route% Spur (Maryland)",
	abbr = "I-%route% Spur",
	banner = "Spur plate blue.svg",
	width = "expand"
	
}

MD["I 1957"].link = MD.I.link
MD["I 1961"].link = MD.I.link
MD["I-Toll"].link = MD.I.link
	
MD["I-Express"] = {
	shield = MD.I.shield,
	name = "Interstate %route% Express",
	link = "Interstate %route% Express (Maryland)",
	abbr = MD.I.abbr .. " Express",
	width = "expand",
	banner = "Toll plate yellow.svg",
	bannersuffix = "blue"
	
}

MD.US.link = "U.S. Route %route% in Maryland"

for _,type in ipairs({'US'}) do
	for _,auxType in ipairs({"Alt", "Bus", "Byp", "Scenic", "Truck", "Toll"}) do
		local spec = MD[" aux "][auxType]
		MD["US-" .. auxType] = {
	shield = MD.US.shield,
	shieldmain = MD.US.shield,
	name = MD.US.name .. " " .. spec.name,
	link = MD.US.base .. " " .. spec.name .. suffix,
	abbr = MD.US.abbr .. " " .. spec.abbrsuffix,
	banner = spec.bannerprefix .. " plate.svg",
	aux = spec.aux,
	width = "expand",
		}
	end
end

MD["US-Bus"].shield = "US %route% Business (MD).svg"
MD["US-Bus"].shieldmain = "US %route% Business (MD).svg"
MD["US-Bus"].banner = ""
MD["US-Bus"].bannersuffix = "Vermont"

MD["US 1926"].shieldmain = "US %route% Maryland 1926.svg"
MD["US 1926"].link = MD.US.link

MD["US 1948"].shieldmain = "US %route% Maryland 1948.svg"
MD["US 1948"].link = MD.US.link

MD["US 1961"].link = MD.US.link
	 
MD.SR = {
	base = "Maryland Route %route%",
	shield = "MD Route %route%.svg",
	name = "Maryland Route %route%",
	link = "Maryland Route %route% [dab||(%dab%)|]",
	abbr = "MD %route%",
	width = "expand"
	
}

MD.MD = MD.SR

for _,type in ipairs({'SR', 'MD'}) do
	for _,auxType in ipairs({"Alt", "Byp", "Conn", "Spur", "Truck", "Toll"}) do
		local spec = MD[" aux "][auxType]
		MD[type .. "-" .. auxType] = {
	shield = MD.SR.shield,
	shieldmain = MD.SR.shield,
	name = MD.SR.name .. " " .. spec.name,
	link = MD.SR.base .. " " .. spec.name .. MD[" dab "],
	abbr = MD.SR.abbr .. " " .. spec.abbrsuffix,
	banner = spec.bannerprefix .. " plate.svg",
	aux = spec.aux,
	width = "expand",
		}
	end
end

for _,type in ipairs({'SR', 'MD'}) do
	for _,auxType in ipairs({"Bus"}) do
		local spec = MD[" aux "][auxType]
		MD[type .. "-" .. auxType] = {
	shield = "MD Route %route% Business.svg",
	shieldmain = "MD Route %route% Business.svg",
	name = MD.SR.name .. " " .. spec.name,
	link = MD.SR.base .. " " .. spec.name .. MD[" dab "],
	abbr = MD.SR.abbr .. " " .. spec.abbrsuffix,
	aux = spec.aux,
	bannersuffix = "Vermont",
	width = "expand",
		}
	end
end

MD["SR-Toll"].banner = "Toll plate yellow.svg"

MD.MDJFK = {
	shield = "MD JFK Highway.svg",
	name = "John F. Kennedy Memorial Highway",
	link = "John F. Kennedy Memorial Highway (Maryland)",
	abbr = "JFK Memorial Highway"
	
}

MD.BWP = {
	shield = "",
	name = "Baltimore–Washington Parkway",
	link = "Baltimore–Washington Parkway",
	abbr = "Baltimore–Washington Parkway"
	
}

MD.CBP = {
	shield = "",
	name = "Clara Barton Parkway",
	link = "Clara Barton Parkway",
	abbr = "Clara Barton Parkway"
	
}

MD.CJP = {
	shield = "",
	name = "Cabin John Parkway",
	link = "Cabin John Parkway",
	abbr = "Cabin John Parkway"
	
}

MD.COC = {
	shield = "MD scenic byway.svg",
	name = "Chesapeake and Ohio Canal Scenic Byway",
	link = "Chesapeake and Ohio Canal Scenic Byway",
	abbr = "C&O Canal Scenic Byway",
}

MD.SB = {
	shield = {
		default = "MD scenic byway.svg",
		["1"] = "MUTCD D6-4.svg",
		["5"] = "MUTCD D6-4.svg",
		["11"] = "MUTCD D6-4.svg",
		["16"] = "MUTCD D6-4.svg",
		["17"] = {"MUTCD D6-4.svg", "MD scenic byway.svg"},
		["18"] = "MUTCD D6-4.svg",
	},
	name = {
		arg = "route",
		["1"] = "&#35;1: Historic National Road",
		["2"] = "&#35;2: Mountain Maryland",
		["3"] = "&#35;3: Chesapeake and Ohio Canal",
		["4"] = "&#35;4: Antietam Campaign",
		["5"] = "&#35;5: Journey Through Hallowed Ground",
		["6"] = "&#35;6: Old Main Streets",
		["7"] = "&#35;7: Mason and Dixon",
		["8"] = "&#35;8: Falls Road",
		["9"] = "&#35;9: Horses and Hounds",
		["10"] = "&#35;10: Lower Susquehanna",
		["11"] = "&#35;11: Charles Street",
		["12"] = "&#35;12: National Historic Seaport",
		["13"] = "&#35;13: Star-Spangled Banner",
		["14"] = "&#35;14: Booth's Escape",
		["15"] = "&#35;15: Roots and Tides",
		["16"] = "&#35;16: Religious Freedom",
		["17"] = "&#35;17: Chesapeake Country",
		["18"] = "&#35;18: Harriet Tubman Underground Railroad",
		["19"] = "&#35;19: Cape to Cape"
	},
	link = "List of Maryland Scenic Byways",
	abbr = {
		arg = "route",
		["1"] = "&#35;1: Historic National Road",
		["2"] = "&#35;2: Mountain Maryland",
		["3"] = "&#35;3: Chesapeake and Ohio Canal",
		["4"] = "&#35;4: Antietam Campaign",
		["5"] = "&#35;5: Journey Through Hallowed Ground",
		["6"] = "&#35;6: Old Main Streets",
		["7"] = "&#35;7: Mason and Dixon",
		["8"] = "&#35;8: Falls Road",
		["9"] = "&#35;9: Horses and Hounds",
		["10"] = "&#35;10: Lower Susquehanna",
		["11"] = "&#35;11: Charles Street",
		["12"] = "&#35;12: National Historic Seaport",
		["13"] = "&#35;13: Star-Spangled Banner",
		["14"] = "&#35;14: Booth's Escape",
		["15"] = "&#35;15: Roots and Tides",
		["16"] = "&#35;16: Religious Freedom",
		["17"] = "&#35;17: Chesapeake Country",
		["18"] = "&#35;18: Harriet Tubman Underground Railroad",
		["19"] = "&#35;19: Cape to Cape"
	}
}

MD.PA = {alias = {module = "USA/PA", type = "PA"}}
MD.WV = {alias = {module = "USA/WV", type = "WV"}}
MD.DEMD = {alias = {module = "USA/DE", type = "DEMD"}}

return MD