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

Content deleted Content added
+2
update module
Line 1:
--Montana[==[
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")
MT.I = {shield = "I-%route%.svg",
util.addAll(MT, require("Module:Road data/strings/USA"))
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"}},
abbr = "I-%route%",
width = "expand"}
 
local linksuffix = "Interstate %route% Business ([dab||%dab%, |]Montana)",
MT.BL = {shield = "Business Loop %route%.svg",
local maint = "[[Montana Department of Transportation|MDT]]"
link = "Interstate %route% Business ([dab||%dab%, |]Montana)",
abbr = "I-%route% Bus.",
width = "expand"}
 
MT[" common "] = {
MT.US = {shield = "US %route%.svg",
browse = {
link = {["310"] = "U.S. Route 310",
{link = "Montana Highway System", bold = true},
["312"] = "U.S. Route 312",
{
default ="U.S. Route %route% in Montana"},
noprint = true,
abbr = "US&nbsp;%route%",
{link = "List of Interstate Highways in Montana", name = "Interstate"},
width = "expand"}
{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["US-Bus"] = {shield = MT.US.shield,
MT.I.link = {["115"] = "Interstate 115",
link = "U.S. Route %route% Business ([dab||%dab%, |]Montana)",
["315"] = "Interstate abbr15 =Business "US&nbsp;%route%(Great Falls, Bus.Montana)",
default = banner{hook = "Business plate.svgsplit",
width split = "expand"}100,
["315"] above = "Interstate 15 Business%route% (Great Falls, Montana)",
below = "Interstate split%route% =in 100,Montana"}}
default = {hook = "split",
MT["I 1957"].link = MT.I.link
MT["I 1961"].link = MT.I.link
 
MT.US.maint = maint
MT["US-Byp"] = {shield = MT.US.shield,
linkMT.US.name = "U.S. RouteHighway %route% Bypass ([dab||%dab%, |]Montana)",
MT.US.link = {["310"] = "U.S. Route 310",
abbr = "US&nbsp;%route% Byp.",
banner["312"] = "By-passU.S. plate.svgRoute 312",
widthdefault = "expandU.S. Route %route% in Montana"}
 
for _,year in ipairs({"1926", "1948", "1961"}) do
MT["US-Alt"] = {shield = MT.US.shield,
local oldUSmain = "US " .. year
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Montana)",
MT[oldUSmain].name = MT.US.name
abbr = "US&nbsp;%route% Alt.",
MT[oldUSmain].link = MT.US.link
banner = "Alt plate.svg",
end
width = "expand"}
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",
Line 85 ⟶ 95:
link = "",
abbr = "CR&nbsp;%route%"}
 
MT["US 1926"] = {shield = "US %route% Montana 1926.svg",
link = "U.S. Route %route% in Montana",
abbr = "US&nbsp;%route%",
width = "US1926"}
MT["US 1961"] = {shield = "US %route% (1961).svg",
link = "U.S. Route %route% in Montana",
abbr = "US&nbsp;%route%"}
 
return MT