Content deleted Content added
alt plate logic |
nolink |
||
(5 intermediate revisions by the same user not shown) | |||
Line 20:
local suffix = " ([dab||%dab%, |]Kansas)"
KS.I.link = {
["135"] = "Interstate 135",
Line 35 ⟶ 31:
above = "Interstate %route% (Kansas)",
below = "Interstate %route% in Kansas"
}
}
for k, v in pairs(KS) do if k:find ("^I") then
end
end
KS["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
v.name = KS.US.name
v.link = KS.US.link
end
end
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
local spec = KS[" aux "][auxType]
for k, v in pairs(KS) do if k:find (auxType) then if k:find ("^US") then
v.link = KS.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Kansas)"
v.banner = spec.banneralt .. " plate.svg"
end
end
end
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.K = {
Line 104 ⟶ 75:
abbr = "K-%route%",
width = "expand"
}
KS.KS = KS.K
for _,type in ipairs({'K', 'KS'}) do
for _,year in ipairs({"1926", "1948", "1962", "1968"}) do shield = format("K-%%route%% (%s).svg", year),
name = KS.K.name,
}
end
KS["K 1968"].shield = {
hook = "splitlen",
Line 125 ⟶ 94:
above = "K-%route% (1968).svg",
below = KS.K.shield
}
KS["KS 1968"] = KS["K 1968"]
for _,type in ipairs({'K', 'KS'}) do
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Spur", "Temp", "Truck"}) do
local spec = KS[" aux "][auxType]
KS[type .. "
shield = KS.K.shield,
shieldmain = KS.K.shieldmain,
Line 142 ⟶ 106:
link = KS.K.base .. " " .. spec.name .. suffix,
abbr = KS.K.abbr .. " " .. spec.abbrsuffix,
banner = spec.
aux = spec.aux,
width = "expand",
Line 148 ⟶ 112:
end
end
-- add new types above this line if you want it to have the state highway browse and maint
for k, v in pairs(KS) do if k:find ("^%a") then
v.maint = "[[Kansas Department of Transportation|KDOT]]"
v.browse = "Kansas State Highway System"
v.browselinks = {
[1] = "[[List of Interstate Highways in Kansas|Interstate]]",
[2] = "[[List of U.S. Highways in Kansas|US]]",
[3] = "[[List of state highways in Kansas|State]]",
[4] = "[[List of Kansas state highway spurs|Spurs]]"
}
end
end
KS.KSTP = {
shield = "Kansas Turnpike.svg",
name = "Kansas Turnpike",
link = "Kansas Turnpike",
abbr = "Kansas Turnpike",
bannersuffix = "blue",
maint = "[[Kansas Turnpike Authority]]"
}
KS.KTA = KS.KSTP
KS.Scenic = {
shield = "Kansas Scenic Byway.svg",
name = "%route%",
link = "",
abbr = "%route%",
bannersuffix = "blue",
width = "wide",
color = "hist"
}
KS.CR.maint = ""
return KS
|