Module:Road data/strings/USA/LA

MyWikiBiz, Author Your Legacy — Wednesday December 25, 2024
Jump to navigationJump to search

Documentation for this module may be created at Module:Road data/strings/USA/LA/doc

--[==[
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")
local format = mw.ustring.format
util.addAll(LA, require("Module:Road data/strings/USA"))

local suffix = " ([dab||%dab%, |]Louisiana)"
local maint = "[[Louisiana Department of Transportation|Louisiana DOT]]"

LA.I.link = "Interstate %route% ([dab||%dab%, |]Louisiana)"

LA.BL.link = "Interstate %route% Business ([dab||%dab%, |]Louisiana)"

LA.US.name = "U.S. Highway %route%"
LA.US.link = "U.S. Route %route% in Louisiana"
         
LA["US 1926"].shieldmain = "US %route% Louisiana 1926.svg"
LA["US 1926"].base = LA.US.base
LA["US 1926"].name = LA.US.name
LA["US 1926"].link = LA.US.link
LA["US 1948"].shieldmain = "US %route% Louisiana 1948.svg"
LA["US 1948"].base = LA.US.base
LA["US 1948"].name = LA.US.name
LA["US 1948"].link = LA.US.link
LA["US 1961"].base = LA.US.base
LA["US 1961"].name = LA.US.name
LA["US 1961"].link = LA.US.link
                 
LA["US-Hist"].shield = "US %route% (LA historic).svg"

LA.LA = {
	base = "Louisiana Highway %route%",
	shield = "Louisiana %route% (2008).svg",
	shieldmain = "Louisiana %route% (2008).svg",
	name = "Louisiana Highway %route%",
	link = "Louisiana Highway %route%",
	abbr = "LA&nbsp;%route%"}
         
for _,type in ipairs({'US', 'US 1926', 'US 1948', 'US 1961', 'LA'}) do
	for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
		local spec = LA[" aux "][auxType]
		LA[type .. "-" .. auxType] = {
			shield = LA[type].shield,
			shieldmain = LA[type].shieldmain,
			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

LA["LA-Alt"].link = "Louisiana Highway %route% Alternate[dab|| (%dab%)|]"
LA["LA-Bus"].link = "Louisiana Highway %route% Business[dab|| (%dab%)|]"
LA["LA-Byp"].link = "Louisiana Highway %route% Bypass[dab|| (%dab%)|]"
LA["LA-Spur"].link = "Louisiana Highway %route% Spur[dab|| (%dab%)|]"
LA["LA-Truck"].link = "Louisiana Highway %route% Truck[dab|| (%dab%)|]"

LA["LA 1924"] = {shield = "Louisiana %route% (1924).svg",
				 name = "State Route %route%",
                 link = "Louisiana State Route %route%",
                 abbr = "SR&nbsp;%route%"}
                 
LA.SR =  LA["LA 1924"]

LA["LA 1955"] = {shield = "Louisiana %route% (1955).svg",
				 name = LA.LA.name,
                 link = "Louisiana Highway %route%",
                 abbr = "LA&nbsp;%route%",
                 bannersuffix = "green"}

LA["LA 1990"] = {shield = "Louisiana %route%.svg",
				 name = LA.LA.name,
                 link = "Louisiana Highway %route%", 
                 abbr = "LA&nbsp;%route%",
                 bannersuffix = "green"}

LA["LA 1955-Spur"] = {shield = LA["LA 1955"].shield,
					 name = LA.LA.name .. " Spur",
                	link = LA["LA-Spur"].link,
                	abbr = LA["LA-Spur"].abbr,
                	banner = "Spur plate green.svg"}

-- CR is defined by Module:Road data/strings/USA
LA.CR.name = "Parish Road %route%"
LA.CR.shieldmain = "%county% Parish %route%.svg"
LA.CR.link = "Parish Road %route% (%county% Parish, Louisiana)" --had an ifexist that didn't create link if article didn't exist
LA.CR.abbr = "PR&nbsp;%route%"

LA.PR = LA.CR

return LA