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

Content deleted Content added
m add
+INC type
 
(8 intermediate revisions by 2 users not shown)
Line 20:
local suffix = " [dab||(%dab%, North Carolina)|]"
local suffix2 = " [dab||(%dab%)|]"
local maint = "[[North Carolina Department of Transportation|NCDOT]]"
 
NC.I.shieldmain = "I-%route%.svg"
NC.I.link = {
["87"] = "Interstate 87 (North Carolina)",
["485"] = "Interstate 485",
["540"] = "Interstate 540 and (North Carolina Highway 540)",
["785"] = "Interstate 785",
default = {
Line 36 ⟶ 34:
}
 
for k, v in pairs(NC) do if k:find ("^I") then
NC["I-Future"].shield = "I-%route%.svg"
NC["I-Future"] v.link = NC.I.link
end
end
NC["Future"].shield = "I-%route%.svg"
NC["I-Future"].shield = NC["Future"].shield
NC["Future"].shieldmain = NC["Future"].shield
NC["I-Future"].shieldmain = NC["Future"].shield
NC["I-Future"].banner = "Future plate blue.svg"
 
NC.Future = NC["I-Future"]
 
NC.BL.link = "Interstate %route% Business ([dab||%dab%, |]North Carolina)"
 
for k, v in pairs(NC) do if k:find ("^BL") then
v.link = NC.BL.link
end
end
 
NC.US.name = "U.S. Highway %route%"
Line 62 ⟶ 69:
}
 
for _k,year v in ipairspairs({"1926",NC) "1948",do if k:find ("1950",^US %d"1961"}) dothen
v.name = NC.US.name
NC["US " .. year] = {
v.link = NC.US.link
shield = format("US %%route%% (%s).svg", year),
end
shieldmain = format("US %%route%% North Carolina %s.svg", year),
base = NC.US.base,
name = NC.US.name,
link = NC.US.link,
abbr = NC.US.abbr,
width = "square",
}
end
 
NC["US 1950"]. = {
shield = "US %route% North Carolina 1950.svg",
name = NC.US.name,
NC["US 1961"].shieldmain = "US %route% (1961).svg"
link = NC.US.link,
 
abbr = NC.US.abbr,
NC.NC = {
width = "square",
base = "North Carolina Highway %route%",
shield = "NC %route%.svg",
shieldmain = {
["106"] = {"Georgia 246.svg", "NC %route%.svg"},
default = "NC %route%.svg",
},
name = {
default = "North Carolina Highway %route%",
["106"] = "Georgia State Route 246 and<br>North Carolina Highway %route%"
},
link = "North Carolina Highway %route% [dab||(%dab%)|]",
abbr = "NC&nbsp;%route%",
width = "square"
}
 
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
NC["NC 1921"] = {
local spec = NC[" aux "][auxType]
shield = "NC %route% 1945.svg",
for k, v in pairs(NC) do if k:find (auxType) then if k:find ("^US") then
name = NC.NC.base,
v.name = NC.US.name .. " " .. spec.name
link = NC.NC.link,
v.link = NC.US.base .. " " .. spec.name .. " ([dab||%dab%, |]North Carolina)"
abbr = NC.NC.abbr
end
}
end
NC["NC 1945"] = NC["NC 1921"]
NC["NC 1949"] = {
shield = "NC %route% 1957.svg",
name = NC.NC.base,
link = NC.NC.link,
abbr = NC.NC.abbr
}
NC["NC 1957"] = NC["NC 1949"]
 
 
 
for _,type in ipairs({'US', 'US 1926', 'US 1948', 'US 1950', 'US 1961'}) do
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
local spec = NC[" aux "][auxType]
NC[type .. "-" .. auxType] = {
shield = NC[type].shield,
shieldmain = NC[type].shieldmain,
name = NC[type].name .. " " .. spec.name,
link = NC[type].base .. " " .. spec.name .. suffix,
abbr = NC[type].abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate.svg",
aux = spec.aux,
width = NC[type].width
}
end
end
 
NC["US-Toll"].banner = "Toll plate yellow.svg"
 
NC["US-Toll-Byp"] = {
shield = NC.US.shield,
name = NC.["US-Byp"].name .. " Bypass",
link = NC["US-Byp"].link,
abbr = NC["US-Byp"].abbr,
banner = "By-pass plate white and toll plate yellow.svg",
width = "expand",
aux = NC[" aux "].Byp
}
 
Line 144 ⟶ 109:
abbr = NC["US-Bus"].abbr.. " Truck",
banner = "Truck business plate.svg",
width = "expand",
aux = NC[" aux "].Truck
}
 
