Module:Road data/strings/USA/NV: Difference between revisions

Content deleted Content added
update module
Fix banner for CC
 
(10 intermediate revisions by one other user not shown)
Line 19:
 
local suffix = " ([dab||%dab%, |]Nevada)"
local maint = "[[Nevada Department of Transportation|NDOT]]"
 
NV[" common "].I.link = {
["11"] = "Interstate 11",
browse = {
["215"] = "Las Vegas Beltway",
{link = "Highways in Nevada", bold = true},
["515"] = "Interstate 515",
{
default = {
noprint = true,
hook = "split",
{link = "List of Interstate Highways in Nevada", name = "Interstate"},
split = 100,
{link = "List of U.S. Routes in Nevada", name = "U.S."},
{linkabove = "ListInterstate of state routes in%route% (Nevada)", name = "State"},
{linkbelow = "ListInterstate of%route% in Nevada Scenic Byways", name = "Scenic"}
}
}
}
 
for k, v in pairs(NV) do if k:find ("^I") then
NV.I.maint = maint
v.link = NV.I.link
NV.I.link = {["11"] = "Interstate 11",
end
["215"] = "Las Vegas Beltway",
end
["515"] = "Interstate 515",
default = {hook = "split",
split = 100,
above = "Interstate %route% (Nevada)",
below = "Interstate %route% in Nevada"}}
NV["I 1957"].link = NV.I.link
NV["I 1961"].link = NV.I.link
 
NV.BL.link = NV.I.base .. " Business" .. suffix
NV.US.maint = maint
NV.US.link = "U.S. Route %route% in Nevada"
NV["US-Alt"].link = NV.US.base .. " Alternate" .. suffix
NV["US-Bus"].link = NV.US.base .. " Business" .. suffix
NV["US-Spur"].link = NV.US.base .. " Spur" .. suffix
NV["US-Truck"].link = NV.US.base .. " Truck" .. suffix
 
for _k,year v in ipairspairs({"1926",NV) "1948",do if k:find ("1961^B%a"}) dothen
v.link = NV.BL.link
local oldUSmain = "US " .. year
end
NV[oldUSmain].name = NV.US.name
NV[oldUSmain].link = NV.US.link
end
 
NV.SR = {shieldUS.link = "NevadaU.S. Route %route%.svg in Nevada",
link = "Nevada State Route %route% [dab||(%dab%)|]",
abbr = "SR %route%"}
 
for k, v in pairs(NV) do if k:find ("^US %d") then
NV.CC = {shield = "Clark County Route %route% NV.svg",
v.name = NV.US.name
link = "Clark County %route% [dab||(%dab%)|]",
v.link = NV.US.link
abbr = "CC %route%"}
end
end
NV.CR = {shield = "CR %route% jct.svg",
link = "County Route %route% ([county||%county% County, |]Nevada)",
abbr = "CR %route%"}
 
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
local spec = NV[" aux "][auxType]
for k, v in pairs(NV) do if k:find (auxType) then if k:find ("^US") then
v.banner = spec.banneralt .. " plate.svg"
v.link = NV.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Nevada)"
end
end
end
end
 
NV.SR = {
shield = "Nevada %route%.svg",
name = "State Route %route%",
link = "Nevada State Route %route% [dab||(%dab%)|]",
abbr = "SR %route%"
}
NV.NV = NV.SR
 
NV.BLSR = {
shieldmain = {"Business Loop 80.svg", "Nevada %route%.svg"},
name = NV.SR.name,
link = "",
abbr = NV.SR.abbr,
nbrowse = NV.BL.nbrowse,
nbrowselinks = NV.BL.nbrowselinks
}
 
-- add new types above this line if you want it to have the state highway browse and maint
for k, v in pairs(NV) do if k:find ("^%a") then
v.maint = "[[Nevada Department of Transportation|NDOT]]"
v.browse = "Highways in Nevada"
v.browselinks = {
[1] = "[[List of Interstate Highways in Nevada|Interstate]]",
[2] = "[[List of U.S. Routes in Nevada|US]]",
[3] = "[[List of state routes in Nevada|State]]",
[4] = "[[List of Nevada Scenic Byways|Scenic]]"
}
end
end
 
NV.CC = {
shield = "Clark County Route %route% NV.svg",
name = "Clark County %route%",
link = "Clark County %route% [dab||(%dab%)|]",
abbr = "CC %route%",
bannersuffix = "county"
}
NV.CR.link = "County Route %route% ([county||%county% County, |]Nevada)"
 
 
-- For linking internally on 'List of state routes in Nevada less than one mile'
NV.SR2 = {
shield = NV.SR.shield,
link = "#State Route %route%",
abbr = NV.SR.abbr
}
 
return NV