Module:Road data/strings/USA/ID
MyWikiBiz, Author Your Legacy — Thursday December 05, 2024
< Module:Road data | strings | USA
Jump to navigationJump to searchDocumentation for this module may be created at Module:Road data/strings/USA/ID/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)) To inspect a particular route type, change `p` above to include the route type, e.g., `p.I` and `p["US-Hist"]`. ]==] -- Idaho local ID = {} local util = require("Module:Road data/util") local format = mw.ustring.format util.addAll(ID, require("Module:Road data/strings/USA")) local suffix = " ([dab||%dab%, |]Idaho)" local maint = "[[Idaho Transportation Department|IDT]]" ID[" common "] = { browse = { {link = "State Highways in Idaho", bold = true}, { noprint = true, {link = "List of Interstate Highways in Idaho", name = "Interstate"}, {link = "List of U.S. Highways in Idaho", name = "U.S."}, {link = "List of state highways in Idaho", name = "State"} } } } ID.I.maint = maint ID.I.link = { ["15W"] = "Interstate 15W (Idaho)", ["86"] = "Interstate 86 (Idaho)", ["180"] = "Interstate 180 (Idaho)", ["184"] = "Interstate 184", default = "Interstate %route% in Idaho" } ID["I 1957"].link = ID.I.link ID["I 1961"].link = ID.I.link ID.BL.link = ID.I.base .. " Business" .. suffix ID.US.maint = maint ID.US.name = "U.S. Highway %route%" ID.US.link = "U.S. Route %route% in Idaho" ID["US-Alt"].link = ID.US.base .. " Alternate" .. suffix ID["US-Bus"].link = ID.US.base .. " Business" .. suffix ID["US-Byp"].link = ID.US.base .. " Bypass" .. suffix ID["US-Spur"].link = ID.US.base .. " Spur" .. suffix ID["US-Alt"].name = ID.US.name .. " Alternate" ID["US-Bus"].name = ID.US.name .. " Business" ID["US-Byp"].name = ID.US.name .. " Bypass" ID["US-Spur"].name = ID.US.name .. " Spur" ID["US 1926"].shieldmain = "US %route% Idaho 1926.svg" ID["US 1926"].name = ID.US.name ID["US 1926"].link = ID.US.link ID["US 1948"].shieldmain = "US %route% Idaho 1948.svg" ID["US 1948"].name = ID.US.name ID["US 1948"].link = ID.US.link ID["US 1961"].name = ID.US.name ID["US 1961"].link = ID.US.link ID.SH = { base = "Idaho State Highway %route%", shield = "Idaho %route%.svg", name = "State Highway %route%", link = "Idaho State Highway %route% [dab||(%dab%)|]", abbr = "SH-%route%", width = "expand" } ID.ID = ID.SH for _,year in ipairs({"1926", "1930", "1955", "1980"}) do ID["SH " .. year] = { shield = format("Idaho %%route%% (%s).svg", year), shieldmain = format("Idaho %%route%% (%s).svg", year), name = ID.SH.name, link = ID.SH.link, abbr = ID.SH.abbr, width = "square", } end ID["SH 1980"].shield = "ID-%route%.svg" ID["ID 1980"] = ID["SH 1980"] ID["SH 1970"] = ID["SH 1955"] for _,type in ipairs({'SH'}) do for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Spur", "Truck"}) do local spec = ID[" aux "][auxType] ID["SH-" .. auxType] = { shield = ID.SH.shield, shieldmain = ID.SH.shieldmain, name = ID.SH.name .. " " .. spec.name, link = ID.SH.base .. " " .. spec.name .. ID[" dab "], abbr = ID.SH.abbr .. " " .. spec.abbrsuffix, banner = spec.bannerprefix .. " plate.svg", aux = spec.aux, width = "expand", } end end ID["ID-Alt"] = ID["SH-Alt"] ID["ID-Bus"] = ID["SH-Bus"] ID["ID-Byp"] = ID["SH-Byp"] ID["ID-Conn"] = ID["SH-Conn"] ID["ID-Spur"] = ID["SH-Spur"] ID["ID-Truck"] = ID["SH-Truck"] ID["SH 1980-Scenic"] = {shield = "ID-Scenic-%route%.svg", name = "Scenic " .. ID.SH.name, link = ID.SH.link, abbr = ID.SH.abbr .. " Scenic", width = "square"} ID.CR.shield = "" ID.WA = {alias = {module = "USA/WA", type = "SR"}} ID.OR = {alias = {module = "USA/OR", type = "OR"}} ID.NV = {alias = {module = "USA/NV", type = "NV"}} ID.UT = {alias = {module = "USA/UT", type = "SR"}} ID.WY = {alias = {module = "USA/WY", type = "WY"}} ID.MT = {alias = {module = "USA/MT", type = "MT"}} ID.BC = {alias = {module = "CAN/BC", type = "BC"}} return ID