Module:Road data/strings/USA/UT 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"]`.]

]

-- Utahlocal UT =

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

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

UT.I.link = UT.I.law = "

Utah Code ยง72-4-%section%"

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

UT.BL.link = "Interstate %route% Business" .. suffixUT.BL.law = UT.I.law

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

UT.US.link = "U.S. Route %route% in Utah"UT.US.law = UT.I.law

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

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

UT.UT = UT.SR = UT.UT

for _,type in ipairs do for _,year in ipairs do UT[type .. " " .. year] = endendUT["UT 1962"].shield = UT["UT 1962"].link = UT.UT.linkUT["UT 1962"].abbr = UT.UT.abbrUT["SR 1962"] = UT["UT 1962"]UT["UT 1966"] = UT["UT 1962"]UT["SR 1966"] = UT["UT 1962"]

UT.BLSR =

-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(UT) do if k:find ("^%a") then v.maint = "UDOT" v.browse = "State highways in Utah" v.browselinks = endend

UT.BIA =

UT.AZ = UT.CO = UT.ID = UT.NM = UT.NV = UT.WY = return UT