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

Content deleted Content added
add road
Undid revision 1138521732 by Imzadi1979 (talk); actually, this needs a wider discussion as these articles are all named by states (or state equivalents, which in this case is the district, not the city)
 
(20 intermediate revisions by 4 users not shown)
Line 1:
--[==[
--District of Columbia
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"]`.
]==]
 
-- District of Columbia
local DC = {}
 
local util = require("Module:Road data/util")
DC.I = {shield = "I-%route%.svg",
util.addAll(DC, require("Module:Road data/strings/USA"))
link = "Interstate %route% (District of Columbia)",
local suffix = " (Washington, D.C.)"
abbr = "I-%route%"}
 
DC[".I 1961"].link = {shield"Interstate = "I-%route% (1961District of Columbia).svg",
DC["I-Alt"].banner = "Alt plate blue.svg",
link = DC.I.link,
 
abbr = DC.I.abbr}
DC["I 1957"].link = DC.I.link,
DC["I 19571961"].link = {shield = "DC.I-%route% (1957).svg",link
link = DC.I.link,
abbr = DC.I.abbr}
DC["I-Alt"].link = {shield"Interstate =%route% Alternate" DC.I.shield, suffix
link = "Interstate %route% Alternate (Washington, D.C.)",
abbr = "I-%route% Alt.",
banner = "Alt plate.svg",
width = "expand"}
DC.US = {shield.link = "USU.S. Route %route%.svg in the District of Columbia",
link = "U.S. Route %route% in the District of Columbia",
abbr = "US&nbsp;%route%"}
DC["US 19611926"].link = {shield = "DC.US %route% (1961).svg",link
DC["US link1961"].shieldmain = "U.S. RouteUS %route% in the District of Columbia 1970.svg",
link = DC.US.link,
DC["US link1961"].shield = "InterstateUS %route% (District of Columbia) 1970.svg",
abbr = DC.US.abbr}
DC["US 1961"].link = DC.IUS.link,
DC["US 1970"] = DC["US 1961"]
DC["US 1948-Alt"] = {shield.link = "USU.S. Route %route% (1948).svgAlternate", .. suffix
DC["US-Alt"].banner = "Alt plate.svg",
link = DC.US.link,
DC["US-Byp"].link = "U.S. Route %route% Bypass" (Washington, D.C.)", suffix
abbr = DC.US.abbr}
 
DC["US 1926-Alt"] = {shield = "US %route% (1926).svg",
link shield = DC.["US 1926"].linkshield,
shieldmain = DC["US 1926"].shieldmain,
abbr = DC.US.abbr}
name = DC["US-Alt"].name,
link = DC.["US-Alt"].link,
abbr = DC.I["US-Alt"].abbr},
banner = "By-passAlternate plate 1927.svg",
nbrowse = DC["US 1926"].nbrowse,
nbrowselinks = DC["US 1926"].nbrowselinks
}
DC.DC = {
DC["US-Alt"] = {shield = DC.US.shield,
DC.I = { shield = "IDC-%route%.svg",
link = "U.S. Route %route% Alternate (Washington, D.C.)",
link name = "District of Columbia Route %route%",
abbr = "US&nbsp;%route% Alt.",
link = "District of Columbia Route %route%",
banner = "Alt plate.svg",
abbr = "I-DC&nbsp;%route%"},
width = "expand"}
orientation = "upright",
}
 
DC["US-BypDC 1926"] = {shield = DC.US.shield,DC
DC["DC 1926"].orientation = ""
link = "U.S. Route %route% Bypass (Washington, D.C.)",
abbr = "US&nbsp;%route% Byp.",
banner = "By-pass plate.svg",
width = "expand"}
DC.DC = {shield = "DC-%route%.svg",
link = "District of Columbia Route %route%",
abbr = "DC&nbsp;%route%"}
 
-- add new types above this line if you want it to have the state highway maint
DC["I-MD"] = {alias = {module = "USA/MD", type = "I"}}
for k, v in pairs(DC) do if k:find ("^%a") then
DC.road = {alias = {module = "USA", type = "road"}}
v.maint = "[[District of Columbia Department of Transportation|District of Columbia DOT]]"
end
end
 
DC["I-MD"] = {alias = {module = "USA/MD", type = "I"}}
DC.road["US-MD"] = {alias = {module = "USA/MD", type = "roadUS"}}
 
return DC