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:51, 14 July 2020 (fix USH links). 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"]`.
]==]

-- Iowa
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"] = {shield = CT.US.shield,
                link = "U.S. Route %route% Alternate ([dab||%dab%, |]Connecticut)",
                abbr = "US %route% Alt.",
                banner = "Alt plate.svg"}

CT["US-Bus"] = {shield = CT.US.shield,
                link = "U.S. Route %route% Business ([dab||%dab%, |]Connecticut)",
                abbr = "US %route% Bus.",
                banner = "Business plate.svg"}

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

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

CT.Route = CT.CT

CT["CT 1926"] = {shield = "CT %route% (1926).svg",
				 link = CT.CT.link,
				 abbr = CT.CT.abbr,
				 width = square}
				 
CT.CTTP = {shield = "", -- Conn Tpk.gif
           link = "Connecticut Turnpike",
           abbr = "Conn. Turnpike",
           width = 23}

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

CT.SSR = {shield = "",
          link = {ifexists = true,
                   default = "Special Service Road %route% (Connecticut)",
                   otherwise = ""},
          abbr = "SSR %route%"}
          
CT.SR = {shield = "",
		 link = {ifexists = true,
                  default = CT.CT.link,
                  otherwise = {hook = "split",
                	split = 600,
                	above = "List of State Roads in Connecticut",
                	below = "List of State Roads in Connecticut#SR0%route%"}},
		 abbr = "SR %route%"}
		 
CT.road = {alias = {module = "USA", type = "road"}}
return CT