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

Content deleted Content added
m Changed protection level of Module:Road data/strings/USA/NV: Adjust per request, highly visible template. ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite))
Fix banner for CC
 
(13 intermediate revisions by 2 users 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.",
local suffix = " ([dab||%dab%, |]Nevada)"
width = "expand"}
 
NV.I.link = {
["11"] = "Interstate 11",
["215"] = "Las Vegas Beltway",
["515"] = "Interstate 515",
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
v.link = NV.I.link
end
end
 
NV.BL.link = NV.I.base .. " Business" .. suffix
 
for k, v in pairs(NV) do if k:find ("^B%a") then
v.link = NV.BL.link
end
end
 
NV.US.link = "U.S. Route %route% in Nevada"
 
for k, v in pairs(NV) do if k:find ("^US %d") then
v.name = NV.US.name
v.link = NV.US.link
end
end
 
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
NV.I = {shield = "I-%route%.svg",
local spec = NV[" aux "][auxType]
link = "Interstate %route% (Nevada)",
for k, v in pairs(NV) do if k:find (auxType) then if k:find ("^US") then
abbr = "I&#8209;%route%",
v.banner = spec.banneralt .. " plate.svg"
width = "expand"}
v.link = NV.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Nevada)"
end
end
end
end
 
NV.USSR = {
shield = "USNevada %route%.svg",
link name = "U.S.State Route %route% in Nevada",
link = "Nevada State Route %route% [dab||(%dab%)|]",
abbr = "US&nbsp;%route%",
abbr = "SR&nbsp;%route%"
width = "expand"}
}
NV.NV = NV.SR
 
NV.BLSR = {
NV["US-Alt"] = {shield = NV.US.shield,
shieldmain = {"Business Loop 80.svg", "Nevada %route%.svg"},
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Nevada)",
name = NV.SR.name,
abbr = "US&nbsp;%route% Alt.",
link = "",
banner = "Alt plate.svg",
abbr = NV.SR.abbr,
width = "expand"}
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
NV["US-Bus"] = {shield = NV.US.shield,
for k, v in pairs(NV) do if k:find ("^%a") then
link = "U.S. Route %route% Business ([dab||%dab%, |]Nevada)",
v.maint = "[[Nevada Department of Transportation|NDOT]]"
abbr = "US&nbsp;%route% Bus.",
v.browse = "Highways in Nevada"
banner = "Business plate.svg",
v.browselinks = {
width = "expand"}
[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 = {
NV.NV = {shield = "Nevada %route%.svg",
link shield = "NevadaClark StateCounty Route %route% [dab||(%dab%)|]NV.svg",
name = "Clark County abbr = "SR&nbsp;%route%"},
link = "Clark County %route% [dab||(%dab%)|]",
abbr = "CC&nbsp;%route%",
bannersuffix = "county"
}
NV.CR.link = "County Route %route% ([county||%county% County, |]Nevada)"
 
NV.CC = {shield = "Clark County Route %route% NV.svg",
link = "Clark County %route% [dab||(%dab%)|]",
abbr = "CC&nbsp;%route%"}
 
-- For linking internally on 'List of state routes in Nevada less than one mile'
NV.SR = NV.NV
NV.SR2 = {
shield = NV.SR.shield,
link = "#State Route %route%",
abbr = NV.SR.abbr
}
 
return NV