--[==[ To inspect the content of this data module, PRe [[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["PR-Hist"]`.]
-- Puerto Ricolocal PR =
local util = require("Module:Road data/util")local format = mw.ustring.formatutil.addAll(PR, require("Module:Road data/strings/USA"))
local suffix = " ([dab||%dab%, |]Puerto Rico)"
PR.I.shield = "I-PR%route%.svg"PR.I.link = "Interstate PR%route%"PR.I.abbr = "PRI-%route%"
local primary = "PR primary %route%.svg"local urban = "PR urban primary %route%.svg"local secondary = "PR secondary %route%.svg"local tertiary = "Ellipse sign %route%.svg"
local shieldmain =
PR.PR =
PR.Urban =
PR.Sec =
PR.Ter =
for k, v in pairs(PR) do if k:find ("^%a") then v.name = PR.PR.name v.link = PR.PR.link v.abbr = PR.PR.abbr v.width = PR.PR.width v.translation = PR.PR.translation v.lang = PR.PR.lang v.color = endend
for _,type in ipairs do for _,auxType in ipairs do local spec = PR[" aux "][auxType] PR[type .. "-" .. auxType] = endend
PR["PR-Spur"].banner = "Spur plate blue (es).svg"PR["Sec-Spur"].banner = "Spur plate county (es).svg"PR["PR-Ramal"] = PR["PR-Spur"] PR["Urban-Ramal"] = PR["Urban-Spur"]PR["Sec-Ramal"] = PR["Sec-Spur"]PR["Ter-Ramal"] = PR["Ter-Spur"]
-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(PR) do if k:find ("^%a") then v.maint = "Puerto Rico DTPW" endend
return PR