Module:Road data/strings/USA/KS explained

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

]

-- Kansaslocal KS =

local util = require("Module:Road data/util")local format = mw.ustring.formatutil.addAll(KS, require("Module:Road data/strings/USA"))

local suffix = " ([dab||%dab%, |]Kansas)"

KS.I.link =

for k, v in pairs(KS) do if k:find ("^I") then v.link = KS.I.link endendKS["I-Alt"].banner = "Alt plate blue.svg"

KS.US.name = "U.S. Highway %route%"KS.US.link = "U.S. Route %route% in Kansas"KS.US.abbr = "US-%route%"

KS["US 1962"] = KS["US 1961"]KS["US 1961"].shield = "US %route% Kansas 1962.svg"

for k, v in pairs(KS) do if k:find ("^US %d") then v.name = KS.US.name v.link = KS.US.link endend

for _,auxType in ipairs do local spec = KS[" aux "][auxType] for k, v in pairs(KS) do if k:find (auxType) then if k:find ("^US") then v.name = KS.US.name .. " " .. spec.name v.link = KS.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Kansas)" v.banner = spec.banneralt .. " plate.svg" end end endend

KS["US-Hist"].shield = "" --"US %route% (KS historic).svg"KS["US-Hist"].name = "Historic " .. KS.US.nameKS["US-Hist"].link = KS.US.link

KS.K = KS.KS = KS.K

for _,type in ipairs do for _,year in ipairs do KS[type .. " " .. year] = endendKS["K 1968"].shield = KS["KS 1968"] = KS["K 1968"]

for _,type in ipairs do for _,auxType in ipairs do local spec = KS[" aux "][auxType] KS[type .. "-" .. auxType] = endend

-- add new types above this line if you want it to have the state highway browse and maintfor k, v in pairs(KS) do if k:find ("^%a") then v.maint = "KDOT" v.browse = "Kansas State Highway System" v.browselinks = endend

KS.KSTP = KS.KTA = KS.KSTP

KS.Scenic =

KS.CR.maint = ""

return KS