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

Content deleted Content added
Splitting Louisiana
 
m Fixing layout errors
 
(31 intermediate revisions by 9 users not shown)
Line 1:
--[==[
--Louisiana
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"]`.
]==]
 
-- Louisiana
local LA = {}
 
local util = require("Module:Road data/util")
LA.I = {shield = "I-%route%.svg",
local format = mw.ustring.format
link = "Interstate %route% (Louisiana)",
util.addAll(LA, require("Module:Road data/strings/USA"))
abbr = "I&#8209;%route%"}
 
local suffix = " ([dab||%dab%, |]Louisiana)"
 
LA.BL = {shieldI.link = "Business LoopInterstate %route%.svg" ([dab||%dab%, |]Louisiana)"
link = "Interstate %route% Business ([dab||%dab%, |]Louisiana)",
abbr = "I&#8209;%route% Bus"}
 
for k, v in pairs(LA) do if k:find ("^I") then
LA.US = {shield = "US %route%.svg",
v.link = LA.I.link
link = "U.S. Route %route& in Louisiana",
end
abbr = "US&nbsp;%route%"}
end
 
LA.BL.link = "Interstate %route% Business ([dab||%dab%, |]Louisiana)"
LA["US-Bus"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Business ([dab||%dab%, |]Louisiana)",
abbr = "US&nbsp;%route% Bus"}
 
for k, v in pairs(LA) do if k:find ("^B%a") then
LA["US-Byp"] = {shield = "US %route%.svg",
v.link = LA.BL.link
link = "U.S. Route %route% Bypass ([dab||%dab%, |]Louisiana)",
end
abbr = "US&nbsp;%route% Byp"}
end
 
LA.US.name = "U.S. Highway %route%"
LA.LA = {shield = "Louisiana %route%.svg", --will become Louisiana %route& (2008).svg eventually
LA.US.link = "LouisianaU.S. HighwayRoute %route% in Louisiana",
abbr = "LA&nbsp;%route%"}
 
for k, v in pairs(LA) do if k:find ("^US %d") then
LA["LA-Alt"] = {shield = LA.LA.shield,
v.name = LA.US.name
link = "Louisiana Highway %route% Alternate",
v.link = LA.US.link
abbr = "LA&nbsp;%route%&nbsp;Alt"}
end
end
 
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
LA["LA-Bus"] = {shield = LA.LA.shield,
local spec = LA[" aux "][auxType]
link = "Louisiana Highway %route% Business",
for k, v in pairs(LA) do if k:find (auxType) then if k:find ("^US") then
abbr = "LA&nbsp;%route%&nbsp;Bus"}
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-Byp"] = {shield = LA.LA.shield,
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Spur", "Truck"}) do
link = "Louisiana Highway %route% Bypass",
local spec = LA[" aux "][auxType]
abbr = "LA&nbsp;%route%&nbsp;Byp"}
LA[type .. "-" .. auxType] = {
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-Spur"] = {shield = LA.LA.shield,
link base = "Louisiana Highway %route% Spur",
abbr shield = "LA&nbsp;Louisiana %route%&nbsp;Spur (2008).svg"},
name = "Louisiana Highway %route%",
link = "Louisiana Highway %route%",
abbr = "LA&nbsp;%route%"
}
 
for _,year in ipairs({"1955", "1990"}) do
LA["LA-Truck"] = {shield = LA.LA.shield,
LA["LA " .. year] = {
link = "Louisiana Highway %route% Truck",
shield = format("Louisiana %%route%% (%s).svg", year),
abbr = "LA&nbsp;%route%&nbsp;Truck"}
base = LA.LA.base,
name = LA.LA.name,
link = LA.LA.link,
abbr = LA.LA.abbr,
bannersuffix = "green",
}
end
LA["LA 1990"].shield = "Louisiana %route%.svg"
 
LA["LA 1924"] = {
shield = "Louisiana %route% (1924).svg",
link name = "Louisiana State Route %route%",
link = "Louisiana State Route %route%",
abbr = "SR&nbsp;%route%"}
abbr = "SR&nbsp;%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 = "", --not sure of the nomenclature
local spec = LA[" aux "][auxType]
abbr = "LA&nbsp;%route%"}
LA[type .. "-" .. auxType] = {
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.svg",
aux = spec.aux,
width = "expand",
}
end
end
 
for _,type in ipairs({'LA 1990'}) do
LA["LA 1990"] = {shield = "Louisiana %route%.svg",
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Spur", "Truck"}) do
link = "Louisiana Highway %route%",
local spec = LA[" aux "][auxType]
abbr = "LA&nbsp;%route%"}
LA[type .. "-" .. auxType] = {
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.PR = {shield = "CR %route% jct.svg",
v.width = "square"
link = "Parish Road %route% (%county% Parish, Louisiana)", --had an ifexist that didn't create link if article didn't exist
end
abbr = "PR&nbsp;%route%"}
end
 
for k, v in pairs(LA) do if k:find ("^LA 1990") then
LA.CR = LA.PR
v.bannersuffix = "green"
end
end
 
LA.Airline = {
LA.Jackson = {shield = "Jackson Highway marker.svg",
shield = {"US 61.svg", "US 190.svg"},
link = "Jackson Highway",
name = "Airline Highway",
abbr = "Jackson Hwy"}
link = "Airline Highway",
abbr = "Airline Highway"
}
 
-- add new types above this line if you want it to have the state maint
LA.Jefferson = {shield = "Jefferson Highway marker.svg",
for k, v in pairs(LA) do if k:find ("^%a") then
link = "Jefferson Highway",
v.maint = "[[Louisiana Department of Transportation and Development|Louisiana DOTD]]"
abbr = "Jefferson Hwy"}
end
end
 
-- CR is defined by Module:Road data/strings/USA
LA["Jefferson Davis"] = {shield = "Jefferson Davis Highway marker.svg",
LA.CR.name = "Parish Road %route%"
link = "Jefferson Davis Highway",
LA.CR.shieldmain = "[parish||%parish%|%county%] Parish %route%.svg"
abbr = "Jefferson Davis Hwy"}
LA.CR.link = "Parish Road %route% ([parish||%parish%|%county%] Parish, Louisiana)"
LA.CR.abbr = "PR&nbsp;%route%"
LA.CR.maint = ""
 
LA.PR = LA.CR
LA.Spanish = {shield = "Old Spanish Trail.svg",
link = "Old Spanish Trail (auto trail)",
abbr = "Old Spanish Trail"}
 
return LA