Module:Road data/strings/USA/CA

--[==[ 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 following into 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"]`. ]==]

-- California local CA = {}

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

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

CA[" common "] = { browse = { {link = "State highways in California", bold = true}, {			noprint = true, {link = "List of Interstate Highways in California", name = "Interstate"}, {link = "List of U.S. Routes in California", name = "U.S."}, {link = "List of state highways in California", name = "State"}, {link = "County roads in California", name = "Secondary"}, {link = "List of state highways in California (pre-1964)", name = "Pre-1964"}, {link = "History of California's state highway system", name = "History"}, {link = "List of unconstructed state highways in California", name = "Unconstructed"}, {link = "List of deleted state highways in California", name = "Deleted"}, {link = "California Freeway and Expressway System", name = "Freeway"}, {link = "State Scenic Highway System (California)", name = "Scenic"} }	} }

CA.I.maint = maint CA.I.shield = CA["I 1961"].shield CA.I.link = {	["8"] = "Interstate 8", ["505"] = "Interstate 505", ["605"] = "Interstate 605", ["805"] = "Interstate 805", ["905"] = "Interstate 905", ["710"] = "Interstate 710", ["238"] = "Interstate 238", ["780"] = "Interstate 780", ["980"] = "Interstate 980", default = {hook = "split", split = 100, above = "Interstate %route% (California)", below = "Interstate %route% in California"}} CA["I-Toll"] = {shield = CA.I.shield, link = CA.I.link, abbr = CA.I.abbr, width = "expand", banner = "Toll plate yellow.svg"} CA.BL.shield = "Business Loop %route% (CA).svg" CA.BL.link = CA.I.base .. " Business" .. suffix

CA["I 1957"].link = CA.I.link CA["I 1961"].link = CA.I.link

CA.US.shield = "US %route% (CA).svg" CA.US.maint = maint CA.US.link = {	["199"] = "U.S. Route 199", ["299"] = "U.S. Route 299", ["399"] = "U.S. Route 399", ["466"] = "U.S. Route 466", default ="U.S. Route %route% in California"} CA["US-Alt"].link = CA.US.base .. " Alternate" .. suffix CA["US-Alt"].shield = CA.US.shield CA["US-Bus"].link = CA.US.base .. " Business" .. suffix CA["US-Bus"].shield = CA.US.shield CA["US-Byp"].link = CA.US.base .. " Bypass" .. suffix CA["US-Byp"].shield = CA.US.shield CA["US-Bus"].maint = maint

for _,year in ipairs({"1926", "1948", "1961"}) do local oldUSmain = "US " .. year CA[oldUSmain].name = CA.US.name CA[oldUSmain].link = CA.US.link end

CA["US 1926"].shield = "US %route% California 1926.svg" CA["US 1948"].shield = "US %route% California 1948.svg"

CA["US 1926-Alt"] = {shield = CA["US 1926"].shield, link = CA["US-Alt"].link, abbr = CA["US-Alt"].abbr, banner = CA["US-Alt"].banner, width = 'US1926'} CA["US 1948-Alt"] = {shield = CA["US 1948"].shield, link = CA["US-Alt"].link, abbr = CA["US-Alt"].abbr, banner = CA["US-Alt"].banner, width = "expand"}

CA["US 1948-Bus"] = {shield = CA["US 1948"].shield, link = CA["US-Bus"].link, abbr = CA["US-Bus"].abbr, banner = "Business plate.svg"}

CA["US-Hist"] = {shield = "Historic US %route% (CA).svg", link = "Historic " .. CA.US.base .. " (California)", abbr = "Historic " .. CA.US.abbr, width = "expand"}

CA.SR = {shield = "California %route%.svg", link = "California State Route %route% [dab||(%dab%)|]", abbr = "SR %route%", width = "SR"}

CA["SR 1934 S"] = {shield = "California %route% 1934 S.svg", link = CA.SR.link, abbr = CA.SR.abbr, width = "SR"}

CA["SR 1948"] = {shield = "California %route% 1948.svg", link = CA.SR.link, abbr = CA.SR.abbr, width = "SR"}

CA["SR 1957"] = {shield = "California %route% 1957.svg", link = CA.SR.link, abbr = CA.SR.abbr, width = "SR"}

CA["CA 1957"] = CA["SR 1957"]

CA.CA = CA.SR

CA["SR-Bus"] = {shield = CA.SR.shield, link = "California State Route %route% Business ([dab||%dab%|])", abbr = CA.SR.abbr .. " Bus.", banner = "Business plate green.svg", bannersize = "19"}

CA["CA-Bus"] = CA["SR-Bus"]

CA["SR-Toll"] = {shield = CA.SR.shield, link = CA.SR.link, abbr = CA.SR.abbr, banner = "Toll plate yellow.svg"}

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

CA.CR = {shield = "CR %route% jct.svg", link = "County Route %route% (California)", abbr = "CR %route%"}

CA.FH = {shield = "Forest Route %route%.svg", link = "", abbr = "FH %route%"}

CA["US-Alt 1926"] = {shield = "", link = "", abbr = CA["US-Alt"].abbr}

CA["I-OR"] = {alias = {module = "USA/OR", type = "I"}} CA["US-NV"] = {alias = {module = "USA/NV", type = "US"}}

CA.AZ = {alias = {module = "USA/AZ", type = "SR"}} CA.NV = {alias = {module = "USA/NV", type = "SR"}} CA.OR = {alias = {module = "USA/OR", type = "OR"}} CA.MEX = {alias = {module = "MEX", type = "FH"}} CA.road = {alias = {module = "USA", type = "road"}}

return CA