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},
{
}
}
Line 35 ⟶ 36:
MT.I.maint = maint
MT.I.link = {
["115"] = "Interstate 115", hook = "split", } } 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)", } for _,year in ipairs({"1926", "1948", "1961"}) do
MT["US " .. year] = {
shield = format("US %%route%% (%s).svg", year),
}
end
MT["US
▲MT["US 1926"].name = MT.US.name
▲MT["US 1948"].shieldmain = "US %route% Montana 1948.svg"
MT["US 1948"].name = MT.US.name▼
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
local spec = MT[" aux "][auxType]
MT["US-
shield = MT.US.shield,
shieldmain = MT.US.shieldmain,
banner = spec.bannerprefix .. " plate.svg",
aux = spec.aux,
width = "expand",
}
end
end
MT.MT = {
shield = "MT-%route%.svg", } MT["MT 1926"] = {
shield = "", } MT["MT 1948"] = {shield = "",▼
▲ name = MT.MT.name,
▲ link = MT.MT.link,
▲ abbr = MT.MT.abbr,
▲ width = square}
MT["MT
abbr = MT.MT.abbr,
}
MT["MT-Bus"] = {
MT.S = {shield = "MT-sec-%route%.svg",▼
shield = MT.MT.shield,
name = "Secondary Highway %route%",▼
link = {ifexists = true,▼
abbr = "MT %route% Bus.",
otherwise = "List of secondary highways in Montana#Sec0%route%"},▼
width = "expand"
}
MT.S = {
link = {
default = "Montana Secondary Highway %route%",
},
abbr = "S-%route%"
}
MT.Sec = MT.S
MT["S 1945"] = {
shield = "MT-sec-%route% (1945).svg", } 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, return MT
|