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

Content deleted Content added
add type
m Fixing layout errors
 
(6 intermediate revisions by one other user not shown)
Line 20:
 
local suffix = " ([dab||%dab%, |]Louisiana)"
local maint = "[[Louisiana Department of Transportation|Louisiana DOT]]"
 
LA.I.link = "Interstate %route% ([dab||%dab%, |]Louisiana)"
 
for k, v in pairs(LA) do if k:find ("^I") then
v.link = LA.USI.link,
end
end
 
LA.BL.link = "Interstate %route% Business ([dab||%dab%, |]Louisiana)"
 
for k, v in pairs(LA) do if k:find ("^B%a") then
v.link = LA.BL.link
end
end
 
LA.US.name = "U.S. Highway %route%"
LA.US.link = "U.S. Route %route% in Louisiana"
 
for _k,year v in ipairspairs({"1926",LA) do if k:find ("1948",^US %d"1961"}) dothen
v.name = LA.US.name,
LA["US " .. year] = {
base v.link = LA.US.base,link
shield = format("US %%route%% (%s).svg", year),
end
shieldmain = format("US %%route%% Louisiana %s.svg", year),
base = LA.US.base,
name = LA.US.name,
link = LA.US.link,
abbr = LA.US.abbr,
width = "square",
}
end
 
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
LA["US 1961"].shieldmain = "US %route% (1961).svg"
local spec = LA[" aux "][auxType]
 
for k, v in pairs(LA) do if k:find (auxType) then if k:find ("^US") then
LA["US-Hist"].shield = "US %route% (LA historic).svg"
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', 'US 1926', 'US 1948', 'US 1961'}) do
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Spur", "Truck"}) do
local spec = LA[" aux "][auxType]
Line 76 ⟶ 85:
link = LA.LA.link,
abbr = LA.LA.abbr,
width = "square",
bannersuffix = "green",
}
Line 82 ⟶ 90:
LA["LA 1990"].shield = "Louisiana %route%.svg"
 
LA["LA 1924"] = {
shield = "Louisiana %route% (1924).svg",
name = "State Route %route%",
link = "Louisiana State Route %route%",
abbr = "SR %route%"}
}
LA.SR = LA["LA 1924"]
 
for _,type in ipairs({'LA', 'LA 1955', 'LA 1990'}) do
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Spur", "Truck"}) do
local spec = LA[" aux "][auxType]
Line 104 ⟶ 113:
end
 
for _,type in ipairs({'LA 1990'}) do
-- CR is defined by Module:Road data/strings/USA
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Spur", "Truck"}) do
LA.CR.name = "Parish Road %route%"
local spec = LA[" aux "][auxType]
LA.CR.shieldmain = "%county% Parish %route%.svg"
LA["UStype .. "-" .. yearauxType] = {
LA.CR.link = "Parish Road %route% (%county% Parish, Louisiana)" --had an ifexist that didn't create link if article didn't exist
shield = LA[type].shield,
LA.CR.abbr = "PR %route%"
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 = LA.CR
v.width = "square",
end
end
 
for k, v in pairs(LA) do if k:find ("^LA 1990") then
v.bannersuffix = "green"
end
end
 
LA.Airline = {
Line 118 ⟶ 144:
abbr = "Airline Highway"
}
 
-- 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
local v.maint = "[[Louisiana Department of Transportation and Development|Louisiana DOTDOTD]]"
end
end
 
-- CR is defined by Module:Road data/strings/USA
LA.CR.name = "Parish Road %route%"
LA.CR.shieldmain = "[parish||%parish%|%county%] Parish %route%.svg"
LA.CR.link = "Parish Road %route% ([parish||%parish%|%county%] Parish, Louisiana)" --had an ifexist that didn't create link if article didn't exist
LA.CR.abbr = "PR %route%"
LA.CR.maint = ""
 
LA.PR = LA.CR
 
return LA