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

Content deleted Content added
US-Truck
Fix banner for CC
 
(12 intermediate revisions by one other user not shown)
Line 1:
--Nevada[==[
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"]`.
]==]
 
-- Nevada
local NV = {}
 
local util = require("Module:Road data/util")
NV.BL = {shield = "Business Loop %route%.svg",
util.addAll(NV, require("Module:Road data/strings/USA"))
link = "Interstate %route% Business ([dab||%dab%, |]Nevada)",
abbr = "I&#8209;%route% Bus.",
width = "expand"}
 
local suffix = " ([dab||%dab%, |]Nevada)"
NV.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Nevada)",
abbr = "I&#8209;%route%",
width = "expand"}
 
NV.I.link = {
NV.US = {shield = "US %route%.svg",
["11"] = "Interstate 11",
link = "U.S. Route %route% in Nevada",
["215"] = "Las Vegas Beltway",
abbr = "US&nbsp;%route%",
["515"] = "Interstate 515",
width = "expand"}
default = {
hook = "split",
split = 100,
above = "Interstate %route% (Nevada)",
below = "Interstate %route% in Nevada"
}
}
 
for k, v in pairs(NV) do if k:find ("^I") then
NV["US-Alt"] = {shield = NV.US.shield,
v.link = NV.I.link
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Nevada)",
end
abbr = "US&nbsp;%route% Alt.",
end
banner = "Alt plate.svg",
width = "expand"}
 
NV.BL.link = NV.I.base .. " Business" .. suffix
NV["US-Bus"] = {shield = NV.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Nevada)",
abbr = "US&nbsp;%route% Bus.",
banner = "Business plate.svg",
width = "expand"}
 
for k, v in pairs(NV) do if k:find ("^B%a") then
NV["US-Truck"] = {shield = NV.US.shield,
v.link = NV.BL.link
link = "U.S. Route %route% Truck ([dab||%dab%, |]Nevada)",
end
abbr = "US&nbsp;%route% Truck",
end
banner = "Truck plate.svg",
width = "expand"}
 
NV.SR = {shieldUS.link = "NevadaU.S. Route %route%.svg in Nevada",
link = "Nevada State Route %route% [dab||(%dab%)|]",
abbr = "SR&nbsp;%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&nbsp;%route%"}
end
end
 
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&nbsp;%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&nbsp;%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