Jump to content

Module:Road data/strings/USA/MT

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 16:36, 12 September 2020 (+10A). 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"]`.
]==]

-- Montana
local MT = {}

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

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

MT[" common "] = {
	browse = {
		{link = "Montana Highway System", bold = true},
		{
			noprint = true,
			{link = "List of Interstate Highways in Montana", name = "Interstate"},
			{link = "List of U.S. Highways in Montana", name = "U.S."},
			{link = "List of state highways in Montana", name = "State"},
			{link = "List of secondary highways in Montana", name = "Secondary"}
		}
	}
}

MT.I.maint = maint
MT.I.link = {["115"] = "Interstate 115",
             ["315"] = "Interstate 15 Business (Great Falls, Montana)",
             default = {hook = "split",
                        split = 100,
                        above = "Interstate %route% (Montana)",
                        below = "Interstate %route% in Montana"}}
                           
MT["I 1957"].link = MT.I.link
MT["I 1961"].link = MT.I.link           

MT.US.maint = maint
MT.US.name = "U.S. Highway %route%"
MT.US.link = {["10A"] = "U.S. Route 10A ([dab||%dab%–|]Montana)",
			  ["310"] = "U.S. Route 310",
        	  ["312"] = "U.S. Route 312",
              default = "U.S. Route %route% in Montana"}

for _,year in ipairs({"1926", "1948", "1961"}) do
	local oldUSmain = "US " .. year
	MT[oldUSmain].name = MT.US.name
	MT[oldUSmain].link = MT.US.link
end

MT["US-Temp"] = {shield = MT.US.shield,
                link = "U.S. Route %route% Temporary ([dab||%dab%, |]Montana)",
                abbr = "US&nbsp;%route% Temp.",
                banner = "Temp plate.svg",
                width = "expand"}

MT.MT = {shield = "MT-%route%.svg",
         link = "Montana Highway %route%[dab|| (%dab%)|]",
         abbr = "MT&nbsp;%route%",
         width = "expand"}
         
MT["MT 1926"] = {shield = "",
				 link = MT.MT.link,
				 abbr = MT.MT.abbr,
				 width = square}
				 
MT["MT 1948"] = {shield = "",
				 link = MT.MT.link,
				 abbr = MT.MT.abbr,
				 width = square}				 

MT["MT-Bus"] = {shield = MT.MT.shield,
                link = "Montana Highway %route% Business[dab|| (%dab%)|]",
                abbr = "MT&nbsp;%route% Bus.",
                banner = "Business plate.svg",
                width = "expand"}

MT.S = {shield = "MT-sec-%route%.svg",
          link = {ifexists = true,
                   default = "Montana Secondary Highway %route%",
                   otherwise = "List of state highways in Montana#Sec0%route%"},
          abbr = "S-%route%"}

MT.Sec = MT.S

MT["S 1945"] = {shield = "MT-sec-%route% (1945).svg",
          link = MT.S.link,
          abbr = MT.S.abbr}

MT["Sec 1945"] = MT["S 1945"]

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

return MT