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

]

-- Wyominglocal WY =

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

local suffix = " ([dab||%dab%, |]Wyoming)"local maint = "Wyoming DOT"

WY.I.link = "Interstate %route% (Wyoming)"

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

WY.BL.link = "Interstate %route% Business ([dab||%dab%, |]Wyoming)"

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

WY.US.shield =

WY.US.shieldmain= WY.US.shield WY.US.name = "U.S. Highway %route%"WY.US.link = "U.S. Route %route% in Wyoming"

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

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

WY.WY = WY.WYO = WY.WY

WY["WY-Conn"] = WY["WYO-Conn"] = WY["WY-Conn"]

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

return WY