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

Content deleted Content added
alt plate
Fix banner for CC
 
(3 intermediate revisions by one other user not shown)
Line 19:
 
local suffix = " ([dab||%dab%, |]Nevada)"
local maint = "[[Nevada Department of Transportation|NDOT]]"
 
NV[" common "] = {
browse = {
{link = "Highways in Nevada", bold = true},
{
noprint = true,
{link = "List of Interstate Highways in Nevada", name = "Interstate"},
{link = "List of U.S. Routes in Nevada", name = "U.S."},
{link = "List of state routes in Nevada", name = "State"},
{link = "List of Nevada Scenic Byways", name = "Scenic"}
}
}
}
 
NV.I.maint = maint
NV.I.link = {
["11"] = "Interstate 11",
Line 46 ⟶ 31:
}
}
 
for k, v in pairs(NV) do if k:find ("^I") then
NV["I 1957"].link = NV.I.link
NV["I 1961"] v.link = NV.I.link
end
end
 
NV.BL.link = NV.I.base .. " Business" .. suffix
NV.BS.link = NV.I.base .. " Business" .. suffix
 
for k, v in pairs(NV) do if k:find ("^B%a") then
NV["I 1957"] v.link = NV.IBL.link
end
end
 
NV.US.maint = maint
NV.US.link = "U.S. Route %route% in Nevada"
 
for _k,type v in ipairspairs({'US'}NV) do if k:find ("^US %d") then
v.name = NV.US.name
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Spur", "Truck"}) do
NV["US 1926"] v.link = NV.US.link
local spec = NV[" aux "][auxType]
NV[type .. "-" .. auxType] = {
shield = NV[type].shield,
shieldmain = NV[type].shield,
name = NV[type].name .. " " .. spec.name,
link = NV[type].base .. " " .. spec.name .. suffix,
abbr = NV[type].abbr .. " " .. spec.abbrsuffix,
banner = spec.banneralt .. " plate.svg",
aux = spec.aux,
width = NV[type].width,
}
end
end
 
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
NV["US 1926"].shieldmain = "US %route% Nevada 1926.svg"
local spec = NV[" aux "][auxType]
NV["US 1926"].link = NV.US.link
for k, v in pairs(NV) do if k:find (auxType) then if k:find ("^US") then
NV["US 1948"].shieldmain = "US %route% Nevada 1948.svg"
v.banner = spec.banneralt .. " plate.svg",
NV["US 1948"].link = NV.US.link
v.link = NV[type].US.base .. " " .. spec.name .. suffix" ([dab||%dab%, |]Nevada)"
NV["US 1961"].link = NV.US.link
end
end
end
end
 
NV.SR = {
Line 84 ⟶ 68:
abbr = "SR %route%"
}
NV.NV = NV.SR
 
NV.BLSR = {
Line 89 ⟶ 74:
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
local v.maint = "[[Nevada Department of Transportation|NDOT]]"
{link v.browse = "Highways in Nevada", bold = true},
v.browselinks = {
{link[1] = "[[List of Interstate Highways in Nevada", name = "|Interstate]]"},
{link[2] = "[[List of U.S. Routes in Nevada|US]]", name = "U.S."},
{link[3] = "[[List of state routes in Nevada", name = "|State]]"},
{link[4] = "[[List of Nevada Scenic Byways", name = "|Scenic]]"}
}
end
end
 
NV.CC = {
Line 96:
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)"
 
NV.NV = NV.SR
 
-- For linking internally on 'List of state routes in Nevada less than one mile'
NV.SR2 = {
shield = NV.NVSR.shield,
link = "#State Route %route%",
abbr = NV.SR.abbr