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

]

--Rhode Island

local util = require("Module:Road data/util")local RI = require("Module:Road data/strings/USA")

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

RI.I.link =

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

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

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

RI.US.link =

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

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

RI.RI =

RI.Route = RI.RI

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

return RI