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

Content deleted Content added
m Changed protection level of Module:Road data/strings/USA/DC: Adjust per request, highly visible template. ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite))
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)
 
(24 intermediate revisions by 6 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&#8209;%route%"}
 
DC.I.link = "Interstate %route% (District of Columbia)",
DC["I-Alt"].banner = "Alt plate blue.svg",
 
DC["I 1957"].link = DC.I.link
DC["I 1961"].link = DC.I.link
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",
DC["US-Byp 1926"] = {shield.link = DC.US.shield,link
abbr = "US&nbsp;%route%"}
DC["US 1961"].shieldmain = "US %route% District of Columbia 1970.svg"
DC["US link1961"].shield = "U.S. RouteUS %route% in the District of Columbia 1970.svg",
DC["US 1961"].link = DC.US.link
DC["US 1970"] = DC["US 1961"]
DC["US-Alt"].link = "U.S. Route %route% Alternate" (Washington, D.C.)", suffix
DC["US-Alt"].banner = "Alt plate.svg",
DC["US-Byp"].link = "U.S. Route %route% Bypass" (Washington, D.C.)", suffix
 
DC["US 1926-Alt"] = {
shield = DC.["US 1926"].shield,
shieldmain = DC["US 1926"].shieldmain,
link = "U.S. Route %route% Alternate (Washington, D.C.)",
abbr name = DC["US&nbsp;%route% -Alt"]."name,
link = DC["US-Alt"].link,
banner = "Alt plate.svg",
abbr = DC["US-Alt"].abbr,
width = "expand"}
banner = "By-passAlternate plate 1927.svg",
 
nbrowse = DC["US 1926"].nbrowse,
DC["US-Byp"] = {shield = DC.US.shield,
nbrowselinks = DC["US 1926"].nbrowselinks
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 name = "District of Columbia Route %route%",
link = "District of Columbia Route abbr = "DC&nbsp;%route%"},
abbr = "IDC&#8209nbsp;%route%"},
orientation = "upright",
}
 
DC["DC 1926"] = DC.DC
DC["DC 1926"].orientation = ""
 
-- add new types above this line if you want it to have the state highway maint
for k, v in pairs(DC) do if k:find ("^%a") then
v.maint = "[[District of Columbia Department of Transportation|District of Columbia DOT]]"
end
end
 
DC["I-MD"] = {alias = {module = "USA/MD", type = "I"}}
DC["US-MD"] = {alias = {module = "USA/MD", type = "US"}}
 
return DC