--[==[
--Louisiana
To inspect the content of this data module, use [[Special:ExpandTemplates]]
local LA = {}
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
LA.I = {shield = "I-%route%.svg",
into the Debug console:
link = "Interstate %route% ([dab||%dab%, |]Louisiana)",
local util = require("Module:Road data/util")
abbr = "I-%route%",
print(util.arrayToString(p))
width = "expand"}
To inspect a particular route type, change `p` above to include the route type,
e.g., `p.I` and `p["US-Hist"]`.
]==]
-- Louisiana
LA.BL = {shield = "Business Loop %route%.svg",
local LA = {}
link = "Interstate %route% Business ([dab||%dab%, |]Louisiana)",
abbr = "I-%route% Bus.",
width = "expand"}
local util = require("Module:Road data/util")
LA.US = {shield = "US %route%.svg",
local format = mw.ustring.format
link = "U.S. Route %route% in Louisiana",
util.addAll(LA, require("Module:Road data/strings/USA"))
abbr = "US %route%",
width = "expand"}
LA["US 1926"] = {shield = "US %route% Louisiana 1926.svg",
link = LA.US.link,
abbr = LA.US.abbr,
width = "US1926"}
local suffix = " ([dab||%dab%, |]Louisiana)"
LA["US 1948"] = {shield = "US %route% (1948).svg",
link = LA.US.link,
abbr = LA.US.abbr}
LA["US 1961"] = {shield.I.link = "USInterstate %route% (1961[dab||%dab%, |]Louisiana).svg",
link = LA.US.link,
abbr = LA.US.abbr}
LA["US-Alt"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Louisiana)",
abbr = "US %route% Alt.",
banner = "Alternate plate.svg",
width = "expand"}
for k, v in pairs(LA) do if k:find ("^I") then
LA["US-Bus"] = {shield = "US %route%.svg",
v.link = LA.I.link
link = "U.S. Route %route% Business ([dab||%dab%, |]Louisiana)",
end
abbr = "US %route% Bus.",
end
banner = "Business plate.svg",
width = "expand"}
LA.BL.link = "Interstate %route% Business ([dab||%dab%, |]Louisiana)"
LA["US-Byp"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Bypass ([dab||%dab%, |]Louisiana)",
abbr = "US %route% Byp.",
banner = "By-pass plate.svg",
width = "expand"}
for k, v in pairs(LA) do if k:find ("^B%a") then
LA["US-Hist"] = {shield = "US %route% (LA historic).svg",
v.link = LA.BL.link
link = "U.S. Route %route% in Louisiana",
end
abbr = "Historic US %route%[dab|| (%dab%)|]",
end
width = 16}
LA[".US-Spur"].name = {shield"U.S. = "USHighway %route%.svg",
LA.US.link = "U.S. Route %route% Spur ([dab||%dab%,in |]Louisiana)",
abbr = "US %route% Spur",
banner = "Spur plate.svg",
width = "expand"}
for k, v in pairs(LA) do if k:find ("^US %d") then
LA["US-Truck"] = {shield = "US %route%.svg",
v.name = LA.US.name
link = "U.S. Route %route% Truck ([dab||%dab%, |]Louisiana)",
v.link = LA.US.link
abbr = "US %route% Truck",
end
banner = "Truck plate.svg",
end
width = "expand"}
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
LA.LA = {shield = "Louisiana %route% (2008).svg",
local spec = LA[" aux "][auxType]
link = "Louisiana Highway %route%",
for k, v in pairs(LA) do if k:find (auxType) then if k:find ("^US") then
abbr = "LA %route%"}
v.name = LA.US.name .. " " .. spec.name
v.link = LA.US.base .. " " .. spec.name .. " ([dab||%dab%, |]Louisiana)"
end
end
end
end
for _,type in ipairs({'US 1926', 'US 1948', 'US 1961'}) do
LA["LA-Alt"] = {shield = LA.LA.shield,
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Spur", "Truck"}) do
link = "Louisiana Highway %route% Alternate[dab|| (%dab%)|]",
local spec = LA[" aux "][auxType]
abbr = "LA %route% Alt.",
LA[type .. "-" .. auxType] = {
banner = "Alt plate.svg"}
shield = LA[type].shield,
shieldmain = LA[type].shieldmain,
name = LA[type].name .. " " .. spec.name,
link = LA[type].base .. " " .. spec.name .. suffix,
abbr = LA[type].abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate.svg",
aux = spec.aux,
width = "expand",
}
end
end
LA[".LA-Bus"] = {shield = LA.LA.shield,
link base = "Louisiana Highway %route% Business[dab|| (%dab%)|]",
abbr shield = "LA Louisiana %route% Bus (2008).svg",
name = "Louisiana Highway %route%",
banner = "Business plate.svg"}
link = "Louisiana Highway %route%",
abbr = "LA %route%"
}
for _,year in ipairs({"1955", "1990"}) do
LA["LA-Byp"] = {shield = LA.LA.shield,
LA["LA " .. year] = {
link = "Louisiana Highway %route% Bypass[dab|| (%dab%)|]",
shield = format("Louisiana %%route%% (%s).svg", year),
abbr = "LA %route% Byp.",
base = LA.LA.base,
banner = "By-pass plate.svg"}
name = LA.LA.name,
link = LA.LA.link,
abbr = LA.LA.abbr,
bannersuffix = "green",
}
end
LA["LA 1990"].shield = "Louisiana %route%.svg"
LA["LA-Spur 1924"] = {shield = LA.LA.shield,
link shield = "Louisiana Highway %route% Spur[dab|| (%dab%1924)|].svg",
name = "State Route %route%",
abbr = "LA %route% Spur",
link = "Louisiana State Route %route%",
banner = "Spur plate.svg"}
abbr = "SR %route%"
}
LA["LA-Truck"] = {shield = LA.LA.shield,
link = "Louisiana Highway %route% Truck[dab|| (%dab%)|]",
abbr = "LA %route% Truck",
banner = "Truck plate.svg"}
LA["LA 1924"] = {shield = "Louisiana %route% (1924).svg",
link = "Louisiana State Route %route%",
abbr = "SR %route%"}
LA.SR = LA["LA 1924"]
for _,type in ipairs({'LA', 'LA 1955'}) do
LA["LA 1955"] = {shield = "Louisiana %route% (1955).svg",
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Spur", "Truck"}) do
link = "Louisiana Highway %route%",
local spec = LA[" aux "][auxType]
abbr = "LA %route%",
LA[type .. "-" .. auxType] = {
bannersuffix = "green"}
shield = LA[type].shield,
name = LA[type].name .. " " .. spec.name,
LA["LA 1990"] = {shield = "Louisiana %route%.svg",
link = LA[type].base .. " " .. spec.name .. LA[" dab "],
link = "Louisiana Highway %route%",
abbr = LA[type].abbr .. " " .. spec.abbrsuffix,
abbr = "LA %route%",
banner = spec.bannerprefix .. " plate.svg",
bannersuffix = "green"}
aux = spec.aux,
width = "expand",
LA.PR = {shield = "CR %route% jct.svg",
}
link = "Parish Road %route% (%county% Parish, Louisiana)", --had an ifexist that didn't create link if article didn't exist
end
abbr = "PR %route%",
end
bannersuffix = "county"}
LA.CR = LA.PR
LA.Jackson = {shield = "Jackson Highway marker.svg",
link = "Jackson Highway",
abbr = "Jackson Highway",
width = 12}
LA.Jefferson = {shield = "Jefferson Highway marker.svg",
link = "Jefferson Highway",
abbr = "Jefferson Highway",
width = 12}
for _,type in ipairs({'LA 1990'}) do
LA["Jefferson Davis"] = {shield = "Jefferson Davis Highway marker.svg",
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Spur", "Truck"}) do
link = "Jefferson Davis Highway",
local spec = LA[" aux "][auxType]
abbr = "Jefferson Davis Highway",
LA[type .. "-" .. auxType] = {
width = 12}
shield = LA[type].shield,
name = LA[type].name .. " " .. spec.name,
link = LA[type].base .. " " .. spec.name .. LA[" dab "],
abbr = LA[type].abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate green.svg",
aux = spec.aux,
width = "square",
}
end
end
for k, v in pairs(LA) do if k:find ("^LA %d") then
LA.Spanish = {shield = "Old Spanish Trail.svg",
v.width = "square"
link = "Old Spanish Trail (auto trail)",
end
abbr = "Old Spanish Trail",
end
width = 12}
for k, v in pairs(LA) do if k:find ("^LA 1990") then
LA["US 1926-Alt"] = {shield = LA["US 1926"].shield,
v.bannersuffix = "green"
link = LA["US-Alt"].link,
end
abbr = LA["US-Alt"].abbr,
end
banner = LA["US-Alt"].banner,
width = 'US1926'}
LA["US 1926-Bus"] = {shield = LA["US 1926"].shield,
link = LA["US-Bus"].link,
abbr = LA["US-Bus"].abbr,
banner = "Business plate old.svg",
width = 'US1926'}
LA["US 1926-Byp"] = {shield = LA["US 1926"].shield,
link = LA["US-Byp"].link,
abbr = LA["US-Byp"].abbr,
banner = LA["US-Byp"].banner,
width = 'US1926'}
LA["US 1926-Spur"] = {shield = LA["US 1926"].shield,
link = LA["US-Spur"].link,
abbr = LA["US-Spur"].abbr,
banner = LA["US-Spur"].banner,
width = 'US1926'}
LA["US 1926-Truck"] = {shield = LA["US 1926"].shield,
link = LA["US-Truck"].link,
abbr = LA["US-Truck"].abbr,
banner = LA["US-Truck"].banner,
width = 'US1926'}
LA.Airline = {
LA["US 1948-Alt"] = {shield = LA["US 1948"].shield,
shield = {"US 61.svg", "US 190.svg"},
link = LA["US-Alt"].link,
name = "Airline Highway",
abbr = LA["US-Alt"].abbr,
link = "Airline Highway",
banner = LA["US-Alt"].banner}
abbr = "Airline Highway"
}
LA["US 1948-Bus"] = {shield = LA["US 1948"].shield,
link = LA["US-Bus"].link,
abbr = LA["US-Bus"].abbr,
banner = LA["US-Bus"].banner}
LA["US 1948-Byp"] = {shield = LA["US 1948"].shield,
link = LA["US-Byp"].link,
abbr = LA["US-Byp"].abbr,
banner = LA["US-Byp"].banner}
LA["US 1948-Spur"] = {shield = LA["US 1948"].shield,
link = LA["US-Spur"].link,
abbr = LA["US-Spur"].abbr,
banner = LA["US-Spur"].banner}
-- add new types above this line if you want it to have the state maint
for k, v in pairs(LA) do if k:find ("^%a") then
LA["US 1948-Truck"] = {shield = LA["US 1948"].shield,
v.maint = "[[Louisiana Department of Transportation and Development|Louisiana DOTD]]"
link = LA["US-Truck"].link,
end
abbr = LA["US-Truck"].abbr,
end
banner = LA["US-Truck"].banner}
-- CR is defined by Module:Road data/strings/USA
LA["US 1961-Alt"] = {shield = LA["US 1961"].shield,
LA.CR.name = "Parish Road %route%"
link = LA["US-Alt"].link,
LA.CR.shieldmain = "[parish||%parish%|%county%] Parish %route%.svg"
abbr = LA["US-Alt"].abbr,
LA.CR.link = "Parish Road %route% ([parish||%parish%|%county%] Parish, Louisiana)"
banner = LA["US-Alt"].banner}
LA.CR.abbr = "PR %route%"
LA.CR.maint = ""
LA["US 1961-Bus"] = {shield = LA["US 1961"].shield,
link = LA["US-Bus"].link,
abbr = LA["US-Bus"].abbr,
banner = LA["US-Bus"].banner}
LA["US 1961-Byp"] = {shield = LA["US 1961"].shield,
link = LA["US-Byp"].link,
abbr = LA["US-Byp"].abbr,
banner = LA["US-Byp"].banner}
LA["US 1961-Spur"] = {shield = LA["US 1961"].shield,
link = LA["US-Spur"].link,
abbr = LA["US-Spur"].abbr,
banner = LA["US-Spur"].banner}
LA["US 1961-Truck"] = {shield = LA["US 1961"].shield,
link = LA["US-Truck"].link,
abbr = LA["US-Truck"].abbr,
banner = LA["US-Truck"].banner}
LA.PR = LA.CR
LA["LA 1955-Spur"] = {shield = LA["LA 1955"].shield,
link = LA["LA-Spur"].link,
abbr = LA["LA-Spur"].abbr,
banner = "Spur plate green.svg"}
return LA
|