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

]

-- Oklahomalocal OK =

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

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

OK.I.shield = OK.I.link =

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

OK.BL.link = "Interstate %route% Business" .. suffixOK["I-Bus"] = OK.BL

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

OK.US.name = "U.S. Highway %route%"OK.US.link = "U.S. Route %route% in Oklahoma"

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

for _,auxType in ipairs do local spec = OK[" aux "][auxType] for k, v in pairs(OK) do if k:find (auxType) then if k:find ("^US") then v.name = OK.US.name .. " " .. spec.name v.link = OK.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Oklahoma)" v.banner = spec.banneralt .. " plate.svg" end end endendOK["US-Spur"].banner =

for _,year in ipairs do for _,auxType in ipairs do local type = "US " .. year local spec = OK[" aux "][auxType] OK[type .. "-" .. auxType] = endend

OK.SH = OK.OK = OK.SH

for _,type in ipairs do for _,auxType in ipairs do local spec = OK[" aux "][auxType] OK[type .."-" .. auxType] = endend

OK["SH-Spur"].shield = OK["SH-Spur"].banner = OK["SH-Toll"].banner = "Toll plate yellow.svg"

for _,year in ipairs do OK["SH " .. year] = end

OK["SH 1961"].shield =

OK["SH-old"] = OK["SH 1961"]OK["OK-old"] = OK["SH 1961"]

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

OK.Turnpike =

OK.AR = OK.TX = OK.NM = OK.CO = OK.KS = OK.MO =

return OK