Content deleted Content added
not going to work |
update module |
||
Line 20:
local suffix = " [dab||(%dab%, North Carolina)|]"
local suffix2 = " [dab||(%dab%)|]"
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"].banner = "Future plate blue.svg"
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
v.name = NC.US.name
v.link = NC.US.link
end
end
NC["US 1950"]
shield = "US %route% North Carolina 1950.svg", name = NC.US.name,
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
local spec = NC[" aux "][auxType]
for k, v in pairs(NC) do if k:find (auxType) then if k:find ("^US") then
v.name = NC.US.name .. " " .. spec.name
v.link = NC.US.base .. " " .. spec.name .. " ([dab||%dab%, |]North Carolina)"
end
end
end
end
NC["US-Toll-Byp"] = {
shield = NC.US.shield,
abbr = NC["US-Byp"].abbr,
banner = "By-pass plate white and toll plate yellow.svg",
width = "expand",
aux = NC[" aux "].Byp
}
NC["
shield =
name = NC["US-Bus"].
link = NC
abbr = NC
banner = "Truck business plate.svg",
width = "expand",
aux = NC[" aux "].Truck
}
for _,year in ipairs({'1926', '1948', '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 =
nbrowse = NC.US.nbrowse,
nbrowselinks = NC.US.nbrowselinks
}
end
end
for _,type in ipairs({'US 1950'}) 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.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
base = "North Carolina Highway %route%",
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 %route%",
width = "square"
}
for _,type in ipairs({"NC"}) do
for _,year in ipairs({"1921", "1957"}) do
shield = format("North Carolina %%route%% %s.svg", year),
name = NC.NC.name,
link = NC.NC.link,
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.NCBR = {
Line 197 ⟶ 208:
NC.SR = { abbr = "SR %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 %route%"
}
return NC
|