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

Content deleted Content added
fix
add
 
(2 intermediate revisions by the same user not shown)
Line 20:
 
local suffix = " ([dab||%dab%, |]Montana)"
local maint = "[[Montana Department of Transportation|MDT]]"
 
MT[" common "] = {
browse = {
{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
MT.I.link = {
["115"] = "Interstate 115",
Line 46 ⟶ 31:
}
}
 
for k, v in pairs(MT) do if k:find ("^I") then
MT["I 1957"].link = MT.I.link
MT["I 1961"] v.link = MT.I.link
end
end
 
MT.BL.link = MT.I.base .. " Business" .. suffix
 
for k, v in pairs(MT) do if k:find ("^BL") then
MT.US.maint = maint
v.link = MT.BL.link
end
end
 
MT.US.name = "U.S. Highway %route%"
MT.US.link = {
Line 59 ⟶ 51:
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),
shieldmain = format("US %%route%% (%s).svg", year),
base = MT.US.base,
name = MT.US.name,
link = MT.US.link,
abbr = MT.US.abbr,
width = "square",
}
end
 
for k, v in pairs(MT) do if k:find ("^US %d") then
MT["US 1961"].shieldmain = MT["US 1961"].shield
v.name = MT.US.name
v.link = MT.US.link
end
end
 
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
for _,type in ipairs({'US'}) do
local spec = MT[" aux "][auxType]
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
for k, v in pairs(MT) do if k:find (auxType) then if k:find ("^US") then
local spec = MT[" aux "][auxType]
v.name = MT[".US-".name .. auxType]" =" {.. spec.name
v.link = MT.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Montana)"
shield = MT.US.shield,
end
shieldmain = MT.US.shieldmain,
end
name = MT.US.name .. " " .. spec.name,
link = MT.US.base .. " " .. spec.name .. suffix,
abbr = MT.US.abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate.svg",
aux = spec.aux,
width = "expand",
}
end
end
Line 95 ⟶ 74:
abbr = "MT %route%",
width = "expand"
}
MT["MT 1926"] = {
shield = "",
name = MT.MT.name,
link = MT.MT.link,
abbr = MT.MT.abbr,
width = square
}
 
for _,type in ipairs({"MT"}) do
MT["MT 1948"] = {
for _,year in ipairs({"1926", "1948"}) do
shield = "",
MT["MT " .. year] = {
name = MT.MT.name,
shield = format("MT-%%route%% (%s).svg", year),
link = MT.MT.link,
abbr name = MT.MT.abbrname,
link = MT.MT.link,
width = square
abbr = MT.MT.abbr,
}
width = "square"
}
end
end
 
MT["MT-Bus"] = {
Line 119 ⟶ 94:
abbr = "MT %route% Bus.",
banner = "Business plate.svg",
aux = MT[" aux "].Bus,
width = "expand"
}
Line 143 ⟶ 119:
 
MT["Sec 1945"] = MT["S 1945"]
 
-- add new types above this line if you want it to have the state highway browse and maint
for k, v in pairs(MT) do if k:find ("^%a") then
v.maint = "[[Montana Department of Transportation|MDT]]"
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"