Jump to content

Module:Road data/strings/USA/CT

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 23:07, 10 February 2021 (fix). 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"]`.
]==]

-- Connecticut
local CT = {}

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

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

CT.I.link = {	["384"] = "Interstate 384",
				["395"] = "Interstate 395 (Connecticut–Massachusetts)",
				["684"] = "Interstate 684",
				["691"] = "Interstate 691",
				default = {hook = "split",
					split = 100,
					above = "Interstate %route% (Connecticut)",
					below = "Interstate %route% in Connecticut"}}
        
CT["I 1957"].link = CT.I.link
CT["I 1961"].link = CT.I.link
                
CT.US.shield = "US %route% square.svg"
CT.US.link = {	["1"] = "U.S. Route 1 in Connecticut",
				["5"] = "U.S. Route 5 in Connecticut",
				["6"] = "U.S. Route 6 in Connecticut",
            	default = "U.S. Route %route% [dab||(%dab%, Connecticut)|]"}
            
for _,year in ipairs({"1926", "1948", "1961"}) do
	local oldUSmain = "US " .. year
	CT[oldUSmain].name = CT.US.name
	CT[oldUSmain].link = CT.US.link
end         

CT["US-Alt"].link = "U.S. Route %route% Alternate ([dab||%dab%, |]Connecticut)"
CT["US-Bus"].link = "U.S. Route %route% Business ([dab||%dab%, |]Connecticut)"

CT.USBR = {alias = {module = "USA", type = "USBR"}}

CT.CT = {	shield = "Connecticut Highway %route%.svg",
			name = "Route %route%",
			link = "Connecticut Route %route%",
			abbr = "Route&nbsp;%route%"}

CT.Route = CT.CT

for _,year in ipairs({"1926", "1948", "1956"}) do
	local oldCTmain = "CT " .. year
	CT[oldCTmain] = {
		shield = format("CT %%route%% (%s).svg", year),
		name = CT.CT.name,
		link = CT.CT.link,
		abbr = CT.CT.abbr
	}
end
				 
CT.CTTP = {	shield = "", -- Conn Tpk.gif
			name = "Gov. John Davis Lodge Turnpike",
			link = "Connecticut Turnpike",
			abbr = "Conn. Turnpike",
			width = 23}

CT.Merritt = {	shield = "Merritt Pkwy Shield.svg",
				name = "Merritt Parkway",
				link = "Merritt Parkway",
				abbr = "Merritt Parkway",
				bannersuffix = "blue"}

CT.SSR = {shield = "",
			name = "Special Service Road %route%",
			link = {ifexists = true,
					default = "Special Service Road %route% (Connecticut)",
					otherwise = "List of Special Service Roads in Connecticut#SSR0%route%"},
			abbr = "SSR %route%"}
          
CT.SR = {	shield = "",
			name = "State Road %route%",
			link = {ifexists = true,
                  default = CT.CT.link,
                  otherwise = "List of State Roads in Connecticut#SR0%route%"},
			abbr = "SR %route%"}
		 
return CT