Module:Road data/strings/USA/CO
MyWikiBiz, Author Your Legacy — Sunday September 01, 2024
< Module:Road data | strings | USA
Jump to navigationJump to searchDocumentation for this module may be created at Module:Road data/strings/USA/CO/doc
--[==[ To inspect the content of this data module, use [[Special:ExpandTemplates]] and enter the following input text: {{#invoke:Road data/dump|dump|module=Module:<name-of-this-module>}} 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)) ]==] --Colorado local CO = require("Module:Road data/strings/USA") local util = require("Module:Road data/util") local format = mw.ustring.format local suffix = " ([dab||%dab%, |]Colorado)" local maint = "[[Colorado Department of Transportation|CDOT]]" CO[" common "] = { browse = { {link = "Colorado State Highway System", bold = true}, { noprint = true, {link = "List of Interstate Highways in Colorado", name = "Interstate"}, {link = "List of U.S. Highways in Colorado", name = "U.S."}, {link = "List of state highways in Colorado", name = "State"}, {link = "List of Colorado Scenic and Historic Byways", name = "Scenic"} } } } CO.I.link = { ["76"] = "Interstate 76 (Colorado–Nebraska)", ["225"] = "Interstate 225", ["270"] = "Interstate 270 (Colorado)", ["425"] = "Interstate 425", ["470"] = "Interstate 470 (Colorado)", default = "Interstate %route% in Colorado" } CO.BL.link = "Interstate %route% Business ([dab||%dab%, |]Colorado)" CO.BS.link = CO.BL.link CO.US.name = "U.S. Highway %route%" CO.US.link = { ["138"] = "U.S. Route 138", ["350"] = "U.S. Route 350", ["400"] = "U.S. Route 400", ["491"] = "U.S. Route 491", ["550"] = "U.S. Route 550", ["650"] = "U.S. Route 650", default = "U.S. Route %route% in Colorado" } for _,year in ipairs({"1926", "1948", "1961"}) do CO["US " .. year] = { shield = format("US %%route%% (%s).svg", year), shieldmain = format("US %%route%% Colorado %s.svg", year), base = CO.US.base, name = CO.US.name, link = CO.US.link, abbr = CO.US.abbr, width = "square", } end CO["US 1961"].shieldmain = "US %route% (1961).svg" for _,type in ipairs({'US', 'US 1961'}) do for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do local spec = CO[" aux "][auxType] CO[type .. "-" .. auxType] = { shield = CO[type].shield, name = CO[type].name .. " " .. spec.name, link = CO[type].base .. " " .. spec.name .. suffix, abbr = CO[type].abbr .. " " .. spec.abbrsuffix, banner = spec.bannerprefix .. " plate.svg", aux = spec.aux, width = CO[type].width } end end for _,type in ipairs({'US 1948'}) do for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do local spec = CO[" aux "][auxType] CO[type .. "-" .. auxType] = { shield = CO[type].shield, shieldmain = CO[type].shieldmain, name = CO[type].name .. " " .. spec.name, link = CO[type].base .. " " .. spec.name .. suffix, abbr = CO[type].abbr .. " " .. spec.abbrsuffix, banner = spec.bannerprefix .. " plate.svg", aux = spec.aux, width = CO[type].width } end end CO.SH = { base = "Colorado State Highway %route%", shield = { hook = "splitlen", split = 3, above = "Colorado %route% wide.svg", below = "Colorado %route%.svg", }, shieldmain = { default = { hook = "splitlen", split = 3, above = "Colorado %route% wide.svg", below = "Colorado %route%.svg", }, ["65"] = {"Colorado %route%.svg", "Colorado Scenic Byway.png"}, }, name = "State Highway %route%", link = "Colorado State Highway %route% [dab||(%dab%)|]", abbr = "SH %route%", width = "square" } CO.CO = CO.SH for _,year in ipairs({"1926", "1946", "1952", "1969"}) do CO["SH " .. year] = { shield = format("Colorado %%route%% (%s).svg", year), name = CO.SH.name, link = CO.SH.link, abbr = CO.SH.abbr, width = "square", } end CO["CO 1926"] = CO["SH 1926"] CO["CO 1946"] = CO["SH 1946"] CO["CO 1952"] = CO["SH 1952"] CO["SH 1969"].shield = "Colorado %route%.svg" for _,type in ipairs({'SH'}) do for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Spur", "Truck"}) do local spec = CO[" aux "][auxType] CO["SH-" .. auxType] = { shield = CO.SH.shield, shieldmain = CO.SH.shield, name = CO.SH.name .. " " .. spec.name, link = CO.SH.base .. " " .. spec.name .. CO[" dab "], abbr = CO.SH.abbr .. " " .. spec.abbrsuffix, banner = spec.bannerprefix .. " plate.svg", aux = spec.aux, width = "expand", } end end CO["CO-Alt"] = CO["SH-Alt"] CO["CO-Bus"] = CO["SH-Bus"] CO["CO-Byp"] = CO["SH-Byp"] CO["CO-Conn"] = CO["SH-Conn"] CO["CO-Spur"] = CO["SH-Spur"] CO["CO-Truck"] = CO["SH-Truck"] CO.E = {shield = "E%route%.svg", shieldmain = "E%route%.svg", name = "E-%route%", link = "E-%route%", abbr = "E-%route%"} CO.AZ = {alias = {module = "USA/AZ", type = "SR"}} CO.KS = {alias = {module = "USA/KS", type = "K"}} CO.NE = {alias = {module = "USA/NE", type = "N"}} CO["I-NE"] = {alias = {module = "USA/NE", type = "I"}} CO.NM = {alias = {module = "USA/NM", type = "NM"}} CO.OK = {alias = {module = "USA/OK", type = "SH"}} CO.UT = {alias = {module = "USA/UT", type = "UT"}} CO.WY = {alias = {module = "USA/WY", type = "WY"}} return CO