for _,year in ipairs({'1926', '1948', '1961'}) do
NC["US-Alt2"] = {
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
shield = {"US %route%.svg", "US %route%A.svg"},
name local type = NC["US-Alt "] .name,. year
link local spec = NC["US-Alt aux "].link,[auxType]
NC[type .. "-" .. auxType] = {
abbr = NC["US-Alt"].abbr,
shield = NC[type].shield,
banner = {"Alt plate.svg", "No image wide.svg"},
shieldmain = NC[type].shieldmain,
width = "expand"
name = NC[type].name .. " " .. spec.name,
}
link = NC[type].base .. " " .. spec.name .. suffix,
abbr = NC[type].abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate " .. year .. ".svg",
aux = spec.aux,
width = "square",
nbrowse = NC.US.nbrowse,
nbrowselinks = NC.US.nbrowselinks
}
end
end
 
for _,type in ipairs({'US 1950'}) do
NC["US 1950-Alt2"] = {
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
shield = {"US %route% South Carolina 1948.svg", "US %route%A North Carolina 1950.svg"},
name local spec = NC["US-Alt aux "].name,[auxType]
NC[type .. "-" .. auxType] = {
link = NC["US-Alt"].link,
abbr shield = NC["US-Alt"type].abbrshield,
shieldmain = NC[type].shieldmain,
banner = {"Alt plate 1948.svg", "No image wide.svg"},
name = NC[type].name .. " " .. spec.name,
width = "expand"
link = NC.US.base .. " " .. spec.name .. suffix,
abbr = NC[type].abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate 1948.svg",
aux = spec.aux,
width = "square",
nbrowse = NC.US.nbrowse,
nbrowselinks = NC.US.nbrowselinks
}
end
end
 
NC.NC = {
base = "North Carolina Highway %route%",
shield = "NC %route%.svg",
shieldmain = {
["106"] = {"Georgia 246.svg", "NC %route%.svg"},
default = "NC %route%.svg",
},
name = {
default = "North Carolina Highway %route%",
["106"] = "Georgia State Route 246 and<br>North Carolina Highway %route%"
},
link = "North Carolina Highway %route% [dab||(%dab%)|]",
abbr = "NC&nbsp;%route%",
width = "square"
}
 
for _,type in ipairs({"NC"}) do
for _,year in ipairs({"1945", "1957"}) do
NC["NC " .. year] = {
shield = format("NC %%route%% %s.svg", year),
name = NC.NC.base,
name = NC.NC.name,
link = NC.NC.link,
abbr = NC.NC.abbr,
width = "square"
}
end
end
NC["NC 1921"] = NC["NC 1945"]
NC["NC 1949"] = NC["NC 1957"]
 
for _,type in ipairs({'NC'}) do
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
local spec = NC[" aux "][auxType]
NC["NC-" .. auxType] = {
Line 180 ⟶ 196:
end
end
NC["NC-Toll"].banner = "Toll plate yellow.svg"
 
NC["NC-Toll"] = {
shield = NC.NC.shield,
name = NC.NC.base,
link = NC.NC.link,
abbr = NC.NC.abbr .. " Toll",
banner = "Toll plate yellow.svg"
}
 
NC.Charlotte = {
shield = "Charlotte Route %route% shield.svg",
name = "Charlotte Route %route%",
link = "Charlotte Route %route%",
abbr = "Charlotte Route&nbsp;%route%"
}
 
NC.BRP = {
shield = "Blue Ridge Parkway shield.png",
name = "Blue Ridge Parkway",
link = "Blue Ridge Parkway",
abbr = "Blue Ridge Parkway"}
 
NC.NCBR = {
Line 215 ⟶ 211:
 
NC.SR = { abbr = "SR&nbsp;%route%"}
 
NC.Sec = NC.SR
 
NC.INC = {
shield = {NC.I.shield, NC.NC.shield},
shieldmain = {NC.I.shieldmain, NC.NC.shield},
name = NC.I.name .. " and " .. NC.NC.name.default,
link = "Interstate %route% (North Carolina)",
abbr = "I-%route% / NC &route%",
bannersuffix = {"blue", ""}
}
 
-- add new types above this line if you want it to have the state highway browse and maint
for k, v in pairs(NC) do if k:find ("^%a") then
v.maint = "[[North Carolina Department of Transportation|NCDOT]]"
end
end
 
NC.Charlotte = {
shield = "Charlotte Route %route% shield.svg",
name = "Charlotte Route %route%",
link = "Charlotte Route %route%",
abbr = "Charlotte Route&nbsp;%route%"
}
 
return NC