Jump to content

Module:Road data/strings/USA/MT: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
=Sec2
update module
Line 53: Line 53:
default = "U.S. Route %route% in Montana"}
default = "U.S. Route %route% in Montana"}


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


MT["US-Alt"].name = MT.US.name .. " Alternate"
MT["US-Alt"].link = MT.US.base .. " Alternate" .. suffix
MT["US-Alt"].link = MT.US.base .. " Alternate" .. suffix
MT["US-Bus"].name = MT.US.name .. " Business"
MT["US-Bus"].link = MT.US.base .. " Business" .. suffix
MT["US-Bus"].link = MT.US.base .. " Business" .. suffix
MT["US-Byp"].link = MT.US.base .. " Bypass" .. suffix
MT["US-Conn"].name = MT.US.name .. " Connector"
MT["US-Conn"].link = MT.US.base .. " Connector" .. suffix
MT["US-Spur"].name = MT.US.name .. " Spur"
MT["US-Spur"].link = MT.US.base .. " Spur" .. suffix
MT["US-Spur"].link = MT.US.base .. " Spur" .. suffix
MT["US-Truck"].name = MT.US.name .. " Truck"

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


MT.MT = {shield = "MT-%route%.svg",
MT.MT = {shield = "MT-%route%.svg",
name = "Montana Highway %route%",
link = "Montana Highway %route%[dab|| (%dab%)|]",
link = "Montana Highway %route%[dab|| (%dab%)|]",
abbr = "MT %route%",
abbr = "MT %route%",
Line 76: Line 82:
MT["MT 1926"] = {shield = "",
MT["MT 1926"] = {shield = "",
name = MT.MT.name,
link = MT.MT.link,
link = MT.MT.link,
abbr = MT.MT.abbr,
abbr = MT.MT.abbr,
Line 81: Line 88:
MT["MT 1948"] = {shield = "",
MT["MT 1948"] = {shield = "",
name = MT.MT.name,
link = MT.MT.link,
link = MT.MT.link,
abbr = MT.MT.abbr,
abbr = MT.MT.abbr,
Line 86: Line 94:


MT["MT-Bus"] = {shield = MT.MT.shield,
MT["MT-Bus"] = {shield = MT.MT.shield,
name = MT.MT.name " Business",
link = "Montana Highway %route% Business[dab|| (%dab%)|]",
link = "Montana Highway %route% Business[dab|| (%dab%)|]",
abbr = "MT %route% Bus.",
abbr = "MT %route% Bus.",
Line 92: Line 101:


MT.S = {shield = "MT-sec-%route%.svg",
MT.S = {shield = "MT-sec-%route%.svg",
name = "Secondary Highway %route%",
link = {ifexists = true,
link = {ifexists = true,
default = "Montana Secondary Highway %route%",
default = "Montana Secondary Highway %route%",
Line 100: Line 110:


MT["S 1945"] = {shield = "MT-sec-%route% (1945).svg",
MT["S 1945"] = {shield = "MT-sec-%route% (1945).svg",
name = MT.S.name,
link = MT.S.link,
link = MT.S.link,
abbr = MT.S.abbr}
abbr = MT.S.abbr}
Line 105: Line 116:
MT["Sec 1945"] = MT["S 1945"]
MT["Sec 1945"] = MT["S 1945"]


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


-- For internal linking on List of secondary highways in Montana
-- For internal linking on List of secondary highways in Montana

Revision as of 05:43, 12 February 2021

--[==[
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.BL.link = MT.I.base .. " Business" .. suffix

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

MT["US 1926"].shieldmain = "US %route% Montana 1926.svg"
MT["US 1926"].name = MT.US.name
MT["US 1926"].link = MT.US.link
MT["US 1948"].shieldmain = "US %route% Montana 1948.svg"
MT["US 1948"].name = MT.US.name
MT["US 1948"].link = MT.US.link
MT["US 1961"].name = MT.US.name
MT["US 1961"].link = MT.US.link

MT["US-Alt"].name = MT.US.name .. " Alternate"
MT["US-Alt"].link = MT.US.base .. " Alternate" .. suffix
MT["US-Bus"].name = MT.US.name .. " Business"
MT["US-Bus"].link = MT.US.base .. " Business" .. suffix
MT["US-Conn"].name = MT.US.name .. " Connector"
MT["US-Conn"].link = MT.US.base .. " Connector" .. suffix
MT["US-Spur"].name = MT.US.name .. " Spur"
MT["US-Spur"].link = MT.US.base .. " Spur" .. suffix
MT["US-Truck"].name = MT.US.name .. " Truck"
MT["US-Truck"].link = MT.US.base .. " Truck" .. suffix
MT["US-Temp"].name = MT.US.name .. " Temporary"
MT["US-Temp"].link = MT.US.base .. " Temporary" .. suffix

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

MT["MT-Bus"] = {shield = MT.MT.shield,
				 name = MT.MT.name " Business",
                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",
          name = "Secondary Highway %route%",
          link = {ifexists = true,
                   default = "Montana Secondary Highway %route%",
                   otherwise = "List of secondary highways in Montana#Sec0%route%"},
          abbr = "S-%route%"}

MT.Sec = MT.S

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

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

MT.CR.shield = "Connecticut Highway %route%.svg"

-- For internal linking on List of secondary highways in Montana

MT.Sec2 = {	shield = MT.Sec.shield,
			link = "#Secondary Highway %route%",
			abbr = MT.Sec.abbr
			}

return MT