Module:Road data/strings/USA/MT explained

--[==[ To inspect the content of this data module, use [[Special:ExpandTemplates]]and enter the following input text:

To inspect the content of this data module when editing, enter the followinginto 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"]`.]

]

-- Montanalocal MT =

local util = require("Module:Road data/util")local format = mw.ustring.formatutil.addAll(MT, require("Module:Road data/strings/USA"))

local suffix = " ([dab||%dab%, |]Montana)"

MT.I.link =

for k, v in pairs(MT) do if k:find ("^I") then v.link = MT.I.link endend

MT.BL.link = MT.I.base .. " Business" .. suffix

for k, v in pairs(MT) do if k:find ("^BL") then v.link = MT.BL.link endend

MT.US.name = "U.S. Highway %route%"MT.US.link =

for k, v in pairs(MT) do if k:find ("^US %d") then v.name = MT.US.name v.link = MT.US.link endend

for _,auxType in ipairs do local spec = MT[" aux "][auxType] for k, v in pairs(MT) do if k:find (auxType) then if k:find ("^US") then v.name = MT.US.name .. " " .. spec.name v.link = MT.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Montana)" end end endend

MT.MT =

for _,type in ipairs do for _,year in ipairs do MT["MT " .. year] = endend

MT["MT-Bus"] =

MT.S =

MT.Sec = MT.S

MT["S 1945"] =

MT["Sec 1945"] = MT["S 1945"]

-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(MT) do if k:find ("^%a") then v.maint = "MDT" v.browse = "Montana Highway System" v.browselinks = endend

MT.CR.shield = "Connecticut Highway %route%.svg"

MT.NSB.shieldmain =

-- For internal linking on List of secondary highways in Montana

MT.Sec2 =

return MT