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

Content deleted Content added
not going to work
update module
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)",
Line 36 ⟶ 34:
}
 
for k, v in pairs(NC) do if k:find ("^I") then
v.link = NC.I.link
end
end
NC["I-Future"].shield = "I-%route%.svg"
NC["I-Future"].link = NC.I.link
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 ⟶ 66:
}
 
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,
width = "square",
}
 
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
NC.NC = {
local spec = NC[" aux "][auxType]
base = "North Carolina Highway %route%",
for k, v in pairs(NC) do if k:find (auxType) then if k:find ("^US") then
shield = "NC %route%.svg",
v.name = NC.US.name .. " " .. spec.name
shieldmain = {
v.link = NC.US.base .. " " .. spec.name .. " ([dab||%dab%, |]North Carolina)"
["106"] = {"Georgia 246.svg", "NC %route%.svg"},
end
default = "NC %route%.svg",
end
},
end
name = {
end
default = "North Carolina Highway %route%",
 
["106"] = "Georgia State Route 246 and<br>North Carolina Highway %route%"
NC["US-Toll-Byp"] = {
},
shield = NC.US.shield,
link = "North Carolina Highway %route% [dab||(%dab%)|]",
abbrname = "NC&nbsp;%route%["US-Byp"].name,
widthlink = NC["squareUS-Byp"].link,
abbr = NC["US-Byp"].abbr,
banner = "By-pass plate white and toll plate yellow.svg",
width = "expand",
aux = NC[" aux "].Byp
}
 
NC["NC 1921US-Bus-Truck"] = {
shield = "NC %route% 1945.svg"US.shield,
name = NC["US-Bus"].NCname .base. " Truck",
link = NC.NC["US-Bus"].link,
abbr = NC.NC["US-Bus"].abbr.. " Truck",
banner = "Truck business plate.svg",
width = "expand",
aux = NC[" aux "].Truck
}
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 _,year in ipairs({'1926', '1948', '1961'}) do
 
 
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 type = "US " .. year
local spec = NC[" aux "][auxType]
NC[type .. "-" .. auxType] = {
Line 120:
link = NC[type].base .. " " .. spec.name .. suffix,
abbr = NC[type].abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate " .. year .. ".svg",
aux = spec.aux,
width = NC[type].width"square",
nbrowse = NC.US.nbrowse,
nbrowselinks = NC.US.nbrowselinks
}
end
end
 
for _,type in ipairs({'US 1950'}) do
NC["US-Toll"].banner = "Toll plate yellow.svg"
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.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["US-Toll-Byp"].NC = {
base = "North Carolina Highway %route%",
shield = NC.US.shield,
nameshield = "NC.US.name %route%.. " Bypasssvg",
shieldmain = {
link = NC["US-Byp"].link,
["106"] = {"Georgia 246.svg", "NC %route%.svg"},
abbr = NC["US-Byp"].abbr,
default = "NC %route%.svg",
banner = "By-pass plate white and toll plate yellow.svg",
},
width = "expand"
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
NC["US-Bus-Truck"] = {
for _,year in ipairs({"1921", "1957"}) do
shield = NC.US.shield,
name = NC["US-BusNC "].name .. "year] Truck",= {
shield = format("North Carolina %%route%% %s.svg", year),
link = NC["US-Bus"].link,
abbr name = NC["US-Bus"].abbrNC.. " Truck"base,
name = NC.NC.name,
banner = "Truck business plate.svg",
link = NC.NC.link,
width = "expand"
abbr = NC.NC.abbr,
}
width = "square"
}
end
end
NC["NC 1945"] = NC["NC 1921"]
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 162 ⟶ 193:
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 197 ⟶ 208:
 
NC.SR = { abbr = "SR&nbsp;%route%"}
 
NC.Sec = NC.SR
 
-- 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]]"
v.browse = "[[North Carolina Highway System]]"
v.browselinks = {
[1] = "[[List of Interstate Highways in North Carolina|Interstate]]",
[2] = "[[List of U.S. Highways in North Carolina|US]]",
[3] = "[[List of state highways in North Carolina|State]]",
[4] = "[[North Carolina Scenic Byways|Scenic]]"
}
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