Content deleted Content added
+2 |
update module |
||
Line 1:
--
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"))
link = {["115"] = "Interstate 115",▼
["315"] = "Interstate 15 Business (Great Falls, Montana)",▼
default = {hook = "split",▼
split = 100,▼
local maint = "[[Montana Department of Transportation|MDT]]"
▲ link = "Interstate %route% Business ([dab||%dab%, |]Montana)",
MT[" common "] = {
browse = {
link = {["310"] = "U.S. Route 310",▼
{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
["315"] = "Interstate
default =
MT["I 1957"].link = MT.I.link
MT["I 1961"].link = MT.I.link
MT.US.maint = maint
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.MT = {shield = "MT-%route%.svg",
Line 85 ⟶ 95:
link = "",
abbr = "CR %route%"}
return MT
|