Module:Road data/strings/USA/KS
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/KS/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"]`. ]==] -- Kansas local KS = {} local util = require("Module:Road data/util") local format = mw.ustring.format util.addAll(KS, require("Module:Road data/strings/USA")) local suffix = " ([dab||%dab%, |]Kansas)" local maint = "[[Kansas Department of Transportation|KSDOT]]" KS.I.shieldmain = "I-%route% (KS).svg" KS.I.link = { ["135"] = "Interstate 135", ["435"] = "Interstate 435", ["635"] = "Interstate 635 (Kansas–Missouri)", ["670"] = "Interstate 670 (Kansas–Missouri)", default = { hook = "splitlen", split = 3, above = "Interstate %route% (Kansas)", below = "Interstate %route% in Kansas" } } KS["I 1957"].link = KS.I.link KS["I 1961"].link = KS.I.link KS.US.name = "U.S. Highway %route%" KS.US.link = "U.S. Route %route% in Kansas" KS.US.abbr = "US-%route%" KS["US 1926"].shieldmain = "US %route% Kansas 1926.svg" KS["US 1926"].link = KS.US.link KS["US 1926"].name = KS.US.name KS["US 1948"].shieldmain = "US %route% Kansas 1948.svg" KS["US 1948"].link = KS.US.link KS["US 1948"].name = KS.US.name KS["US 1961"].shield = "US %route% Kansas 1962.svg" KS["US 1961"].name = KS.US.name KS["US 1962"] = KS["US 1961"] for _,type in ipairs({'US'}) do for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do local spec = KS[" aux "][auxType] KS["US-" .. auxType] = { shield = KS.US.shield, shieldmain = KS.US.shieldmain, name = KS.US.name .. " " .. spec.name, link = KS.US.base .. " " .. spec.name .. suffix, abbr = KS.US.abbr .. " " .. spec.abbrsuffix, banner = spec.bannerprefix .. " plate.svg", aux = spec.aux, width = "expand", } end end KS["US-City"] = { shield = KS.US.shield, name = "City " .. KS.US.name, link = "U.S. Route %route% City" .. suffix, abbr = KS.US.abbr .. " City", banner = "City plate.svg", width = "expand" } KS["US-Hist"].shield = "" --"US %route% (KS historic).svg" KS["US-Hist"].name = "Historic " .. KS.US.name KS["US-Hist"].link = KS.US.link KS.KSTP = { shield = "Kansas Turnpike.svg", name = "Kansas Turnpike", link = "Kansas Turnpike", abbr = "Kansas Turnpike", bannersuffix = "blue" } KS.KTA = KS.KSTP KS.K = { base = "K-%route%", shield = "K-%route%.svg", name = "K-%route%", link = "K-%route% ([dab||%dab% |]Kansas highway)", abbr = "K-%route%", width = "expand" } KS.KS = KS.K for _,year in ipairs({"1926", "1948", "1962", "1968"}) do KS["K " .. year] = { shield = format("K-%%route%% (%s).svg", year), shieldmain = format("K-%%route%% (%s).svg", year), name = KS.K.name, link = KS.K.link, abbr = KS.K.abbr, width = "square", } end KS["K 1968"].shield = { hook = "splitlen", split = 3, above = "K-%route% (1968).svg", below = KS.K.shield } KS["KS 1968"] = KS["K 1968"] KS["KS 1962"] = KS["K 1962"] KS["KS 1948"] = KS["K 1948"] KS["KS 1926"] = KS["K 1926"] KS["K-Alt"] = { shield = KS.K.shield, name = KS.K.name .. " Alternate", link = "K-%route% Alternate (Kansas highway)", abbr = KS.K.abbr .. " Alt.", banner = "Alt plate.svg", width = "expand" } KS["KS-Alt"] = KS["K-Alt"] KS["K-Spur"] = { shield = KS.K.shield, name = KS.K.name .. " Spur", link = "K-%route% Spur (Kansas highway)", abbr = KS.K.abbr .. " Spur", banner = "Spur plate.svg", width = "expand" } KS["KS-Spur"] = KS["K-Spur"] KS["K-Temp"] = { shield = KS.K.shield, name = "Temporary " .. KS.K.name, link = KS.K.link, abbr = KS.K.abbr .. " Temp.", banner = "Temporary plate.svg", width = "expand" } KS["KS-Temp"] = KS["K-Temp"] KS["K-Truck"] = { shield = KS.K.shield, name = KS.K.name .. " Truck", link = "K-%route% Truck (Kansas highway)", abbr = KS.K.abbr .. " Truck", banner = "Truck plate.svg", width = "expand" } KS["KS-Truck"] = KS["K-Truck"] return KS