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

Content deleted Content added
+10A
add
 
(11 intermediate revisions by the same user not shown)
Line 16:
 
local util = require("Module:Road data/util")
local format = mw.ustring.format
util.addAll(MT, require("Module:Road data/strings/USA"))
 
local suffix = " ([dab||%dab%, |]Montana)"
local maint = "[[Montana Department of Transportation|MDT]]"
 
MT[" common "].I.link = {
["115"] = "Interstate 115",
browse = {
["315"] = "Interstate 15 Business (Great Falls, Montana)",
{link = "Montana Highway System", bold = true},
default = {
{
noprinthook = true"split",
split = 100,
{link = "List of Interstate Highways in Montana", name = "Interstate"},
{linkabove = "ListInterstate of U.S. Highways in%route% (Montana)", name = "U.S."},
{linkbelow = "ListInterstate of state highways%route% in Montana", name = "State"},
{link = "List of secondary highways in Montana", name = "Secondary"}
}
}
}
 
for k, v in pairs(MT) do if k:find ("^I") then
MT.I.maint = maint
v.link = MT.I.link
MT.I.link = {["115"] = "Interstate 115",
end
["315"] = "Interstate 15 Business (Great Falls, Montana)",
end
default = {hook = "split",
 
split = 100,
MT.BL.link = MT.I.base .. " Business" .. suffix
above = "Interstate %route% (Montana)",
 
below = "Interstate %route% in Montana"}}
for k, v in pairs(MT) do if k:find ("^BL") then
MT["I 1957"] v.link = MT.IBL.link
end
MT["I 1961"].link = MT.I.link
end
 
MT.US.maint = maint
MT.US.name = "U.S. Highway %route%"
MT.US.link = {
["10A"] = "U.S. Route 10A10 Alternate ([dab||%dab%–|]Montana)",
["310"] = "U.S. Route 310",
["312"] = "U.S. Route 312",
default = "U.S. Route %route% in Montana"
}
 
for _k,year v in ipairspairs({"1926",MT) do if k:find ("1948",^US %d"1961"}) dothen
local oldUSmainv.name = "MT.US " .. yearname
MT[oldUSmain]v.namelink = MT.US.namelink
end
MT[oldUSmain].link = MT.US.link
end
 
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
MT["US-Temp"] = {shield = MT.US.shield,
local spec = MT[" aux "][auxType]
link = "U.S. Route %route% Temporary ([dab||%dab%, |]Montana)",
for k, v in pairs(MT) do if k:find (auxType) then if k:find ("^US") then
abbr = "US %route% Temp.",
v.name = MT.US.name .. " " .. spec.name
banner = "Temp plate.svg",
v.link = MT.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Montana)"
width = "expand"}
end
end
end
end
 
MT.MT = {
shield = "MT-%route%.svg",
name = "Montana Highway %route%",
link = "Montana Highway %route%[dab|| (%dab%)|]",
abbr = "MT %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}
 
for _,type in ipairs({"MT"}) do
MT["MT-Bus"] = {shield = MT.MT.shield,
for _,year in ipairs({"1926", "1948"}) do
link = "Montana Highway %route% Business[dab|| (%dab%)|]",
MT["MT " .. year] = {
abbr = "MT %route% Bus.",
shield = format("MT-%%route%% (%s).svg", year),
banner = "Business plate.svg",
name = MT.MT.name,
width = "expand"}
link = MT.MT.link,
abbr = MT.MT.abbr,
width = "square"
}
end
end
 
MT["MT-Bus"] = {
MT.S = {shield = "MT-sec-%route%.svg",
shield = MT.MT.shield,
link = {ifexists = true,
name = MT.MT.name .. " Business",
default = "Montana Secondary Highway %route%",
link = "Montana Highway %route% Business[dab|| (%dab%)|]",
otherwise = "List of state highways in Montana#Sec0%route%"},
abbr = "S-MT %route% Bus."},
banner = "Business plate.svg",
aux = MT[" aux "].Bus,
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"]
 
-- add new types above this line if you want it to have the state highway browse and maint
MT.CR = {shield = "Connecticut Highway %route%.svg",
for k, v in pairs(MT) do if k:find ("^%a") then
link = "",
v.maint = "[[Montana Department of Transportation|MDT]]"
abbr = "CR %route%"}
v.browse = "[[Montana Highway System]]"
v.browselinks = {
[1] = "[[List of Interstate Highways in Montana|Interstate]]",
[2] = "[[List of U.S. Highways in Montana|US]]",
[3] = "[[List of state highways in Montana|State]]",
[4] = "[[List of secondary highways in Montana|Secondary]]"
}
end
end
 
MT.CR.shield = "Connecticut Highway %route%.svg"
 
MT.NSB.shieldmain = {"US 212.svg", "MUTCD D6-4.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