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

]

-- Californialocal CA =

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

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

CA.I.shield = CA["I 1961"].shieldCA.I.link = CA.I.law = "SHC ยง %section%"

for k, v in pairs(CA) do if k:find ("^I%-") then v.shield = CA.I.shield v.shieldmain = CA.I.shieldmain endend

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

CA.BL.shield = "Business Loop %route% (CA).svg"CA.BL.shieldmain = CA.BL.shieldCA.BL.link = CA.I.base .. " Business" .. suffix

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

-- The 405 Express Lanes do not use the I abbreviation, but others do CA["I-Express"] =

-- I-5/SR 14/Newhall Pass and I-5/I-405/Mission Hills use "Truck Route"-- I-5/SR 99/Wheeler Ridge, I-15/I-215/Devore, and I-580/I-205 instead use "Truck Bypass"CA["I-Truck"].link = "Interstate %route% Truck ([dab||%dab%, |]California)"CA["I-Truck"].banner = "Truck plate.svg" -- Caltrans does not use the blue truck plates, opting instead for white signage

CA.US.link = CA.US.law = CA.I.lawCA.US.bannersuffix = "1961"CA.US.color =

CA["US-Express"] =

CA["US 1926-Alt"] = CA["US-Alt 1926"] = CA["US 1926-Alt"] CA["US 1948-Alt"] =

CA["US 1948-Bus"] =

for _,auxType in ipairs do local spec = CA[" aux "][auxType] CA["US-" .. auxType] = end

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

CA["US-Hist"].link = "Historic " .. CA.US.base .. " (California)"

CA.SR = CA.CA = CA.SR

for _,type in ipairs do for _,year in ipairs do CA[type .. " " .. year] = endend

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

CA["SR-Toll"].link = CA["CA-Toll"].link = CA["SR-Toll"].link

-- The 91 Express Lanes do not use the SR abbreviation, but those in the Bay Area do CA["SR-Express"] = CA["CA-Express"] = CA["SR-Express"]

CA["SR-Hist"] = CA["CA-Hist"] = CA["SR-Hist"]

CA.FH.shieldmain =

CA.ISR =

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

CA["CA 1934 S"].maint = "California Department of Public Works"CA["CA 1948"].maint = CA["CA 1934 S"].maint

CA.CR.link = "County Route %route% (California)"CA.CR.maint = ""

CA["I-OR"] = CA["US-NV"] = CA.AZ = CA.NV = CA.OR = CA.MEX = CA["US-NV"].bannersuffix = "1961"

return CA