Module:Road data/strings/USA/IN
MyWikiBiz, Author Your Legacy — Friday November 22, 2024
< Module:Road data | strings | USA
Jump to navigationJump to searchDocumentation for this module may be created at Module:Road data/strings/USA/IN/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"]`. ]==] -- Indiana local IN = {} local util = require("Module:Road data/util") util.addAll(IN, require("Module:Road data/strings/USA")) local suffix = " ([dab||%dab%, |]Indiana)" local format = mw.ustring.format local maint = "[[Indiana Department of Transportation|INDOT]]" local maint2 = "[[Indiana Toll Road Concession Company|ITRCC]]" IN.I.link = { ["164"] = "Interstate 164", ["265"] = "Interstate 265", ["275"] = "Interstate 275 (Ohio–Indiana–Kentucky)", ["294"] = "Interstate 294", ["465"] = "Interstate 465", ["469"] = "Interstate 469", ["865"] = "Interstate 865", default = { hook = "split", split = 100, above = "Interstate %route% (Indiana)", below = "Interstate %route% in Indiana" } } IN["I 1961"].link = IN.I.link IN.US.link = "U.S. Route %route% in Indiana" for _,year in ipairs({"1926", "1948", "1961"}) do IN["US " .. year] = { shield = format("US %%route%% (%s).svg", year), shieldmain = format("US %%route%% Indiana %s.svg", year), base = IN.US.base, name = IN.US.name, link = IN.US.link, abbr = IN.US.abbr, width = "square", } end IN["US 1961"].shield = "US %route% (1961).svg" IN["US 1961"].shieldmain = "US %route% (1961).svg" for _,type in ipairs({'US', 'US 1926', 'US 1948', 'US 1961'}) do for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do local spec = IN[" aux "][auxType] IN[type .. "-" .. auxType] = { shield = IN[type].shield, shieldmain = IN[type].shieldmain, name = IN[type].name .. " " .. spec.name, link = IN[type].link .. " " .. spec.name .. suffix, abbr = IN[type].abbr .. " " .. spec.abbrsuffix, banner = spec.bannerprefix .. " plate.svg", aux = spec.aux, width = IN[type].width } end end IN.SR = { shield = "Indiana %route%.svg", base = "Indiana State Road %route%", name = "State Road %route%", link = "Indiana State Road %route% [dab||(%dab%)|]", abbr = "SR %route%", width = "expand" } IN.IN = IN.SR IN["SR-Bus"] = { shield = IN.SR.shield, name = "Business " .. IN.SR.abbr, link = IN.SR.base .. " Business [dab||(%dab%)|]", abbr = "Bus. " .. IN.SR.abbr, banner = "Business plate.svg", width = "expand" } IN["IN-Bus"]=IN["SR-Bus"] IN["SR-Truck"] = { shield = IN.SR.shield, name = "Truck " .. IN.SR.name, link = IN.SR.base .. " Truck [dab||(%dab%)|]", abbr = "Truck " .. IN.SR.abbr, banner = "Truck plate.svg", width = "expand"} IN["IN-Truck"]=IN["SR-Truck"] for _,year in ipairs({"1926", "1948", "1955"}) do IN["SR " .. year] = { shield = format("Indiana %%route%% (%s).svg", year), shieldmain = format("Indiana %%route%% (%s).svg", year), name = IN.SR.name, link = IN.SR.link, abbr = IN.SR.abbr, orientation = "upright" } end IN["IN 1926"] = IN["SR 1926"] IN["IN 1940"] = IN["SR 1926"] IN["SR 1940"] = IN["SR 1926"] IN["IN 1948"] = IN["SR 1948"] IN["SR 1955"].shield = { hook = "between", lower = 20, upper = 99, yes = IN.IN.shield, no = "Indiana %route% (1955).svg" } IN["SR 1955"].shieldmain = IN["SR 1955"].shield IN["IN 1955"] = IN["SR 1955"] IN.Toll = { shield = "Indiana Toll Road jct.svg", name = "Indiana Toll Road", link = "Indiana Toll Road", abbr = "Indiana Toll Road", maint = maint2 } IN.ITR = IN.Toll IN.Lincoln.link = "Lincoln Highway in Indiana" IN.CR.shield = { arg = "county", default = "CR %route% jct.svg", Hendricks = "" } IN.CR.link = { ["17"] = "[county|Elkhart|County Road 17 (Elkhart County, Indiana)|]", default = "" } IN.IL = {alias = {module = "USA/IL", type = "IL"}} IN.Skyway = {alias = {module = "USA/IL", type = "Skyway"}} IN.KY = {alias = {module = "USA/KY", type = "KY"}} IN.MI = {alias = {module = "USA/MI", type = "M"}} IN.OH = {alias = {module = "USA/OH", type = "SR"}} return IN