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

Content deleted Content added
fix
update module
Line 16:
 
local util = require("Module:Road data/util")
local format = mw.ustring.format
util.addAll(MT, require("Module:Road data/strings/USA"))
 
Line 25 ⟶ 26:
{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"}
}
}
Line 35 ⟶ 36:
 
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"
}
for _,year in ipairs({"1926", "1948", "1961"}) do
MT["US " .. year] = {
shield = format("US %%route%% (%s).svg", year),
MT["US 1948"]. shieldmain = format("US %%route%% Montana 1948(%s).svg", year),
namebase = MT.MTUS.namebase,
MT["US 1926"]. name = MT.US.name,
link = MT.MTUS.link,
abbr = MT.MTUS.abbr,
width = "square} ",
}
end
 
MT["US 19261961"].shieldmain = MT["US %route% Montana 19261961"].svg"shield
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
 
for _,type in ipairs({'US'}) do
MT["US-Alt"].name = MT.US.name .. " Alternate"
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
MT["US-Alt"].link = MT.US.base .. " Alternate" .. suffix
local spec = MT[" aux "][auxType]
MT["US-Bus"].name = MT.US.name .. " Business"
MT["US-Bus"].link = MT.US.base ..auxType] " Business" ..= suffix{
shield = MT.US.shield,
MT["US-Conn"].name = MT.US.name .. " Connector"
shieldmain = MT.US.shieldmain,
MT["US-Conn"].link = MT.US.base .. " Connector" .. suffix
MT["US-Spur"]. name = MT.US.name .. " Spur" .. spec.name,
MT["US-Spur"]. link = MT.US.base .. " Spur" .. suffixspec.name .. MT[" dab "],
MT["US-Truck"].name abbr = MT.US.nameabbr .. " Truck" .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate.svg",
MT["US-Truck"].link = MT.US.base .. " Truck" .. suffix
aux = spec.aux,
MT["US-Temp"].name = MT.US.name .. " Temporary"
width = "expand",
MT["US-Temp"].link = MT.US.base .. " Temporary" .. suffix
}
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 = "",
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 1948"] = {shield = MT.MT.shield,
MT["MT 1948"] = { shield = "",
name = MT.MT.name .. " Business",
MT["US 1948"]. name = MT.USMT.name,
link = "Montana Highway %route% Business[dab|| (%dab%)|]",
abbrlink = "MT %route% Bus."MT.link,
abbr = MT.MT.abbr,
banner = "Business plate.svg",
width = "expand"}square
}
 
MT["MT-Bus"] = {
MT.S = {shield = "MT-sec-%route%.svg",
shield = MT.MT.shield,
name = "Secondary Highway %route%",
MT["US-Alt"]. name = MT.USMT.name .. " AlternateBusiness",
link = {ifexists = true,
defaultlink = "Montana Secondary Highway %route% Business[dab|| (%dab%)|]",
abbr = "MT %route% Bus.",
otherwise = "List of secondary highways in Montana#Sec0%route%"},
abbrbanner = "S-%route%Business plate.svg"},
width = "expand"
}
 
MT.S = {
MT.S = { shield = "MT-sec-%route%.svg",
name = "Secondary Highway %route%",
link = {
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"]
Line 120 ⟶ 148:
-- 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