Jump to content

Module:Road data/strings/USA/ME

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 04:36, 4 July 2021 (add). 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))
]==]

--Maine
local ME = require("Module:Road data/strings/USA")

local util = require("Module:Road data/util")

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

ME[" common "] = {
	browse = {
		{link = "Maine State Highway System", bold = true},
		{
			noprint = true,
			{link = "List of Interstate Highways in Maine", name = "Interstate"},
			{link = "List of U.S. Highways in Maine", name = "U.S."},
			{link = "List of state routes in Maine", name = "State"}
		}
	}
}

ME.I.link = {
	["95"] = "Interstate 95 in Maine",
	["495"] = "[dab||Maine Turnpike|Falmouth Spur]",
	default = "Interstate %route% (Maine)"
	
}
				
ME.I.maint = maint

ME.US.link = ME.US.base .. " [dab||(%dab%, Maine)|in Maine]"
ME.US.maint = maint

ME["US-Bus"].link = "U.S. Route %route% Business ([dab||%dab%, |]Maine)"
ME["US-Bus"].maint = maint

ME["US-Byp"].link = "U.S. Route %route% Bypass ([dab||%dab%, |]Maine)"
ME["US-Byp"].maint = maint

ME.SR = {
	shield = "Maine %route%.svg",
	name = "State Route %route%",
	link = "Maine State Route %route%",
	abbr = "SR&nbsp;%route%",
	maint = maint,
	width = "expand"
}

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

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

ME.ME = ME.SR

ME["SR 1926"] = {
	shield = 'Maine %route% 1926.svg',
	name = ME.SR.name,
	link = ME.SR.link,
	abbr = ME.SR.abbr,
	width = square
	
}
				  
ME["ME 1926"] = ME["SR 1926"]

ME["SR 1951"] = {
	shield = 'Maine %route% 1951.svg',
	name = ME.SR.name,
	link = ME.SR.link,
	abbr = ME.SR.abbr,
	width = square
	
}
				  
ME["ME 1951"] = ME["SR 1951"]

ME.METP = {
	shield = "Maine Turnpike sign.svg",
	name = "Maine Turnpike",
	link = "Maine Turnpike",
	abbr = "Maine Turnpike",
	bannersuffix = "green"
}

ME["SR-Bus"] = {
	shield = ME.SR.shield,
	name = ME.SR.name .. " Business",
	link = ME.SR.link .. " Business",
	abbr = ME.SR.abbr .. " Bus.",
	banner = "Business plate.svg",
	width = "expand",
	aux = "[[Business route]]",
	maint = maint
}

ME["ME-Bus"] = ME["SR-Bus"]

ME.NB = {alias = {module = "CAN/NB", type = "NB"}}
ME.QC = {alias = {module = "CAN/QC", type = "Route"}}
ME.A = {alias = {module = "CAN/QC", type = "A"}}

return ME