Module:Road data/strings
This module is used to store type data for use with several road templates, including {{jct}} and {{routelist row}}. Background information and a summary of the syntax are listed below.
Syntax
Hierarchy and fields
At its most basic level, this module is a nested table of strings. At the top is the root table, named for the abbreviation of a country, state, or province. This table stores the type data for a particular place, which is named in the comment in the first line, and is returned at the end of the module. The table is composed of further tables, one per type. The basic syntax for a type table is:
place.type = {
shield = "",
name = "",
link = "",
abbr = ""
}
The four main fields in a type table are shield
, name
, link
, and abbr
. Currently, these are the types used by all countries. By convention, they are always specified, using an empty string "",
if there is no value.
shield
determines the shield that is displayed, if anyname
specifies the name of the route displayed by an infoboxlink
specifies the target of a link generated, if anyabbr
determines the displayed abbreviation.
Other common fields in road data tables
shieldmain
is used when a different shield is desired at the top of an infobox, such as for county roads.
USA.CR = {
shield = "CR %route% jct.svg",
shieldmain = "[county||%county% |]County %route%.svg",
name = "County Road %route%",
link = "",
abbr = "CR %route%"
}
shieldlist
is used when a different shield is desired in lists that utilize the {{Routelist row}} series of templates.
base
can be used for aliasing different types that have a similar base structure, such as U.S. Highway special routes.
banner
stores the name of the special route plate, such asBusiness plate.svg
. Can be omitted when unused.width
stores a code representing the width of the shield. It is most often helpful when used withbanner
. Can be omitted entirely when unused; common values aresquare
andexpand
.
section
stores the specific section number for those routes that are defined by law.
translation
specifies the native language name of the route displayed by an infoboxlang
is the ISO 639-2 code of the native language; this code is used by {{Lang}} and Lang-xx templates.
PER.RN = {
shield = "PE-%route% route sign.svg",
name = "National Route %route%",
link = "Peru Highway %route%",
abbr = "PE-%route%",
translation = "Ruta nacional %route%",
lang = "es-pe"
}
Once a type is defined, it can be referenced later in the code. As seen here, it is common to define all parameters for main types like US
and then to use aliases for subtypes such as US-Alt
.
MO.US = {
shield = "US %route%.svg",
base = "U.S. Route %route%",
link = "U.S. Route %route% in Missouri",
abbr = "US %route%",
width = "expand"
}
MO["US-Alt"] = {
shield = MO.US.shield,
link = MO.US.base .. " Alternate ([dab||%dab%, |]Missouri)",
abbr = MO.US.abbr .. " Alt.",
banner = "Alternate plate.svg",
width = "expand"
}
Parser arguments
When the parser function of Module:Road data/parser is called, it is passed up to three parameters. The second one is the field to parse, and the last one is a rarely-used option designed for multiple-shield types. The first and most important parameter is a table of arguments collected by the calling module, which generally includes the state, country, or both; the type and number of the route; and a few miscellaneous arguments. This table of arguments forms the basis of the parser's format string syntax.
The table accessible by the strings includes the following entries by default:
state
: The state or province the route is located in.country
: The country the route is located in. If the country is not passed by the calling module, the parser will attempt to include it.
The above entries are primarily used to find the string module itself, so they should not be a concern for module writers.
type
: The type of the route. This determines the entry of the root table that is used by the parser.route
: The route "number". This is easily the most important argument for module writers.
The following entries are used less often:
county
: The county the route is located in. This is usually used for county routes in the United States.township
: This entry is similar in function and utility to thecounty
entry.dab
: A tag used to disambiguate the link target. This is mostly used for bannered routes in the United States.denom
: This rare entry is used exclusively for West Virginia county routes.
Parser hooks, which will be described later, can add entries to this table that may be used by strings.
Basic string syntax
The most basic value that can be used for most type table fields is a specially formatted string, which will be referred to in this documentation as a format string. This is the string that will ultimately be parsed and returned by the parser. A format string is an ordinary string object. The power of these strings comes in the form of two special instructions that are recognized by the parser.
The first is anything in %argument%
form. The parser will replace such a statement with the value of the argument
entry in the arguments table described earlier. This is what allows the route number to be spliced into a shield or link name.
The second special string is in the form of [arg|equals|then|else]
. This functions as a rudimentary if-then-else statement. The parser tests the value of arg
to see if it is equal to the value specified in equals
. equals
may be empty, in which case the parser tests the existence of the arg
argument. If the result of the test is true, the statement is replaced with the value of the then
block. Otherwise, it is replaced with the value of the else
block.
The two statements may be combined. The parser will parse the if-then-else statement first, and then perform the argument inclusion. This combination is commonly used with bannered routes in the United States, where the dab
argument is tested and the link disambiguation is adjusted accordingly, as follows:
AL["US-Bus"] = {
shield = "US %route%.svg",
link = "U.S. Route %route% Business ([dab||%dab%, |]Alabama)",
abbr = "US-%route% Bus.",
banner = "Business plate.svg",
width = "expand"
}
When parsing the link
field, the parser first checks to see if the dab
argument was provided. If so, it replaces the statement with %dab%,
. If not, the statement is replaced with the empty string placed in the else
block. Then, the parser replaces %route%
with the route number and, if the dab
argument was provided, %dab%
with the value of that argument.
Switching
Some logic is too complicated to represent with only format strings. This framework provides several methods to express complex data. All of these involve storing a nested table as the value of a field.
The most straightforward functionality provided by nested tables is switching. In its most basic form, the table consists of a series of key-value pairs, with the keys being route numbers and the values being the format strings used by those routes. Usually, the format string returned does not need parsing, but the option is there. A default
entry should be provided to handle any route numbers not explicitly stated. The following is a representative example of route-based switching (from Module:Road data/strings/USA/AR):
AR.AR = {
shield = {
default = "Arkansas %route%.svg",
["917"] = "Arkansas 917-1.svg",
["980"] = "Arkansas 980(Airport).svg"
},
link = "Arkansas Highway %route% [dab||(%dab%)|]",
abbr = "Hwy. %route%",
width = "expand"
}
In this example, Highways 917 and 980 have non-standard shield names, which are explicitly provided. Other route numbers use the default format.
Switching on other arguments is also allowed. The name of the argument to be used for switching is stated in the arg
field of the table. Nesting switches on different arguments is also allowed. A good example that uses both forms of switching can be found in Ontario:
local regionalShields = {
arg = "county",
["Essex"] = "Essex County Road %route%.png",
["York"] = "York Regional Road %route%.svg",
["Durham"] = "Durham Regional Road %route%.svg",
["Niagara"] = "Niagara Regional Road %route%.svg",
["Simcoe"] = {
["52"] = "Simcoe county road 52.png",
default = "Simcoe County Road %route%.JPG"
}
}
In this example, which is a shield table that is reused by several types in Ontario, the county
argument is used for the primary switch. If the route is in Simcoe County, a second switch is performed, this time on the route number.
Existence testing
Another use for tables is existence testing. If a table has the ifexists
field set to true
, the parser will perform existence testing on the result of parsing the default
field. If the test fails, the result of parsing the otherwise
field is returned. Existence testing may be chained by using a second ifexists table as the value of the first table's otherwise
field, and so on. Here's an example of nested existence testing (from Module:Road data/strings/GBR):
GBR.B = {
shield = {
ifexists = true,
default = "UK road B%route%.svg",
otherwise = {
ifexists = true,
default = "UK road B%route%.png"
}
},
link = "",
abbr = "B%route%"
}
Hooks
Due to technical limitations, these string modules cannot contain functions. Rather than force functionality into the string framework, the parser can call functions in a separate hooks module. The functions in this module, Module:Road data/parser/hooks, are more-or-less fully functional functions. The exact functionalities of these hooks are beyond the scope of this documentation. Descriptions of these hooks may be found on their documentation page.
Generally speaking, a hook is called by setting the hook
field in a table as equal to the name of a hook. Hooks receive two arguments, both tables: parameters
, which is the table in the definition; and args
, which is simply the table of arguments normally passed to the parser. The hook returns a string, which is then parsed as usual. A powerful feature of hooks is that they can add arbitrary values to the argument table, which may be referenced in the string returned by the hook. Generally, the format string returned by the hook is specified in some form by the default
field of the table, though there are exceptions. Here is an example of a hook (from Module:Road data/strings/MEX):
MEX.SH = {
shield = {
ifexists = true,
arg = "state",
SON = "HIGHWAYSON %route%.jpg",
NLE = "Nuevo Leon State Highway %route%.PNG",
default = ""
},
link = {
hook = "mask",
mask = "Road data/masks/MEX",
base = "state",
masked = "fullstate",
default = "%fullstate% State Highway %route%"
},
abbr = "SH %route%"
}
In this example, the parser will process the link by calling the mask
hook. In short, this hook takes the argument referenced in base
, passes it through the mask module specified in mask
, and stores it in the field in the arguments noted in masked
. The hook returns the string given in default
, which has access to the fullstate
argument added by the hook.
Other functionality
Functionality exists to display multiple shields for one route, which is used to display tolled and free shields for routes where they differ. This is done by supplying a table with two values, which are listed without indices. The parser is called twice by the calling module, and it returns one shield per call. An example may be found in Texas:
TX.Both = {
shield = {"Texas %route%.svg", "Toll Texas %route% new.svg"},
link = "Texas State Highway %route%",
abbr = "SH %route%",
width = 40
}
Structure
Each country has its own module. In the United States and Canada, each state/territory/province also has its own module. Each module begins with a comment stating the name of the country or state, followed by the root table declaration, as follows (from Module:Road data/strings/USA/AS):
-- American Samoa
local AS = {}
The root table is named based on the established abbreviation for the country or state, which is the same as the abbreviation used in the module title. This table stores the various types used in that particular place. Most of the remaining code in the module defines these various types. The module ends by returning the root table:
return AS
Aliasing
There are two ways to define a type as an alias. If the type is defined within the module, simply set the new type as equal to the type being aliased, as shown above (from Module:Road data/strings/HKG):
HKG.Route = {
shield = "HK Route%route%.svg",
link = "Route %route% (Hong Kong)",
abbr = "Route %route%"
}
HKG.route = HKG.Route
If the type is defined in a separate module, such as a state highway type being used in another state's module, a special syntax may be used to refer to that module (from Module:Road data/strings/USA/NJ):
NJ.NY = {alias = {module = "USA/NY", type = "NY"}}
This code sets the NY
type as a link to the NY
type in Module:Road data/strings/USA/NY. The parser will import that module and process the type as if the original module had declared it itself. The alias declaration may not add or override any data in the type table it points to.
Inheriting types
It is possible to predefine several types for a location by inheriting them from another module. In this example, the module for Albania inherits all of the specified types from the Europe module.
-- Albania
local ALB = {}
local util = require("Module:Road data/util")
util.addAll(ALB, require("Module:Road data/strings/EUR"))
Only one module may be inherited at this time.
Advanced uses
It is possible to create multiple types based on a specified pattern using ipairs
. In this example from Module:Road data/strings/USA/WA, the US 1926
, US 1948
, and US 1961
types are all created from the same code. At the bottom that is an override for US 1961
's shieldmain
.
for _,year in ipairs({"1926", "1948", "1961"}) do
WA["US " .. year] = {
shield = format("US %%route%% (%s).svg", year),
shieldmain = format("US %%route%% Washington %s.svg", year),
base = WA.US.base,
name = WA.US.name,
link = WA.US.link,
abbr = WA.US.abbr,
width = "square",
}
end
WA["US 1961"].shieldmain = "US %route% (1961).svg"
Similarly, subtypes can be created in the same manner. This example creates 9 subtypes each for WA
and SR
. The aux
is inherited from Module:Road data/strings/USA. That, in turn, modifies auxType
and spec
accordingly.
for _,type in ipairs({'WA', 'SR'}) do
for _,auxType in ipairs({"Alt", "Bus", "Byp", "Conn", "Opt", "Scenic", "Spur", "Temp", "Truck"}) do
local spec = WA[" aux "][auxType]
WA[type .. "-" .. auxType] = {
shield = WA[type].shield,
shieldmain = WA[type].shieldmain,
name = WA[type].name .. " " .. spec.name,
link = WA[type].link .. " " .. spec.name .. suffix,
abbr = WA[type].abbr .. " " .. spec.abbrsuffix,
banner = spec.bannerprefix .. " plate.svg",
aux = spec.aux,
width = WA[type].width
}
end
end
Style
There are a few style guidelines that should be followed:
- Align table fields using tabs. All tables should be aligned so that fields line up with each other, as shown in the above examples.
- Each table field should be on its own line.
- Add spaces to either side of an assignment operator (equals sign).
- Leave a blank line between types. Type aliases should be set off from their base type by a blank line, but no blank lines should be placed between the aliases themselves.
--[[
This data page controls the output that jct and infobox road produce when the given highway type is invoked.
Make sure to follow the syntax used by the other entries. This page is technically a Lua script. You're programming when you edit this. Congratulations!
Each state is allocated a Lua table with sub-tables that contain the shield file location, link, and abbreviation strings for each type.
%route% substitutes for the route number or other string passed as the route number (i.e. for {{jct|state=OK|Turnpike|Turner}}, %route% would insert "Turner").
Aliases are possible by setting a type as equal to another type (for an example, see the definition for OK.OK).
WARNING: DO NOT define an alias to another state's type unless the target state is defined BEFORE the alias. Otherwise, you WILL break the module.
For each type:
shield = the location of the shield image, without the File: prefix
link = the string to be used as the link for that type (i.e. the page that is linked to)
abbr = the abbreviation to be used for that highway (i.e. what appears to the reader)
--]]
local p = {} -- Everything
local USA = {} -- United States
p.USA = USA
local Tour = {shield = {default = "Great Lakes Circle Tour.svg",
LSCT = "Lake Superior Circle Tour.svg",
LMCT = "Lake Michigan Circle Tour.svg",
LHCT = "Lake Huron Circle Tour.svg",
LECT = "Lake Erie Circle Tour.svg",
["LSCT-Spur"] = "Lake Superior Circle Tour brown.svg",
["LMCT-Spur"] = "Lake Michigan Circle Tour brown.svg",
["LHCT-Spur"] = "Lake Huron Circle Tour brown.svg"},
link = {default = "Great Lakes Circle Tour",
LSCT = "Lake Superior Circle Tour",
LMCT = "Lake Michigan Circle Tour",
LHCT = "Lake Huron Circle Tour",
LECT = "Lake Erie Circle Tour",
["LSCT-Spur"] = "Lake Superior Circle Tour",
["LMCT-Spur"] = "Lake Michigan Circle Tour",
["LHCT-Spur"] = "Lake Huron Circle Tour"},
abbr = {default = "GLCT",
LSCT = "LSCT",
LMCT = "LMCT",
LHCT = "LHCT",
LECT = "LECT",
["LSCT-Spur"] = "LSCT Spur",
["LMCT-Spur"] = "LMCT Spur",
["LHCT-Spur"] = "LHCT Spur"}
}
local GRR = {shield = "GreatRiverRoad.svg",
link = "Routing of the Great River Road",
abbr = "Great River Road"}
--Alabama
local AL = {}
USA.AL = AL
AL.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Alabama)",
abbr = "I‑%route%"}
AL.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Alabama",
abbr = "US-%route%"}
AL["US-Bus"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Business ([dab||%dab%, |]Alabama)",
abbr = AL.US.abbr .. " Bus"}
AL["US-Alt"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Alabama)",
abbr = "US-%route% Alt"}
AL["US-Truck"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Truck ([dab||%dab%, |]Alabama)",
abbr = "US-%route% Truck"}
AL["US 1926"] = {shield = "US %route% Alabama 1926.svg",
link = "U.S. Route %route% in Alabama",
abbr = "US %route%"}
AL.SR = {shield = "Alabama %route%.svg",
link = "Alabama State Route %route% [dab||(%dab%)|]",
abbr = "SR-%route%"}
AL.AL = AL.SR
AL["SR-Bus"] = {shield = "Alabama %route%.svg",
link = "Alabama State Route %route% Business [dab||(%dab%)|]",
abbr = "SR-%route% Bus"}
AL["SR-Truck"] = {shield = "Alabama %route%.svg",
link = "Alabama State Route %route% Truck [dab||(%dab%)|]",
abbr = "SR-%route% Truck"}
AL["AL-Bus"] = AL["SR-Bus"]
AL.CR = {shield = "CR %route% jct.svg",
link = "",
abbr = "CR-%route%"}
--Alaska
local AK = {}
USA.AK = AK
AK.I = {shield = "I-%route%.svg",
link = "Interstate Highways in Alaska",
abbr = "I‑%route%"}
AK.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Alaska",
abbr = "US %route%"}
--Do not add USH bannered routes
AK.AK = {shield = "Alaska %route% shield.svg",
link = "Alaska Route %route%",
abbr = "AK-%route%"}
--American Samoa
local AS = {}
USA.AS = AS
AS.AS = {shield = "American Samoa Highway %route%.svg",
link = "American Samoa Highway %route%",
abbr = "AS%route%"}
--Arizona
local AZ = {}
USA.AZ = AZ
AZ.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Arizona)",
abbr = "I‑%route%"}
AZ.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Arizona)",
abbr = "I‑%route% Bus"}
AZ.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Arizona",
abbr = "US %route%"}
AZ["US-Bus"] = {shield = AZ.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Arizona)",
abbr = "US %route% Bus"}
AZ["US-Truck"] = {shield = AZ.US.shield,
link = "U.S. Route %route% Truck ([dab||%dab%, |]Arizona)",
abbr = "US %route% Truck"}
AZ.AZ = {shield = "Arizona %route%.svg",
link = "Arizona State Route %route%",
abbr = "SR %route%"}
AZ.SR = AZ.AZ
AZ["SR-Bus"] = {shield = "Arizona %route%.svg",
link = "Arizona State Route %route%B",
abbr = "SR %route% Bus"}
AZ["SR-Spur"] = {shield = "Arizona %route%S.svg",
link = "",
abbr = "SR %route% Spur"}
AZ.Loop = {shield = "Arizona Loop %route%.svg",
link = "Arizona State Route %route%",
abbr = "Loop %route%"}
AZ["US-Hist"] = {shield = "US %route% (historic).svg",
link = "U.S. Route %route% in Arizona",
abbr = "Historic US %route%"}
AZ.CR = {shield = "CR %route% jct.svg",
link = "",
abbr = "CR %route%"}
--Arkansas
local AR = {}
USA.AR = AR
AR.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Arkansas)",
abbr = "I‑%route%"}
AR.US = {shield = "US %route% (AR).svg",
link = "U.S. Route %route% in Arkansas",
abbr = "U.S. %route%"}
AR["US-Bus"] = {shield = "US %route%B.svg",
link = "U.S. Route %route% Business ([dab||%dab%, |]Arkansas)",
abbr = "US %route%B"}
AR.AR = {shield = {default = "Arkansas %route%.svg",
["917"] = "Arkansas 917-1.svg",
["980"] = "Arkansas 980(Airport).svg"},
link = "Arkansas Highway %route% [dab||(%dab%)|]",
abbr = "Hwy. %route%"}
AR.Hwy = AR.AR
AR["AR 1926"] = {shield = "Arkansas %route% 1926.svg",
link = "Arkansas Highway %route% [dab||(%dab%)|]",
abbr = "Hwy. %route%"}
AR["AR 1948"] = {shield = "Arkansas %route% 1948.svg",
link = "Arkansas Highway %route% [dab||(%dab%)|]",
abbr = "Hwy. %route%"}
AR["Hwy-Bus"] = {shield = "Arkansas %route%B.svg",
link = "Arkansas Highway %route% Business (%dab%)",
abbr = "Hwy. %route%B"}
AR.GRR = GRR
AR.CR = {shield = {default = "CR %route% jct.svg"}, --needs by-county switch
link = "",
abbr = "CR %route%"}
--California
local CA = {}
USA.CA = CA
CA.I = {shield = "I-%route% (CA).svg",
link = "Interstate %route% (California)",
abbr = "I‑%route%"}
CA.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]California)",
abbr = "I‑%route% Bus"}
CA.US = {shield = "US %route% (CA).svg",
link = "U.S. Route %route% in California",
abbr = "US %route%"}
CA["US-Bus"] = {shield = CA.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]California)",
abbr = "US %route% Bus"}
CA.SR = {shield = "California %route%.svg",
link = "California State Route %route%",
abbr = "SR %route%"}
CA["SR 1957"] = {shield = "",
link = "California State Route %route%",
abbr = "SR %route%"}
CA.CA = CA.SR
CA["SR-Bus"] = {shield = "California %route%.svg",
link = "California State Route %route% Business",
abbr = "SR %route% Bus"}
CA.CR = {shield = "CR %route% jct.svg",
link = "",
abbr = "CR %route%"}
CA.FH = {shield = "Forest Route %route%.svg",
link = "",
abbr = "FH %route%"}
CA["US-Alt 1926"] = {shield = "",
link = "",
abbr = "US %route% Alt"}
--Colorado
local CO = {}
USA.CO = CO
CO.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Colorado)",
abbr = "I‑%route%"}
CO.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Colorado)",
abbr = "I‑%route% Bus"}
CO.BS = {shield = "Business Spur %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Colorado)",
abbr = "I‑%route% Bus"}
CO.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Colorado",
abbr = "US %route%"}
CO["US-Alt"] = {shield = CO.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Colorado)",
abbr = "US %route% Alt"}
CO["US-Bus"] = {shield = CO.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Colorado)",
abbr = "US %route% Bus"}
CO["US-Spur"] = {shield = CO.US.shield,
link = "U.S. Route %route% Spur ([dab||%dab%, |]Colorado)",
abbr = "US %route% Spur"}
CO.SH = {shield = "Colorado %route%.svg",
link = "Colorado State Highway %route%",
abbr = "SH %route%"}
CO.CO = CO.SH
CO.E = {shield = "E%route%.svg",
link = "E-%route%",
abbr = "E-%route%"}
CO.CR = {shield = "CR %route% jct.svg",
link = "",
abbr = "CR %route%"}
--Connecticut
local CT = {}
USA.CT = CT
CT.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Connecticut)",
abbr = "I‑%route%"}
CT.US = {shield = "US %route% square.svg",
link = "U.S. Route %route% in Connecticut",
abbr = "US %route%"}
CT["US-Alt"] = {shield = CT.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Connecticut)",
abbr = "US %route% Alt"}
CT["US-Bus"] = {shield = CT.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Connecticut)",
abbr = "US %route% Bus"}
CT.CT = {shield = "Connecticut Highway %route%.svg",
link = "Connecticut Route %route%",
abbr = "Route %route%"}
CT.Route = CT.CT
CT.SR = {shield = "",
link = "List of State Roads in Connecticut",
abbr = "SR %route%"}
CT.SSR = {shield = "",
link = "List of Special Service Roads in Connecticut",
abbr = "SSR %route%"}
CT.CTTP = {shield = "Conn Tpk.gif",
link = "Connecticut Turnpike",
abbr = "Conn. Tpk"}
CT.Merritt = {shield = "Merritt Pkwy Shield.svg",
link = "Merritt Parkway",
abbr = "Merritt Pkwy"}
--Delaware
local DE = {}
USA.DE = DE
DE.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Delaware)",
abbr = "I‑%route%"}
DE["I 1957"] = {shield = "I-%route% (DE 1957).svg",
link = "Interstate %route% (Delaware)",
abbr = "I‑%route%"}
DE.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Delaware",
abbr = "US %route%"}
DE["US-Alt"] = {shield = DE.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Delaware)",
abbr = "US %route% Alt"}
DE["US-Bus"] = {shield = DE.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Delaware)",
abbr = "US %route% Bus"}
DE["US-Byp"] = {shield = DE.US.shield,
link = "U.S. Route %route% Bypass ([dab||%dab%, |]Delaware)",
abbr = "US %route% Byp"}
DE["US-Truck"] = {shield = DE.US.shield,
link = "U.S. Route %route% Truck ([dab||%dab%, |]Delaware)",
abbr = "US %route% Truck"}
DE["US 1926"] = {shield = "US %route% Delaware 1926.svg",
link = "U.S. Route %route% in Delaware",
abbr = "US %route%"}
DE["US 1948"] = {shield = "US %route% Delaware 1948.svg",
link = "U.S. Route %route% in Delaware",
abbr = "US %route%"}
DE.SR = {shield = "Elongated circle %route%.svg",
link = "Delaware Route %route% [dab||(%dab%)|]",
abbr = "DE %route%"}
DE.DE = DE.SR
DE["SR-Bus"] = {shield = "Elongated circle %route%.svg",
link = "Delaware Route %route% Business [dab||(%dab%)|]",
abbr = "DE %route% Bus"}
DE["DE-Bus"] = DE["SR-Bus"]
DE["SR-Alt"] = {shield = "Elongated circle %route%.svg",
link = "Delaware Route %route% Alternate [dab||(%dab%)|]",
abbr = "DE %route% Alt"}
DE["DE-Alt"] = DE["SR-Alt"]
DE["SR-Truck"] = {shield = "Elongated circle %route%.svg",
link = "Delaware Route %route% Truck [dab||(%dab%)|]",
abbr = "DE %route% Truck"}
DE["DE-Truck"] = DE["SR-Truck"]
DE["SR 1964"] = {shield = "Delaware %route% 1964.svg",
link = "Delaware Route %route% [dab||(%dab%)|]",
abbr = "DE %route%"}
DE["DE 1964"] = DE["SR 1964"]
DE["SR 1955"] = {shield = "Delaware %route% 1955.svg",
link = "Delaware Route %route% [dab||(%dab%)|]",
abbr = "DE %route%"}
DE["DE 1955"] = DE["SR 1955"]
DE.DETP = {shield = "Delaware Turnpike logo.gif",
link = "Delaware Turnpike",
abbr = "Del. Tpk"}
--District of Columbia
local DC = {}
USA.DC = DC
DC.I = {shield = "I-%route%.svg",
link = "Interstate %route% (District of Columbia)",
abbr = "I‑%route%"}
DC.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in the District of Columbia",
abbr = "US %route%"}
DC.DC = {shield = "DC-%route%.svg",
link = "District of Columbia Route %route%",
abbr = "DC %route%"}
--Florida
local FL = {}
USA.FL = FL
FL.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Florida)",
abbr = "I‑%route%"}
FL.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Florida",
abbr = "US %route%"}
FL["US-Alt"] = {shield = FL.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Florida)",
abbr = "US %route% Alt"}
FL["US-Bus"] = {shield = FL.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Florida)",
abbr = "US %route% Bus"}
FL.SR = {shield = "Florida %route%.svg",
link = "Florida State Road %route% [dab||(%dab%)|]",
abbr = "SR %route%"}
FL.FL = FL.SR
FL.CR = {shield = "CR %route% jct.svg",
link = "County Road %route% ([county||%county% County, |]Florida)",
abbr = "CR %route%"}
FL["CR-Old"] = {shield = "",
link = "Old County Road %route% (%county% County, Florida)",
abbr = "Old CR %route%"}
FL["CR-Spur"] = {shield = "",
link = "County Road %route% Spur (%county% County, Florida)",
abbr = "CR %route% Spur"}
FL.FLTP = {shield = "Florida's Turnpike shield.png",
link = "Florida's Turnpike",
abbr = "Florida's Turnpike"}
FL.HEFT = {shield = "Florida's Turnpike shield.png",
link = "Homestead Extension of Florida's Turnpike",
abbr = "Homestead Ext"}
FL.Toll = {shield = "Toll Florida %route%.svg",
link = "Florida State Road %route% [dab||(%dab%)|]",
abbr = "SR %route%"}
FL["SR-Bus"] = {shield = "Florida %route%.svg",
link = "",
abbr = "SR %route% Bus"}
FL["SR-Spur"] = {shield = "Florida %route%.svg",
link = "Florida State Road %route% Spur",
abbr = "SR %route% Spur"}
FL["SR-Truck"] = {shield = "Florida %route%.svg",
link = "Florida State Road %route% Truck",
abbr = "SR %route% Truck"}
--Georgia
local GA = {}
USA.GA = GA
GA.I = { shield = "I-%route%.svg",
link = "Interstate %route% (Georgia)",
abbr = "I‑%route%" }
GA.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Georgia)",
abbr = "I‑%route% Bus"}
GA.US = { shield = "US %route%.svg",
link = "U.S. Route %route% in Georgia",
abbr = "US %route%" }
GA["US-Alt"] = {shield = GA.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Georgia)",
abbr = "US %route% Alt"}
GA["US-Bus"] = {shield = GA.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Georgia)",
abbr = "US %route% Bus"}
GA.SR = { shield = "Georgia %route%.svg",
link = "Georgia State Route %route%",
abbr = "SR %route%" }
GA.GA = GA.SR
GA["SR-Alt"] = { shield = "Georgia %route% Alternate.svg",
link = "",
abbr = "SR %route% Alt" }
GA["GA-Alt"] = GA["SR-Alt"]
GA["SR-Bus"] = { shield = "Georgia %route% Business.svg",
link = "",
abbr = "SR %route% Bus" }
GA["GA-Bus"] = GA["SR-Bus"]
GA["SR-Byp"] = { shield = "Georgia %route% Bypass.svg",
link = "Georgia State Route %route% Bypass",
abbr = "SR %route% Byp" }
GA["GA-Byp"] = GA["SR-Byp"]
GA["SR-Conn"] = { shield = "Georgia %route% Connector.svg",
link = "",
abbr = "SR %route% Conn" }
GA["GA-Conn"] = GA["SR-Conn"]
GA["SR-Loop"] = { shield = "Georgia %route% Loop.svg",
link = "Georgia State Route %route% Loop",
abbr = "SR %route% Loop" }
GA["GA-Loop"] = GA["SR-Loop"]
GA["SR-Spur"] = { shield = "Georgia %route% Spur.svg",
link = "",
abbr = "SR %route% Spur" }
GA["GA-Spur"] = GA["SR-Spur"]
GA["SR-Truck"] = { shield = GA.SR.shield,
link = "",
abbr = "SR %route% Truck" }
GA["GA-Truck"] = GA["SR-Truck"]
--Guam
local GU = {}
USA.GU = GU
GU.GU = {shield = "Guam route marker %route%.svg",
link = "Guam Highway %route%",
abbr = "GU-%route%"}
--Hawaii
local HI = {}
USA.HI = HI
HI.I = {shield = "I-H%route%.svg",
link = "Interstate H-%route%",
abbr = "H-%route%"}
--Do not add US Highways or USH bannered routes
HI.HI = {shield = "HI-%route%.svg",
link = "Hawaii Route %route%",
abbr = "Route %route%"}
HI.Route = HI.HI
--Idaho
local ID = {}
USA.ID = ID
ID.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Idaho)",
abbr = "I‑%route%"}
ID.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Idaho)",
abbr = "I‑%route% Bus"}
ID.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Idaho",
abbr = "US-%route%"}
ID["US-Alt"] = {shield = ID.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Idaho)",
abbr = "US-%route% Alt"}
ID["US-Bus"] = {shield = ID.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Idaho)",
abbr = "US-%route% Bus"}
ID["US-Spur"] = {shield = ID.US.shield,
link = "U.S. Route %route% Spur ([dab||%dab%, |]Idaho)",
abbr = "US-%route% Spur"}
ID.ID = {shield = "ID-%route%.svg",
link = "Idaho State Highway %route%",
abbr = "SH-%route%"}
ID.SH = ID.ID
ID.WA = {shield = "WA-%route%.svg",
link = "Washington State Route %route%",
abbr = "SR %route%"}
ID["ID-Conn"] = {shield = "ID-%route%.svg",
link = "Idaho State Highway %route%",
abbr = "SH-%route% Connector"}
ID["SH-Conn"] = ID["ID-Conn"]
ID["ID-Bus"] = {shield = "ID-%route%.svg",
link = "",
abbr = "SH-%route% Bus"}
ID["SH-Bus"] = ID["ID-Bus"]
ID["ID-Spur"] = {shield = "ID-%route%.svg",
link = "Idaho State Highway %route% Spur",
abbr = "SH-%route% Spur"}
ID["SH-Spur"] = ID["ID-Spur"]
ID.CR = {shield = "",
link = "",
abbr = "CR-%route%"}
--Illinois
local IL = {}
USA.IL = IL
IL.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Illinois)",
abbr = "I‑%route%"}
IL.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Illinois)",
abbr = "I‑%route% Bus"}
IL.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Illinois",
abbr = "US %route%"}
IL["US-Bus"] = {shield = IL.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Illinois)",
abbr = "US %route% Bus"}
IL["US-Hist"] = {shield = "[route|66|US 66 (historic).svg|]",
link = "U.S. Route %route% in Illinois",
abbr = "Historic US %route%"}
IL.IL = {shield = "Illinois %route%.svg",
link = "Illinois Route %route%",
abbr = "IL %route%"}
IL.Toll = {shield = "Indiana Toll Road logo 1968.svg",
link = "Indiana Toll Road",
abbr = "Indiana Toll Road"}
IL.Skyway = {shield = "Chicago Skyway logo.svg",
link = "Chicago Skyway",
abbr = "Chicago Skyway"}
IL.Tour = Tour
IL.Lincoln = {shield = "LincolnHighwayMarker.svg",
link = "Route of the Lincoln Highway#Illinois",
abbr = "Lincoln Highway"}
IL.GRR = GRR
IL["GRR-Spur"] = {shield = "GreatRiverRoad brown.svg",
link = "Great River Road",
abbr = "GRR spur"}
IL["GRR-Alt"] = {shield = "GreatRiverRoad.svg",
link = "Great River Road",
abbr = "GRR Alt"}
IL["E-OH"] = {shield = "Illinois Elgin–O'Hare Expressway.svg",
link = "Elgin–O'Hare Expressway",
abbr = "Elgin–O'Hare Expressway"}
IL.CR = {shield = "CR %route% jct.svg",
link = "",
abbr = "CR %route%"}
--Indiana
local IN = {}
USA.IN = IN
IN.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Indiana)",
abbr = "I‑%route%"}
IN.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Indiana",
abbr = "US %route%"}
IN["US-Bus"] = {shield = IN.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Indiana)",
abbr = "US %route% Bus"}
IN.IN = {shield = "Indiana %route%.svg",
link = "Indiana State Road %route% [dab||(%dab%)|]",
abbr = "SR %route%"}
IN.SR = IN.IN
IN["IN 1940"] = {shield = "Indiana %route% (1940).svg",
link = "",
abbr = "SR %route%"}
IN["SR 1940"] = IN["IN 1940"]
IN["IN old"] = {shield = "",
link = "",
abbr = "SR %route%"}
IN.Toll = {shield = "Indiana Toll Road logo 1968.svg",
link = "Indiana Toll Road",
abbr = "Indiana Toll Road"}
IN.Lincoln = {shield = "LincolnHighwayMarker.svg",
link = "Lincoln Highway in Indiana",
abbr = "Lincoln Highway"}
IN.National = {shield = "National Old Trails Road marker.svg",
link = "National Old Trails Road",
abbr = "National Road"}
IN.Dixie = {shield = "Dixie Highway marker.svg",
link = "Dixie Highway",
abbr = "Dixie Highway"}
IN.Tour = Tour
IN.CR = {shield = "",
link = "[county|Elkhart|[route|17|County Road 17 (Elkhart County, Indiana)|]|]",
abbr = "CR %route%"}
--Iowa
local IA = {}
USA.IA = IA
IA.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Iowa)",
abbr = "I‑%route%"}
IA.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Iowa)",
abbr = "I‑%route% Bus"}
IA["I 1957"] = {shield = "I-%route% (IA 1957).svg",
link = "Interstate %route% (Iowa)",
abbr = "I‑%route%"}
IA.US = {shield = "US %route% square.svg",
link = "U.S. Route %route% in Iowa",
abbr = "US %route%"}
IA["US-Bus"] = {shield = IA.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Iowa)",
abbr = "US %route% Bus"}
IA["US 1926"] = {shield = "US %route% Iowa 1926.svg",
link = "U.S. Route %route% in Iowa",
abbr = "US %route%"}
IA["US 1948"] = {shield = "US %route% (1948).svg",
link = "U.S. Route %route% in Iowa",
abbr = "US %route%"}
IA.IA = {shield = "Iowa %route%.svg",
link = "Iowa Highway %route% [dab||(%dab%)|]",
abbr = "Iowa %route%"}
IA["IA 1926"] = {shield = "Iowa %route% 1926.svg",
link = "Iowa Highway %route% [dab||(%dab%)|]",
abbr = "Iowa %route%"}
IA["IA 1950"] = {shield = "Iowa %route% (1950).svg",
link = "Iowa Highway %route% [dab||(%dab%)|]",
abbr = "Iowa %route%"}
IA["IA-Bus"] = {shield = "Iowa %route%.svg",
link = "Iowa Highway %route% Business [dab||(%dab%)|]",
abbr = "Iowa %route% Bus"}
IA.CR = {shield = "CR %route% jct.svg",
link = "[route|105|County Road 105 (Iowa)|]",
abbr = "CR %route%"}
IA.GRR = GRR
IA.Pri = {shield = "",
link = "Iowa Primary Road No. %route%",
abbr = "No. %route%"}
--Kansas
local KS = {}
USA.KS = KS
KS.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Kansas)",
abbr = "I‑%route%"}
KS.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Kansas",
abbr = "US-%route%"}
KS["US-Alt"] = {shield = KS.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Kansas)",
abbr = "US-%route% Alt"}
KS["US-Bus"] = {shield = KS.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Kansas)",
abbr = "US-%route% Bus"}
KS["US-Byp"] = {shield = KS.US.shield,
link = "U.S. Route %route% Bypass ([dab||%dab%, |]Kansas)",
abbr = "US-%route% Byp"}
KS.KSTP = { shield = "Kansas Turnpike.svg",
link = "Kansas Turnpike",
abbr = "Kan. Tpk"}
KS.KTA = KS.KSTP
KS.K = {shield = "K-%route%.svg",
link = "K-%route% (Kansas highway)",
abbr = "K-%route%"}
KS.KS = KS.K
KS["K-Alt"] = {shield = "K-%route%.svg",
link = KS.K.link, -- This is legal as long as the type pointed to is already defined.
abbr = "K-%route% Alt"}
KS["KS-Alt"] = KS["K-Alt"]
KS["K-Spur"] = {shield = "K-%route%.svg",
link = "K-%route% Spur (Kansas highway)",
abbr = "K-%route% Spur"}
KS["KS-Spur"] = KS["K-Spur"]
KS.CR = {shield = "CR %route% jct.svg",
link = "",
abbr = "CR-%route%"}
--Kentucky
local KY = {}
USA.KY = KY
KY.I = { shield = "I-%route%.svg",
link = "Interstate %route% (Kentucky)",
abbr = "I‑%route%" }
KY.Future = { shield = "I-%route% (Future).svg", --ifexist if future shield doesn't exist
link = KY.I.link,
abbr = "Future I-%route%" }
KY.US = { shield = "US %route%.svg",
link = "U.S. Route %route% in Kentucky",
abbr = "US %route%" }
KY["US-Alt"] = {shield = KY.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Kentucky)",
abbr = "US %route% Alt"}
KY["US-Bus"] = {shield = KY.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Kentucky)",
abbr = "US %route% Bus"}
KY["US-Byp"] = {shield = KY.US.shield,
link = "U.S. Route %route% Bypass ([dab||%dab%, |]Kentucky)",
abbr = "US %route% Byp"}
--TODO: Lua implementation of existing parser function that displays no shield/link above KY 6000.
KY.KY = { shield = "Elongated circle %route%.svg",
link = "Kentucky Route %route%",
abbr = "KY %route%" }
KY["KY-Bus"] = { shield = KY.KY.shield,
link = "Kentucky Route %route% Business",
abbr = "KY %route% Bus" }
KY["KY-Byp"] = { shield = KY.KY.shield,
link = "Kentucky Route %route% Bypass",
abbr = "KY %route%B" }
KY["KY-Spur"] = { shield = KY.KY.shield,
link = "Kentucky Route %route% Spur",
abbr = "KY %route% Spur" }
KY.AA = { shield = "AA Highway Shield.svg",
link = "AA Highway",
abbr = "AA Hwy" }
KY.Parkway = { shield = "%route% Parkway.svg",
link = "%route% Parkway",
abbr = "%route% Pkwy" }
--Louisiana
local LA = {}
USA.LA = LA
LA.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Louisiana)",
abbr = "I‑%route%"}
LA.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Louisiana)",
abbr = "I‑%route% Bus"}
LA.US = {shield = "US %route%.svg",
link = "U.S. Route %route& in Louisiana",
abbr = "US %route%"}
LA["US-Bus"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Business ([dab||%dab%, |]Louisiana)",
abbr = "US %route% Bus"}
LA["US-Byp"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Bypass ([dab||%dab%, |]Louisiana)",
abbr = "US %route% Byp"}
LA.LA = {shield = "Louisiana %route%.svg", --will become Louisiana %route& (2008).svg eventually
link = "Louisiana Highway %route%",
abbr = "LA %route%"}
LA["LA-Alt"] = {shield = LA.LA.shield,
link = "Louisiana Highway %route% Alternate",
abbr = "LA %route% Alt"}
LA["LA-Bus"] = {shield = LA.LA.shield,
link = "Louisiana Highway %route% Business",
abbr = "LA %route% Bus"}
LA["LA-Byp"] = {shield = LA.LA.shield,
link = "Louisiana Highway %route% Bypass",
abbr = "LA %route% Byp"}
LA["LA-Spur"] = {shield = LA.LA.shield,
link = "Louisiana Highway %route% Spur",
abbr = "LA %route% Spur"}
LA["LA-Truck"] = {shield = LA.LA.shield,
link = "Louisiana Highway %route% Truck",
abbr = "LA %route% Truck"}
LA["LA 1924"] = {shield = "Louisiana %route% (1924).svg",
link = "Louisiana State Route %route%",
abbr = "SR %route%"}
LA["LA 1955"] = {shield = "Louisiana %route% (1955).svg",
link = "", --not sure of the nomenclature
abbr = "LA %route%"}
LA["LA 1990"] = {shield = "Louisiana %route%.svg",
link = "Louisiana Highway %route%",
abbr = "LA %route%"}
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
abbr = "PR %route%"}
LA.CR = LA.PR
LA.Jackson = {shield = "Jackson Highway marker.svg",
link = "Jackson Highway",
abbr = "Jackson Hwy"}
LA.Jefferson = {shield = "Jefferson Highway marker.svg",
link = "Jefferson Highway",
abbr = "Jefferson Hwy"}
LA["Jefferson Davis"] = {shield = "Jefferson Davis Highway marker.svg",
link = "Jefferson Davis Highway",
abbr = "Jefferson Davis Hwy"}
LA.Spanish = {shield = "Old Spanish Trail.svg",
link = "Old Spanish Trail (auto trail)",
abbr = "Old Spanish Trail"}
--Maine
local ME = {}
USA.ME = ME
ME.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Maine)",
abbr = "I‑%route%"}
ME.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Maine",
abbr = "US %route%"}
ME["US-Bus"] = {shield = ME.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Maine)",
abbr = "US %route% Bus"}
ME["US-Byp"] = {shield = ME.US.shield,
link = "U.S. Route %route% Bypass ([dab||%dab%, |]Maine)",
abbr = "US %route% Byp"}
ME.SR = {shield = "MA Route %route%.svg",
link = "Maine State Route %route%",
abbr = "SR %route%"}
ME.ME = ME.SR
ME.METP = {shield = "",
link = "Maine Turnpike",
abbr = "Maine Tpk"}
ME["SR-Bus"] = {shield = ME.SR.shield,
link = "Maine State Route %route% Business",
abbr = "SR %route% Bus"}
ME["ME-Bus"] = ME["SR-Bus"]
--Maryland
local MD = {}
USA.MD = MD
MD.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Maryland)",
abbr = "I‑%route%"}
MD["I-Spur"] = {shield = MD.I.shield,
link = "Interstate %route% Spur (Maryland)",
abbr = "I‑%route% Spur"}
MD["I 1957"] = {shield = "I-%route% (MD 1957).svg",
link = "Interstate %route% (Maryland)",
abbr = "I‑%route%"}
MD.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Maryland",
abbr = "US %route%"}
MD["US-Bus"] = {shield = "US %route% Business (MD).svg",
link = "U.S. Route %route% Business ([dab||%dab%, |]Maryland)",
abbr = "US %route% Bus"}
MD["US-Alt"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Maryland)",
abbr = "US %route% Alt"}
MD["US-Truck"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Truck ([dab||%dab%, |]Maryland)",
abbr = "US %route% Truck"}
MD["US-Scenic"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Scenic ([dab||%dab%, |]Maryland)",
abbr = "US %route% Scenic"}
MD["US 1926"] = {shield = "US %route% Maryland 1926.svg",
link = "U.S. Route %route% in Maryland",
abbr = "US %route%"}
MD["US 1948"] = {shield = "US %route% Maryland 1948.svg",
link = "U.S. Route %route% in Maryland",
abbr = "US %route%"}
MD.SR = {shield = "MD Route %route%.svg",
link = "Maryland Route %route% [dab||(%dab%)|]",
abbr = "MD %route%"}
MD.MD = MD.SR
MD["SR-Bus"] = {shield = "MD Route %route% Business.svg",
link = "Maryland Route %route% Business [dab||(%dab%)|]",
abbr = "MD %route% Bus"}
MD["MD-Bus"] = MD["SR-Bus"]
MD["MD-Byp"] = {shield = MD.SR.shield,
link = "Maryland Route %route% Bypass [dab||(%dab%)|]",
abbr = "MD %route% Byp"}
MD["SR-Alt"] = {shield = "MD Route %route%.svg",
link = "Maryland Route %route% Alternate [dab||(%dab%)|]",
abbr = "MD %route% Alt"}
MD["MD-Alt"] = MD["SR-Alt"]
MD["SR-Truck"] = {shield = "MD Route %route%.svg",
link = "Maryland Route %route% Truck [dab||(%dab%)|]",
abbr = "MD %route% Truck"}
MD["MD-Truck"] = MD["SR-Truck"]
MD.MDJFK = {shield = "MD JFK Highway.svg",
link = "John F. Kennedy Memorial Highway (Maryland)",
abbr = "JFK Mem. Hwy"}
--Massachusetts
local MA = {}
USA.MA = MA
MA.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Massachusetts)",
abbr = "I‑%route%"}
MA.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Massachusetts",
abbr = "US-%route%"}
MA.MA = {shield = "MA Route %route%.svg",
link = "Massachusetts Route %route%",
abbr = "Route %route%"}
MA.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Massachusetts)",
abbr = "I‑%route% Bus"}
MA.Route=MA.MA
MA.MATP = {shield = "",
link = "Massachusetts Turnpike",
abbr = "Mass. Pike"}
--Michigan
local MI = {}
USA.MI = MI
MI.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Michigan)",
abbr = "I‑%route%" }
MI["I 1957"] = {shield = "I-%route% (MI 1957).svg",
link = MI.I.link,
abbr = MI.I.abbr}
MI.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Michigan)",
abbr = "BL I-%route%"}
MI.BS = {shield = "Business Spur %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Michigan)",
abbr = "BS I-%route%"}
MI["BL 1957"] = {shield = "Business Loop %route% (1957).svg",
link = MI.BL.link,
abbr = MI.BL.abbr}
MI["BS 1957"] = {shield = "Business Spur %route% (1957).svg",
link = MI.BS.link,
abbr = MI.BS.abbr}
MI.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Michigan",
abbr = "US %route%"}
MI["US 1926"] = {shield = "US %route% Michigan 1926.svg",
link = MI.US.link,
abbr = MI.US.abbr}
MI["US 1948"] = {shield = "US %route% Michigan 1948.svg",
link = MI.US.link,
abbr = MI.US.abbr}
MI["US 1961"] = MI["US 1948"] --MI did not use the 1961 version and continued to use the 1948
MI.M = {shield = "M-%route%.svg",
link = "M-%route% ([dab||%dab% |]Michigan highway)",
abbr = "M-%route%"}
MI.MI = MI.M
MI["M 1919"] = {shield = "M-%route% 1919.svg",
link = MI.M.link,
abbr = MI.M.abbr}
MI["M 1926"] = {shield = "M-%route% 1926.svg",
link = MI.M.link,
abbr = MI.M.abbr}
MI["M 1948"] = {shield = "M-%route% 1948.svg",
link = MI.M.link,
abbr = MI.M.abbr}
MI.CDH = {shield ="County %route%.svg",
link = "%route% (Michigan county highway)",
abbr = "%route%"}
MI.CR = {shield = "Michigan %route% %county% County.svg",
link = "County Road %route% (%county% County, Michigan)",
abbr = "CR %route%"}
MI.FFH = {shield = "Forest Route %route%.svg",
link = "Forest Highway %route%",
abbr = "FFH %route%"}
MI.Tour = Tour
MI["Capitol Loop"] = {shield = "CapitolLoop.svg",
link = "Capitol Loop",
abbr = "Capitol Loop"}
MI["US-Alt"] = {shield = MI.US.shield,
link = "U.S. Route %route% Alternate (%dab%, Michigan)",
abbr = "ALT US %route%"}
MI["US-Bus"] = {shield = MI.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Michigan)",
abbr = "BUS US %route%"}
MI["US-Byp"] = {shield = MI.US.shield,
link = "U.S. Route %route% Bypass ([dab||%dab%, |]Michigan)",
abbr = "BYP US %route%"}
MI["US-Conn"] = {shield = MI.US.shield,
link = "U.S. Route %route% Connector ([dab||%dab%, |]Michigan)",
abbr = "CONN M-%route%"}
MI["US-Truck"] = {shield = MI.US.shield,
link = "U.S. Route %route% Truck (%dab%, Michigan)",
abbr = "TRUCK US%route%"}
MI["US 1926-Alt"] = {shield = MI["US 1926"].shield,
link = MI["US-Alt"].link,
abbr = MI["US-Alt"].abbr}
MI["US 1926-Bus"] = {shield = MI["US 1926"].shield,
link = MI["US-Bus"].link,
abbr = MI["US-Bus"].abbr}
MI["US 1926-Byp"] = {shield = MI["US 1926"].shield,
link = MI["US-Byp"].link,
abbr = MI["US-Byp"].abbr}
MI["US 1926-Conn"] = {shield = MI["US 1926"].shield,
link = MI["US-Byp"].link,
abbr = MI["US-Byp"].abbr}
MI["US 1926-Truck"] = {shield = MI["US 1926"].shield,
link = MI["US-Truck"].link,
abbr = MI["US-Truck"].abbr}
MI["US 1948-Alt"] = {shield = MI["US 1948"].shield,
link = MI["US-Alt"].link,
abbr = MI["US-Alt"].abbr}
MI["US 1948-Bus"] = {shield = MI["US 1948"].shield,
link = MI["US-Bus"].link,
abbr = MI["US-Bus"].abbr}
MI["US 1948-Byp"] = {shield = MI["US 1948"].shield,
link = MI["US-Byp"].link,
abbr = MI["US-Byp"].abbr}
MI["US 1948-Conn"] = {shield = MI["US 1948"].shield,
link = MI["US-Byp"].link,
abbr = MI["US-Byp"].abbr}
MI["US 1948-Truck"] = {shield = MI["US 1948"].shield,
link = MI["US-Truck"].link,
abbr = MI["US-Truck"].abbr}
MI["US 1961-Alt"] = MI["US 1948-Alt"]
MI["US 1961-Bus"] = MI["US 1948-Bus"]
MI["US 1961-Byp"] = MI["US 1948-Byp"]
MI["US 1961-Conn"] = MI["US 1948-Conn"]
MI["US 1961-Truck"] = MI["US 1948-Truck"]
MI["M-Alt"] = {shield = MI.M.shield,
link = "M-%route% Alternate (%dab%, Michigan)",
abbr = "ALT M-%route%"}
MI["MI-Alt"] = MI["M-Alt"]
MI["M-Bus"] = {shield = MI.M.shield,
link = "M-%route% Business ([dab||%dab%, Michigan||Michigan highway])",
abbr = "BUS M-%route%"}
MI["MI-Bus"] = MI["M-Bus"]
MI["M-Byp"] = {shield = MI.M.shield,
link = "M-%route% Bypass ([dab||%dab%, Michigan||Michigan highway])",
abbr = "BYP M-%route%"}
MI["MI-Byp"] = MI["M-Byp"]
MI["M-Conn"] = {shield = MI.M.shield,
link = "M-%route% Connector (Michigan highway)",
abbr = "CONN M-%route%"}
MI["MI-Conn"] = MI["M-Conn"]
MI["M-Truck"] = {shield = MI.M.shield,
link = "M-%route% Truck (%dab%, Michigan)",
abbr = "TRUCK M-%route%"}
MI["MI-Truck"] = MI["M-Truck"]
MI["M 1926-Alt"] = {shield = MI["M 1926"].shield,
link = MI["M-Alt"].link,
abbr = MI["M-Alt"].abbr}
MI["M 1926-Bus"] = {shield = MI["M 1926"].shield,
link = MI["M-Bus"].link,
abbr = MI["M-Bus"].abbr}
MI["M 1926-Byp"] = {shield = MI["M 1926"].shield,
link = MI["M-Byp"].link,
abbr = MI["M-Byp"].abbr}
MI["M 1926-Conn"] = {shield = MI["M 1926"].shield,
link = MI["M-Byp"].link,
abbr = MI["M-Byp"].abbr}
MI["M 1926-Truck"] = {shield = MI["M 1926"].shield,
link = MI["M-Truck"].link,
abbr = MI["M-Truck"].abbr}
MI["M 1948-Alt"] = {shield = MI["M 1948"].shield,
link = MI["M-Alt"].link,
abbr = MI["M-Alt"].abbr}
MI["M 1948-Bus"] = {shield = MI["M 1948"].shield,
link = MI["M-Bus"].link,
abbr = MI["M-Bus"].abbr}
MI["M 1948-Byp"] = {shield = MI["M 1948"].shield,
link = MI["M-Byp"].link,
abbr = MI["M-Byp"].abbr}
MI["M 1948-Conn"] = {shield = MI["M 1948"].shield,
link = MI["M-Byp"].link,
abbr = MI["M-Byp"].abbr}
MI["M 1948-Truck"] = {shield = MI["M 1948"].shield,
link = MI["M-Truck"].link,
abbr = MI["M-Truck"].abbr}
--Minnesota
local MN = {}
USA.MN = MN
MN.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Minnesota)",
abbr = "I‑%route%"}
MN.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Minnesota)",
abbr = "I‑%route% Bus"}
MN.US = {shield = "US %route% (MN).svg",
link = "U.S. Route %route% in Minnesota",
abbr = "US %route%"}
MN["US-Bus"] = {shield = MN.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Minnesota)",
abbr = "US %route% Bus"}
MN.MN = {shield = "MN-%route%.svg",
link = "Minnesota State Highway %route%",
abbr = "MN %route%"}
MN.TH = MN.MN
MN["MN-Bus"] = {shield = "MN-%route% Business.svg",
link = "Minnesota State Highway %route% Business",
abbr = "MN %route% Bus"}
MN.CSAH = {shield = "County %route% (MN).svg",
link = "",
abbr = "CSAH %route%"}
MN.CR = {shield = "County %route% (MN).svg", --this will eventually need a county switch
link = "",
abbr = "CR %route%"}
MN.GRR = GRR
MN.Tour = Tour
MN["MN 1920"] = {shield = "",
link = "Minnesota State Highway %route% (1920)",
abbr = "TH %route%"}
--Mississippi
local MS = {}
USA.MS = MS
MS.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Mississippi)",
abbr = "I‑%route%"}
MS.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Mississippi",
abbr = "US %route%"}
MS["US-Alt"] = {shield = MS.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Mississippi)",
abbr = "US %route% Alt"}
MS["US-Bus"] = {shield = MS.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Mississippi)",
abbr = "US %route% Bus"}
MS.MS = {shield = "Ellipse sign %route%.svg",
link = "Mississippi Highway %route%",
abbr = "MS %route%"}
MS["MS-Bus"] = {shield = MS.MS.shield,
link = "Mississippi Highway %route% Business",
abbr = "MS %route% Bus"}
MS.GRR = GRR
--Missouri
local MO = {}
USA.MO = MO
MO.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Missouri)",
abbr = "I‑%route%"}
MO.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Missouri)",
abbr = "I‑%route% Bus"}
MO.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Missouri",
abbr = "US %route%"}
MO["US-Bus"] = {shield = MO.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Missouri)",
abbr = "US %route% Bus"}
MO["US-Spur"] = {shield = MO.US.shield,
link = "U.S. Route %route% Spur ([dab||%dab%, |]Missouri)",
abbr = "US %route% Spur"}
MO.Route = {shield = "MO-%route%.svg",
link = "Missouri Route %route%",
abbr = "Route %route%"}
MO.MO = MO.Route
MO["Route-Bus"] = {shield = MO.Route.shield,
link = "",
abbr = "Route %route% Bus"}
MO["MO-Bus"] = MO["Route-Bus"]
MO["Route-Spur"] = {shield = MO.Route.shield,
link = "",
abbr = "Route %route% Spur"}
MO["MO-Spur"] = MO["Route-Spur"]
MO.Supp = {shield = "MO-supp-%route%.svg",
link = "",
abbr = "Route %route%"}
MO.GRR = GRR
--Montana
local MT = {}
USA.MT = MT
MT.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Montana)",
abbr = "I‑%route%"}
MT.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Montana)",
abbr = "I‑%route% Bus"}
MT.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Montana",
abbr = "US %route%"}
MT["US-Bus"] = {shield = MT.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Montana)",
abbr = "US %route% Bus"}
MT.MT = {shield = "MT-%route%.svg",
link = "Montana Highway %route%",
abbr = "MT %route%"}
MT.Sec = {shield = "MT-sec-%route%.svg",
link = "",
abbr = "S-%route%"}
--Nebraska
local NE = {}
USA.NE = NE
NE.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Nebraska)",
abbr = "I‑%route%"}
NE.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Nebraska)",
abbr = "I‑%route% Bus"}
NE.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in North Carolina",
abbr = "US %route%"}
NE["US-Alt"] = {shield = NE.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Nebraska)",
abbr = "US %route% Alt"}
NE["US-Bus"] = {shield = NE.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Nebraska)",
abbr = "US %route% Bus"}
NE.NE = {shield = "N-%route%.svg",
link = "Nebraska Highway %route%",
abbr = "N‑%route%"}
NE.Link = {shield = "N LINK %route%.svg",
link = "Nebraska Link %route%",
abbr = "L‑%route%"}
NE.Spur = {shield = "N SPUR %route%.svg",
link = "Nebraska Spur %route%",
abbr = "S‑%route%"}
--Nevada
local NV = {}
USA.NV = NV
NV.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Nevada)",
abbr = "I‑%route% Bus"}
NV.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Nevada)",
abbr = "I‑%route%"}
NV.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Nevada",
abbr = "US %route%"}
NV["US-Alt"] = {shield = NV.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Nevada)",
abbr = "US %route% Alt"}
NV["US-Bus"] = {shield = NV.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Nevada)",
abbr = "US %route% Bus"}
NV.NV= {shield = "Nevada %route%.svg",
link = "Nevada State Route %route% [dab||(%dab%)|]",
abbr = "SR %route%"}
NV.CC= {shield = "Clark County Route %route% NV.svg",
link = "Clark County %route% [dab||(%dab%)|]",
abbr = "CC %route%"}
NV.SR = NV.NV
--New Hampshire
local NH = {}
USA.NH = NH
NH.I = {shield = "I-%route%.svg",
link = "Interstate %route% (New Hampshire)",
abbr = "I‑%route%"}
NH.US = {shield = "US %route% square.svg",
link = "U.S. Route %route% in New Hampshire",
abbr = "US %route%"}
NH["US-Byp"] = {shield = "US %route% Bypass.svg",
link = "U.S. Route %route% Bypass ([dab||%dab%, |]New Hampshire)",
abbr = "US %route% Byp"}
NH.NH = {shield = "NH Route %route%.svg",
link = "New Hampshire Route %route%",
abbr = "NH %route%"}
NH.Turnpike = {shield = "%route% Turnpike.svg",
link = "%route% Turnpike",
abbr = "%route% Tpk"}
--New Jersey
local NJ = {}
USA.NJ = NJ
NJ.I = {shield = "I-%route%.svg",
link = "Interstate %route% (New Jersey)",
abbr = "I‑%route%"}
NJ["I 1957"] = {shield = "I-%route% (NJ 1957).svg",
link = NJ.I.link,
abbr = NJ.I.abbr}
NJ.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in New Jersey",
abbr = "US %route%"}
NJ["US-Bus"] = {shield = NJ.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]New Jersey)",
abbr = "US %route% Bus"}
NJ["US-Alt"] = {shield = NJ.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]New Jersey)",
abbr = "US %route% Alt"}
NJ["US-Truck"] = {shield = NJ.US.shield,
link = "U.S. Route %route% Truck ([dab||%dab%, |]New Jersey)",
abbr = "US %route% Truck"}
NJ["US 1926"] = {shield = "US %route% New Jersey 1926.svg",
link = NJ.US.link,
abbr = NJ.US.abbr}
NJ["US 1948"] = {shield = "US %route% New Jersey 1948.svg",
link = NJ.US.link,
abbr = NJ.US.abbr}
NJ.SR = {shield = "Ellipse sign %route%.svg",
link = "New Jersey Route %route% [dab||(%dab%)|]",
abbr = "Route %route%"}
NJ.NJ = NJ.SR
NJ.Route = NJ.SR
NJ["SR-Bus"] = {shield = NJ.SR.shield,
link = "New Jersey Route %route% Business [dab||(%dab%)|]",
abbr = "Route %route% Bus"}
NJ["NJ-Bus"] = NJ["SR-Bus"]
NJ["SR-Alt"] = {shield = NJ.SR.shield,
link = "New Jersey Route %route% Alternate [dab||(%dab%)|]",
abbr = "Route %route% Alt"}
NJ["NJ-Alt"] = NJ["SR-Alt"]
NJ["SR-Byp"] = {shield = NJ.SR.shield,
link = "New Jersey Route %route% Bypass [dab||(%dab%)|]",
abbr = "Route %route% Byp"}
NJ["NJ-Byp"] = NJ["SR-Byp"]
NJ["SR 1956"] = {shield = "NJ %route% (1956).svg",
link = "New Jersey Route %route% [dab||(%dab%)|]",
abbr = "Route %route%"}
NJ["NJ 1956"] = NJ["SR 1956"]
NJ["SR-old"] = {shield = "NJ %route% (cutout).svg",
link = "New Jersey Route %route% [dab||(%dab%)|]",
abbr = "Route %route%"}
NJ["NJ-old"] = NJ["SR-old"]
NJ.NJTP = {shield = "New Jersey Turnpike Shield.svg",
link = "New Jersey Turnpike",
abbr = "NJ Tpk"}
NJ.GSP = {shield = "GSPkwy Shield.svg",
link = "Garden State Parkway",
abbr = "G.S. Pkwy"}
NJ.ACE = {shield = "Atlantic City Expressway.svg",
link = "Atlantic City Expressway",
abbr = "AC Exwy"}
NJ.ACBC = {shield = "Atlantic City Expy Connector.svg",
link = "Atlantic City – Brigantine Connector",
abbr = "ACE Conn"}
NJ.PIP = {shield = "Palisades Interstate Pkwy.svg",
link = "Palisades Interstate Parkway",
abbr = "Palisades Pkwy"}
NJ.OD = {shield = "Ocean Drive NJ.svg",
link = "Ocean Drive (New Jersey)",
abbr = "Ocean Drive"}
DE.NJTP = NJ.NJTP -- Defined here for technical reasons
--delete this one below when the fancier NJ.CR works
NJ.CR = {shield = "[county|Bergen|Bergen County %route% NJ.svg|CR %route% jct.svg]",
link = "",
abbr = "CR %route%"}
--[[ NJ.CR = {shield = "[county|Bergen|Bergen County %route% NJ.svg|CR %route% jct.svg]",
link = if (%route% >= "500" and %route% < "600") then "County Route %route% (New Jersey)"
else "County Route %route% (%county% County, New Jersey)"
end
abbr = "CR %route%"}
--]]
NJ["CR-Alt"] = {shield = NJ.CR.shield,
link = "County Route %route% Alternate ([county||%county% County, |]New Jersey)",
abbr = "CR %route% Alt"}
NJ["CR-Byp"] = {shield = NJ.CR.shield,
link = "County Route %route% Bypass ([county||%county% County, |]New Jersey)",
abbr = "CR %route% Byp"}
NJ["CR-Spur"] = {shield = NJ.CR.shield,
link = "County Route %route% Spur ([county||%county% County, |]New Jersey)", --ifexist
abbr = "CR %route% Spur"}
NJ["CR-Truck"] = {shield = NJ.CR.shield,
link = "County Route %route% Truck ([county||%county% County, |]New Jersey)",
abbr = "CR %route% Truck"}
--New Mexico
local NM = {}
USA.NM = NM
NM.I = {shield = "I-%route%.svg",
link = "Interstate %route% (New Mexico)",
abbr = "I‑%route%"}
NM.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]New Mexico)",
abbr = "I‑%route% Bus"}
NM.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in New Mexico",
abbr = "US %route%"}
NM["US-Alt"] = {shield = NM.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]New Mexico)",
abbr = "US %route% Alt"}
NM["US-Bus"] = {shield = NM.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]New Mexico)",
abbr = "US %route% Bus"}
NM.NM = {shield = "New Mexico %route%.svg",
link = "New Mexico State Road %route%",
abbr = "NM %route%"}
--New York
local NY = {}
USA.NY = NY
NY.I = {shield = "I-%route%.svg",
link = "Interstate %route% (New York)",
abbr = "I‑%route%"}
NY.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]New York)",
abbr = "I‑%route% Bus"}
NY.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in New York",
abbr = "US %route%"}
NY["US-Bus"] = {shield = NY.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]New York)",
abbr = "US %route% Bus"}
NY["US-Truck"] = {shield = NY.US.shield,
link = "U.S. Route %route% Truck ([dab||%dab%, |]New York)",
abbr = "US %route% Truck"}
NY.NY = {shield = "NY-%route%.svg",
link = "New York State Route %route% [dab||(%dab%)|]",
abbr = "NY %route%"}
NY.SR = NY.NY
NY["NY-Alt"] = {shield = NY.NY.shield,
link = "New York State Route %route% Alternate [dab||(%dab%)|]",
abbr = "NY %route% Alt"}
NY["NY-Bus"] = {shield = NY.NY.shield,
link = "New York State Route %route% Business [dab||(%dab%)|]",
abbr = "NY %route% Bus"}
NY["NY-Spur"] = {shield = NY.NY.shield,
link = "New York State Route %route% Spur [dab||(%dab%)|]",
abbr = "NY %route% Spur"}
NY["NY-Truck"] = {shield = NY.NY.shield,
link = "New York State Route %route% Truck [dab||(%dab%)|]",
abbr = "NY %route% Truck"}
NY.NYST = {shield = "NYS Thruway Sign.svg",
link = "New York State Thruway",
abbr = "Thruway"}
NY.CR = {shield = "CR %route% jct.svg", --needs by-county switch
link = "County Route %route% (%county% County, New York)", --ifexist
abbr = "CR %route%"}
NY.ILR = {shield = "Rochester Inner Loop.svg",
link = "Inner Loop (Rochester)",
abbr = "Inner Loop"}
NY.LSEX = {shield = "LaSalle Expy.svg",
link = "LaSalle Expressway",
abbr = "LaSalle Expy"}
NY.STE = {shield = "Southern Tier Expressway.svg",
link = "Southern Tier Expressway",
abbr = "Southern Tier Expy"}
NY.Parkway = {shield = {default = "%route% Pkwy Shield.svg",
Bay = "",
["Long Mountain"] = ""},
link = {default = "%route% Parkway [dab||(%dab%)|]",
["Arden Valley"] = "Arden Valley Road",
["Tiorati Brook"] = "Tiorati Brook Road",
Northern = "Northern State Parkway",
Southern = "Southern State Parkway",
Taconic = "Taconic State Parkway",
["Bear Mountain"] = "Bear Mountain State Parkway",
["Lake Ontario"] = "Lake Ontario State Parkway",
Sagtikos = "Sagtikos State Parkway",
Meadowbrook = "Meadowbrook State Parkway",
Bethpage = "Bethpage State Parkway",
Wantagh = "Wantagh State Parkway",
Hecksher = "Hecksher State Parkway",
["Sunken Meadow"] = "Sunken Meadow State Parkway",
Caumsett = "Caumsett State Parkway",
["Robert Moses"] = "Robert Moses State Parkway",
FDR = "Franklin D. Roosevelt East River Drive",
["Harlem River"] = "Harlem River Drive",
["Seven Lakes"] = "Seven Lakes Drive",
Palisades = "Palisades Interstate Parkway",
["Saw Mill"] = "Saw Mill River Parkway",
["Robert Moses Cswy"] = "Robert Moses Causeway"},
abbr = {default = "%route% Pkwy",
["Arden Valley"] = "Arden Valley Road",
["Tiorati Brook"] = "Tiorati Brook Road",
Northern = "Northern State Pkwy",
Southern = "Southern State Pkwy",
FDR = "FDR Drive",
["Harlem River"] = "Harlem River Drive",
["Seven Lakes"] = "Seven Lakes Drive",
["Saw Mill"] = "Saw Mill River Pkwy",
["Robert Moses Cswy"] = "Robert Moses Causeway"}
}
NY.NJ = NJ.SR
NY.CT = CT.CT
NY.Tour = Tour
--North Carolina
local NC = {}
USA.NC = NC
NC.I = {shield = "I-%route%.svg",
link = "Interstate %route% (North Carolina)",
abbr = "I‑%route%"}
NC.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]North Carolina)",
abbr = "I‑%route% Bus"}
NC.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in North Carolina",
abbr = "US %route%"}
NC["US-Alt"] = {shield = NC.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]North Carolina)",
abbr = "US %route% Alt"}
NC["US-Bus"] = {shield = NC.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]North Carolina)",
abbr = "US %route% Bus"}
NC["US-Byp"] = {shield = NC.US.shield,
link = "U.S. Route %route% Bypass ([dab||%dab%, |]North Carolina)",
abbr = "US %route% Byp"}
NC.NC = {shield = "NC %route%.svg",
link = "North Carolina Highway %route%",
abbr = "NC %route%"}
NC["NC-Bus"] = {shield = NC.NC.shield,
link = "North Carolina Highway %route% Business [dab||(%dab%)|]",
abbr = "NC %route% Bus"}
NC["NC-Byp"] = {shield = NC.NC.shield,
link = "North Carolina Highway %route% Bypass [dab||(%dab%)|]",
abbr = "NC %route% Byp"}
--North Dakota
local ND = {}
USA.ND = ND
ND.I = {shield="I-%route%.svg",
link = "Interstate %route% (North Dakota)",
abbr = "I‑%route%"}
ND.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in North Dakota",
abbr = "US %route%"}
ND.ND = {shield = "North Dakota %route%.svg",
link = "North Dakota Highway %route% [dab||(%dab%)|]",
abbr = "ND %route%"}
ND.SR = ND.ND
ND["ND-Alt"] = {shield = "North Dakota %route%.svg",
link = "North Dakota Highway %route% Alternate [dab||(%dab%)|]",
abbr = "ND %route%A"}
ND["US-Bus"] = {shield = ND.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]North Dakota)",
abbr = "US %route% Bus"}
ND["US-Truck"] = {shield = ND.US.shield,
link = "U.S. Route %route% Truck ([dab||%dab%, |]North Dakota)",
abbr = "US %route% Truck"}
ND.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]North Dakota)",
abbr = "I‑%route% Bus"}
ND.BIA = {shield = "Indian Route %route%.svg",
link = "",
abbr = "BIA Rd. %route%"}
ND.CR = {shield = "CR %route% jct.svg",
link = "",
abbr = "CR %route%"}
--Ohio
local OH = {}
USA.OH = OH
OH.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Ohio)",
abbr = "I‑%route%"}
OH.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Ohio)",
abbr = "I‑%route% Bus"}
OH.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Ohio",
abbr = "US %route%"}
OH["US-Alt"] = {shield = OH.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Ohio)",
abbr = "US %route% Alt"}
OH["US-Truck"] = {shield = OH.US.shield,
link = "U.S. Route %route% Truck ([dab||%dab%, |]Ohio)",
abbr = "US %route% Truck"}
OH.OH = {shield = "OH-%route%.svg",
link = "Ohio State Route %route% [dab||(%dab%)|]",
abbr = "SR %route%"}
OH.SR = OH.OH
OH.Lincoln = {shield = "LincolnHighwayMarker.svg",
link = "Lincoln Highway in Ohio",
abbr = "Lincoln Highway"}
OH.OHTP = {shield = "OhioTurnpike.svg",
link = "Ohio Turnpike",
abbr = "Ohio Tpk"}
OH.CR = {shield = "CR %route% jct.svg", --by-county switch needed
link = "",
abbr = "CR %route%"}
OH.Tour = Tour
--Oklahoma
local OK = {}
USA.OK = OK
OK.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Oklahoma)",
abbr = "I‑%route%"}
OK.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Oklahoma)",
abbr = "I‑%route% Bus"}
OK.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Oklahoma",
abbr = "US-%route%"}
OK["US-Alt"] = {shield = OK.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Oklahoma)",
abbr = "US-%route% Alt"}
OK["US-Bus"] = {shield = OK.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Oklahoma)",
abbr = "US-%route% Bus"}
OK.Turnpike = {shield = "%route% Turnpike.svg",
link = "%route% Turnpike",
abbr = "%route% Tpk"}
OK.SH = {shield = "Oklahoma State Highway %route%.svg",
link = "Oklahoma State Highway %route% [dab||(%dab%)|]",
abbr = "SH-%route%"}
OK.OK = OK.SH
OK["SH-Bus"] = {shield = OK.SH.shield,
link = "Oklahoma State Highway %route% Business [dab||(%dab%)|]",
abbr = "SH-%route% Bus"}
OK["OK-Bus"] = OK["SH-Bus"]
OK["SH-Byp"] = {shield = OK.SH.shield,
link = "Oklahoma State Highway %route% Bypass [dab||(%dab%)|]",
abbr = "SH-%route% Byp"}
OK["OK-Byp"] = OK["SH-Byp"]
OK["SH-Loop"] = {shield = OK.SH.shield,
link = "Oklahoma State Highway %route% Loop [dab||(%dab%)|]",
abbr = "SH-%route% Loop"}
OK["OK-Loop"] = OK["SH-Loop"]
OK["SH-Spur"] = {shield = "Oklahoma State Highway %route%[route|7| Spur|].svg",
link = "Oklahoma State Highway %route% Spur [dab||(%dab%)|]",
abbr = "SH-%route% Spur"}
OK["OK-Spur"] = OK["SH-Spur"]
OK["SH-Truck"] = {shield = OK.SH.shield,
link = "Oklahoma State Highway %route% Truck [dab||(%dab%)|]",
abbr = "SH-%route% Truck"}
OK["OK-Truck"] = OK["SH-Truck"]
--Oregon
local OR = {}
USA.OR = OR
OR.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Oregon)",
abbr = "I‑%route%"}
OR.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Oregon)",
abbr = "I‑%route% Bus"}
OR.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Oregon",
abbr = "US %route%"}
OR["US-Bus"] = {shield = OR.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Oregon)",
abbr = "US %route% Bus"}
OR["US-Byp"] = {shield = OR.US.shield,
link = "U.S. Route %route% Bypass ([dab||%dab%, |]Oregon)",
abbr = "US %route% Byp"}
OR["US-Spur"] = {shield = OR.US.shield,
link = "U.S. Route %route% Spur ([dab||%dab%, |]Oregon)",
abbr = "US %route%S"}
OR.OR = {shield = "OR %route%.svg",
link = "Oregon Route %route% [dab||(%dab%)|]",
abbr = "OR %route%"}
OR["OR-Bus"] = {shield = "OR %route%.svg",
link = "Oregon Route %route% Business",
abbr = "OR %route% Bus"}
OR.CA=CA.CA
--Pennsylvania
local PA = {}
USA.PA = PA
PA.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Pennsylvania)",
abbr = "I‑%route%"}
PA["I 1957"] = {shield = "I-%route% (PA 1957).svg",
link = "Interstate %route% (Pennsylvania)",
abbr = "I‑%route%"}
PA.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Pennsylvania)",
abbr = "I‑%route% Bus"}
PA.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Pennsylvania",
abbr = "US %route%"}
PA["US-Bus"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Business ([dab||%dab%, |]Pennsylvania)",
abbr = "US %route% Bus"}
PA["US-Byp"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Bypass ([dab||%dab%, |]Pennsylvania)",
abbr = "US %route% Byp"}
PA["US-Alt"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Pennsylvania)",
abbr = "US %route% Alt"}
PA["US-Truck"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Truck ([dab||%dab%, |]Pennsylvania)",
abbr = "US %route% Truck"}
PA["US 1926"] = {shield = "US %route% Pennsylvania 1926.svg",
link = "U.S. Route %route% in Pennsylvania",
abbr = "US %route%"}
PA["US 1948"] = {shield = "US %route% Pennsylvania 1948.svg",
link = "U.S. Route %route% in Pennsylvania",
abbr = "US %route%"}
PA["US 1961"] = {shield = "US %route% (1961 cutout).svg",
link = "U.S. Route %route% in Pennsylvania",
abbr = "US %route%"}
PA.SR = {shield = "PA-%route%.svg",
link = "Pennsylvania Route %route% [dab||(%dab%)|]",
abbr = "PA %route%"}
PA.PA = PA.SR
PA["SR-Bus"] = {shield = "PA-%route%.svg",
link = "Pennsylvania Route %route% Business [dab||(%dab%)|]",
abbr = "PA %route% Bus"}
PA["PA-Bus"] = PA["SR-Bus"]
PA["SR-Byp"] = {shield = "PA-%route%.svg",
link = "Pennsylvania Route %route% Bypass [dab||(%dab%)|]",
abbr = "PA %route% Byp"}
PA["PA-Byp"] = PA["SR-Byp"]
PA["SR-Alt"] = {shield = "PA-%route%.svg",
link = "Pennsylvania Route %route% Alternate [dab||(%dab%)|]",
abbr = "PA %route% Alt"}
PA["PA-Alt"] = PA["SR-Alt"]
PA["SR-Truck"] = {shield = "PA-%route%.svg",
link = "Pennsylvania Route %route% Truck [dab||(%dab%)|]",
abbr = "PA %route% Truck"}
PA["PA-Truck"] = PA["SR-Truck"]
PA["SR 1962"] = {shield = "PA-%route% (1962).svg",
link = "Pennsylvania Route %route% [dab||(%dab%)|]",
abbr = "PA %route%"}
PA["PA 1962"] = PA["SR 1962"]
PA["SR 1960"] = {shield = "PA-%route% (1960).svg",
link = "Pennsylvania Route %route% [dab||(%dab%)|]",
abbr = "PA %route%"}
PA["PA 1960"] = PA["SR 1960"]
PA["SR 1948"] = {shield = "PA-%route% (1948).svg",
link = "Pennsylvania Route %route% [dab||(%dab%)|]",
abbr = "PA %route%"}
PA["PA 1948"] = PA["SR 1948"]
PA["SR 1926"] = {shield = "PA-%route% (1926).svg",
link = "Pennsylvania Route %route% [dab||(%dab%)|]",
abbr = "PA %route%"}
PA["PA 1926"] = PA["SR 1926"]
PA.DE = DE.SR
PA.NJ = NJ.SR
PA.PATP = {shield = "Pennsylvania Turnpike logo.svg",
link = "Pennsylvania Turnpike",
abbr = "Penna. Tpk"}
PA.PANE = {shield = "Pennsylvania Turnpike logo.svg",
link = "Pennsylvania Turnpike Northeast Extension",
abbr = "Penna. Tpk. NE Ext"}
PA.Toll = {shield = "Turnpike-%route%.svg",
link = "Pennsylvania Route %route% [dab||(%dab%)|]",
abbr = "Toll PA %route%"}
PA.QR = {shield = "",
link = "",
abbr = "SR %route%"}
PA.Tour = Tour
PA.Belt = {shield = "Pittsburgh PA %route% Belt shield.svg",
link = "%route% Belt (Pittsburgh)",
abbr = "%route% Belt"}
NJ.PA = PA.SR
NY.PA = PA.SR -- Out-of-place definitions for technical reasons
--Puerto Rico
local PR = {}
USA.PR = PR
PR.I = {shield = "I-PR%route%.svg",
link = "Interstate PR%route%",
abbr = "PRI-%route%"}
PR.PR = {shield = "PR primary %route%.svg",
link = "Puerto Rico Highway %route% [dab||(%dab%)|]",
abbr = "PR-%route%"}
PR.Urban = {shield = "PR urban primary %route%.svg",
link = "Puerto Rico Highway %route% [dab||(%dab%)|]",
abbr = "PR-%route%"}
--TODO: <100 should use circle shields!
PR.Ter = {shield = "PR tertiary %route%.svg",
link = "Puerto Rico Highway %route% [dab||(%dab%)|]",
abbr = "PR-%route%"}
PR.Sec = {shield = "PR secondary %route%.svg",
link = "Puerto Rico Highway %route% [dab||(%dab%)|]",
abbr = "PR-%route%"}
--Rhode Island
local RI = {}
USA.RI = RI
RI.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Rhode Island)",
abbr = "I‑%route%"}
RI.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Rhode Island",
abbr = "US %route%"}
RI.RI = {shield = "Rhode Island %route%.svg",
link = "Rhode Island Route %route% [dab||(%dab%)|]",
abbr = "Route %route%"}
RI.Route=RI.RI
RI.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Rhode Island)",
abbr = "I‑%route% Bus"}
RI.BS = {shield = "Business Spur %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Rhode Island)",
abbr = "I‑%route% Bus"}
--South Carolina
local SC = {}
USA.SC = SC
SC.I = {shield = "I-%route%.svg",
link = "Interstate %route% (South Carolina)",
abbr = "I‑%route%"}
SC.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]South Carolina)",
abbr = "I‑%route% Bus"}
SC.BS = {shield = "Business Spur %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]South Carolina)",
abbr = "I‑%route% Bus"}
SC.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in South Carolina",
abbr = "US %route%"}
SC["US-Alt"] = {shield = SC.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]South Carolina)",
abbr = "US %route% Alt"}
SC["US-Bus"] = {shield = SC.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]South Carolina)",
abbr = "US %route% Bus"}
SC["US-Byp"] = {shield = SC.US.shield,
link = "U.S. Route %route% Bypass ([dab||%dab%, |]South Carolina)",
abbr = "US %route% Byp"}
SC.SC = {shield = "South Carolina %route%.svg",
link = "South Carolina Highway %route%",
abbr = "SC %route%"}
SC["SC-Alt"] = {shield = SC.SC.shield,
link = "South Carolina Highway %route% Alternate [dab||(%dab%)|]",
abbr = "SC %route% Alt"}
SC["SC-Bus"] = {shield = SC.SC.shield,
link = "South Carolina Highway %route% Business [dab||(%dab%)|]",
abbr = "SC %route% Bus"}
--South Dakota
local SD = {}
USA.SD = SD
SD.I = {shield = "I-%route%.svg",
link = "Interstate %route% (South Dakota)",
abbr = "I‑%route%"}
SD.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in South Dakota",
abbr = "US %route%"}
SD.SD = {shield = "SD %route%.svg",
link = "South Dakota Highway %route% [dab||(%dab%)|]",
abbr = "SD %route%"}
SD["SD-Bus"] = {shield = "SD %route%.svg",
link = "South Dakota Highway %route% Business",
abbr = "SD %route% Bus"}
SD.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]South Dakota)",
abbr = "I‑%route% Bus"}
SD.BS = {shield = "Business Spur %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]South Dakota)",
abbr = "I‑%route% Bus"}
SD["US-Bus"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Business ([dab||%dab%, |]South Dakota)",
abbr = "US %route% Bus"}
SD["US-Truck"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Truck ([dab||%dab%, |]South Dakota)",
abbr = "US %route% Truck"}
SD["US-Alt"] = {shield = "US %route%.svg",
link = "U.S. Route %route% Alternate ([dab||%dab%, |]South Dakota)",
abbr = "US %route% Alt"}
SD.CR = {shield = "CR %route% jct.svg",
link = "",
abbr = "CR %route%"}
--Tennessee
local TN = {}
USA.TN = TN
TN.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Tennessee)",
abbr = "I‑%route%"}
TN.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Tennessee",
abbr = "US %route%"}
TN["US-Alt"] = {shield = TN.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Tennessee)",
abbr = "US %route% Alt"}
TN["US-Bus"] = {shield = TN.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Tennessee)",
abbr = "US %route% Bus"}
TN["US-Byp"] = {shield = TN.US.shield,
link = "U.S. Route %route% Bypass ([dab||%dab%, |]Tennessee)",
abbr = "US %route% Byp"}
TN.TN = {shield = "Tennessee %route%.svg",
link = "Tennessee State Route %route%",
abbr = "SR %route%"}
TN.SR = TN.TN
TN.Sec = {shield = "Secondary Tennessee %route%.svg",
link = TN.TN.link, --ifexist
abbr = TN.TN.abbr}
TN.NTP = {shield = "Natchez Trace Parkway Logo.gif",
link = "Natchez Trace Parkway",
abbr = "Natchez Trace Pkwy"}
--Texas
local TX = {}
USA.TX = TX
--Interstate types
TX.I = { shield = "I-%route%.svg",
link = "Interstate %route% (Texas)",
abbr = "I‑%route%" }
TX.BL = { shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Texas)",
abbr = "I‑%route% Bus" }
TX.BS = { shield = "Business Spur %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Texas)",
abbr = "I‑%route% Bus" }
--US types
TX.US = { shield = "US %route%.svg",
link = "U.S. Route %route% in Texas",
abbr = "US %route%" }
TX["US-Alt"] = {shield = TX.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Texas)",
abbr = "US %route% Alt"}
TX["US-Bus"] = {shield = TX.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Texas)",
abbr = "US %route% Bus"}
TX["US-Hist"] = { shield = "US %route% (historic).svg",
link = TX.US.link,
abbr = "Historic US %route%" }
--SH (main) types
TX.SH = { shield = "Texas %route%.svg",
link = "Texas State Highway %route% [dab||(%dab%)|]",
abbr = "SH %route%" }
TX.TX = TX.SH
TX["SH-Bus"] = { shield = TX.SH.shield,
link = "Texas State Highway %route% Business [dab||(%dab%)|]",
abbr = "SH %route% Bus" }
TX["TX-Bus"] = TX["SH-Bus"]
TX["SH-old"] = { shield = "Old Texas %route%.svg",
link = TX.SH.link,
abbr = TX.SH.abbr }
TX["TX-old"] = TX["SH-old"]
--Toll types
TX.Toll = { shield = "Toll Texas %route% new.svg",
link = TX.SH.link,
abbr = TX.SH.abbr }
TX.Both = { shield = {"Texas %route%.svg", "Toll Texas %route% new.svg"},
link = "Texas State Highway %route%",
abbr = "SH %route%" }
TX.CCTR = { shield = "Toll Texas 255 new.svg",
link = "Texas State Highway 255",
abbr = "SH 255 (Camino Colombia Toll Road)" }
TX.CTRMA = { shield = "%route% Toll Road free.svg",
link = "%route% Toll Road",
abbr = "%route% Toll Road" }
TX.DNT = { shield = "Dallas North Tollway.svg",
link = "Dallas North Tollway",
abbr = "Dallas North Tollway" }
TX.PGBT = { shield = "",
link = "President George Bush Turnpike",
abbr = "President George Bush Turnpike" }
TX.SRT = { shield = "Sam Rayburn Tollway.svg",
link = "Sam Rayburn Tollway",
abbr = "Sam Rayburn Tollway" }
--Other SH types
TX.Beltway = { shield = "Texas Beltway %route%.svg",
link = "Texas State Highway Beltway %route%",
abbr = "Beltway %route%" }
TX.Loop = { shield = "Texas Loop %route%.svg",
link = "Texas State Highway Loop %route%",
abbr = "Loop %route%" }
TX.Spur = {shield = "Texas Spur %route%.svg",
link = "Texas State Highway Spur %route%",
abbr = "Spur %route%"}
TX.Park = { shield = "Texas Park Road %route%.svg",
link = "Texas Park Road %route%",
abbr = "PR %route%" }
TX.NASA = { shield = "Texas NASA Road %route%.svg",
link = "NASA Road %route%",
abbr = "NASA %route%" }
TX.INTL = { shield = "",
link = "International Parkway",
abbr = "International Parkway" }
--FM/RM types
TX.FM = { shield = "Texas FM %route%.svg",
link = "",
abbr = "FM %route%" }
TX["FM-Bus"] = { shield = "Texas Business FM %route%.svg",
link = "",
abbr = "FM %route% Bus" }
TX["FM-Loop"] = { shield = TX.Loop.shield,
link = "",
abbr = "FM Loop %route%" }
TX["FM-Spur"] = { shield = TX.Spur.shield,
link = "",
abbr = "FM Spur %route%" }
TX.RM = { shield = "Texas RM %route%.svg",
link = "",
abbr = "RM %route%" }
TX.RE = { shield = "Texas Recreational Road %route%.svg",
link = "Texas Recreational Road %route%",
abbr = "RE %route%" }
TX.CR = { shield = "",
link = "",
abbr = "CR %route%" }
--Utah
local UT = {}
USA.UT = UT
UT.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Utah)",
abbr = "I‑%route%"}
UT.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Utah)",
abbr = "I‑%route% Bus"}
UT.BS = {shield = "Business Spur %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Utah)",
abbr = "I‑%route% Bus"}
UT.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Utah",
abbr = "US %route%"}
UT["US-Alt"] = {shield = UT.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Utah)",
abbr = "US %route% Alt"}
UT["US-Bus"] = {shield = UT.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Utah)",
abbr = "US %route% Bus"}
UT.UT = {shield = "[route|281-320||Utah SR %route%.svg]",
link = "[route|281-320|List of state highways serving Utah state parks and institutions |Utah State Route %route% [dab||(%dab%)|]]",
abbr = "[route|281-320|SR‑281 to SR‑320|SR‑%route%]"}
UT.SR = UT.UT
--Vermont
local VT = {}
USA.VT = VT
VT.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Vermont)",
abbr = "I‑%route%"}
VT.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Vermont",
abbr = "US %route%"}
VT["US-Alt"] = {shield = VT.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Vermont)",
abbr = "US %route% Alt"}
VT["US-Bus"] = {shield = VT.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Vermont)",
abbr = "US %route% Bus"}
VT["US-Truck"] = {shield = VT.US.shield,
link = "U.S. Route %route% Truck ([dab||%dab%, |]Vermont)",
abbr = "US %route% Truck"}
VT.VT = {shield = "Vermont %route%.svg",
link = "Vermont Route %route%",
abbr = "VT %route%"}
VT.Town = {shield = "Ellipse sign %route%.svg", --There's a switch function here for two of the routes.
link = "Vermont Route %route%",
abbr = "VT %route%"}
--Virgin Islands
local VI = {}
USA.VI = VI
VI= {shield = "Circle sign %route%.svg",
link = "U.S. Virgin Islands Highway %route% [dab||(%dab%)|]",
abbr = "Hwy %route%"}
--Virginia
local VA = {}
USA.VA = VA
VA.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Virginia)",
abbr = "I‑%route%"}
VA.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Virginia",
abbr = "US %route%"}
VA["US-Alt"] = {shield = VA.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Virginia)",
abbr = "US %route% Alt"}
VA["US-Bus"] = {shield = VA.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Virginia)",
abbr = "US %route% Bus"}
--Washington
local WA = {}
USA.WA = WA
WA.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Washington)",
abbr = "I‑%route%"}
WA.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Washington",
abbr = "US %route%"}
WA["US-Bus"] = {shield = WA.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Washington)",
abbr = "US %route% Bus"}
WA["US-Alt"] = {shield = WA.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Washington)",
abbr = "US %route% Alt"}
WA["US-Truck"] = {shield = WA.US.shield,
link = "U.S. Route %route% Truck ([dab||%dab%, |]Washington)",
abbr = "US %route% Truck"}
WA["US-Spur"] = {shield = WA.US.shield,
link = "U.S. Route %route% Spur ([dab||%dab%, |]Washington)",
abbr = "US %route% Spur"}
WA.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Washington)",
abbr = "I‑%route% Bus"}
WA.WA = {shield = "WA-%route%.svg",
link = "Washington State Route %route% [dab||(%dab%)|]",
abbr = "SR %route%"}
WA.SR=WA.WA
WA.FR = {shield = "Forest Route %route%.svg",
link = "",
abbr = "FR %route%"}
WA.PSH = {shield = "WA-PSH%route%.svg",
link = "Primary State Highway %route% (Washington)",
abbr = "PSH %route%"}
WA.SSH = {shield = "WA-SSH%route%.svg",
link = "Secondary State Highway %route% (Washington)",
abbr = "SSH %route%"}
WA["SR-Alt"] = {shield = "WA-%route%.svg",
link = "Washington State Route %route% Alternate",
abbr = "SR %route% Alt"}
WA["SR-Bus"] = {shield = "WA-%route%.svg",
link = "Washington State Route %route% Business",
abbr = "SR %route% Bus"}
WA["SR-ALT"] = WA["SR-Alt"]
WA["SR-Spur"] = {shield = "WA-%route%.svg",
link = "Washington State Route %route% Spur",
abbr = "SR %route% Spur"}
WA["WA-Spur"] = WA["SR-Spur"]
OR.WA=WA.WA
WA.OR=OR.OR
--West Virginia
local WV = {}
USA.WV = WV
WV.I = {shield = "I-%route%.svg",
link = "Interstate %route% (West Virginia)",
abbr = "I‑%route%"}
WV.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in West Virginia",
abbr = "US %route%"}
--Wisconsin
local WI = {}
USA.WI = WI
WI.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Wisconsin)",
abbr = "I‑%route%"}
WI.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Wisconsin)",
abbr = "I‑%route% Bus"}
WI.US = {shield = "US %route% (WI).svg",
link = "U.S. Route %route% in Wisconsin",
abbr = "US %route%"}
WI["US-Alt"] = {shield = WI.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Wisconsin)",
abbr = "US %route% Alt"}
WI["US-Bus"] = {shield = WI.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Wisconsin)",
abbr = "US %route% Bus"}
WI["US-Byp"] = {shield = WI.US.shield,
link = "U.S. Route %route% Bypass ([dab||%dab%, |]Wisconsin)",
abbr = "US %route% Byp"}
WI["US-Spur"] = {shield = WI.US.shield,
link = "U.S. Route %route% Spur ([dab||%dab%, |]Wisconsin)",
abbr = "US %route% Spur"}
WI.WI = {shield = "WIS %route%.svg",
link = "Wisconsin Highway %route% [dab||(%dab%)|]",
abbr = "WIS %route%"}
WI.STH = WI.WI
WI["WI-Bus"] = {shield = WI.WI.shield,
link = "Wisconsin Highway %route% Business",
abbr = "WIS %route% Bus"}
WI["WI-Spur"] = {shield = WI.WI.shield,
link = "Wisconsin Highway %route% Spur",
abbr = "WIS %route% Spur"}
WI.CTH = {shield = "WIS County %route%.svg",
link = "",
abbr = "CTH-%route%"}
WI.CR = WI.CTH
WI.Rustic = {shield = "Rustic Road.svg",
link = "Rustic Roads (Wisconsin)",
abbr = "Rustic Road %route%"}
WI.MN = MN.MN
WI.GRR = GRR
WI.Tour = Tour
--Wyoming
local WY = {}
USA.WY = WY
WY.I = {shield = "I-%route%.svg",
link = "Interstate %route% (Wyoming)",
abbr = "I‑%route%"}
WY.US = {shield = "US %route%.svg",
link = "U.S. Route %route% in Wyoming",
abbr = "US %route%"}
WY.WY = {shield = "WY-%route%.svg",
link = "Wyoming Highway %route% [dab||(%dab%)|]",
abbr = "WYO %route%"}
WY.WYO = WY.WY
WY["WY-Conn"] = {shield = WY.WY.shield,
link = "Wyoming Highway %route% Business",
abbr = "WYO %route% Conn"}
WY["WYO-Bus"] = WY["WY-Bus"]
WY.BL = {shield = "Business Loop %route%.svg",
link = "Interstate %route% Business ([dab||%dab%, |]Wyoming)",
abbr = "I‑%route% Bus"}
WY["US-Bus"] = {shield = WY.US.shield,
link = "U.S. Route %route% Business ([dab||%dab%, |]Wyoming)",
abbr = "US %route% Bus"}
WY["US-Truck"] = {shield = WY.US.shield,
link = "U.S. Route %route% Truck ([dab||%dab%, |]Wyoming)",
abbr = "US %route% Truck"}
WY["US-Alt"] = {shield = WY.US.shield,
link = "U.S. Route %route% Alternate ([dab||%dab%, |]Wyoming)",
abbr = "US %route% Alt"}
WY.CR = {shield = "CR %route% jct.svg",
link = "",
abbr = "CR %route%"}
return p