پودمان:Road data/strings/USA/MD
ظاهر
--[==[
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"]`.
]==]
-- Maryland
local MD = {}
local util = require("Module:Road data/util")
util.addAll(MD, require("Module:Road data/strings/USA"))
local suffix = " ([dab||%dab%, |]مریلند)"
MD.I.link = {
["68"] = "بزرگراه میانایالتی ۶۸",
["97"] = "بزرگراه میانایالتی ۹۷",
["295"] = "بزرگراه میانایالتی ۲۹۵ (مریلند–ناحیه کلمبیا)",
["370"] = "بزرگراه میانایالتی ۳۷۰",
["495"] = "بزرگراه میانایالتی ۴۹۵ (کمربندی پایتخت)",
["495X"] = "پارکراه کابین جان",
default = {
hook = "split",
split = 100,
above = "بزرگراه میانایالتی %route% (مریلند)",
below = "بزرگراه میانایالتی %route% در مریلند"
}
}
for k, v in pairs(MD) do if mw.ustring.find (k, "^I") then
v.link = MD.I.link
end
end
MD["I-Spur"].link = "بزرگراه میانایالتی اختصاصی %route% (مریلند)"
MD["I-Express"].link = "بزرگراه میانایالتی %route% سریعالسیر (مریلند)"
MD["I-Express"].banner = "Toll plate yellow.svg"
MD.US.link = "جاده %route% ایالات متحده آمریکا در مریلند"
for k, v in pairs(MD) do if mw.ustring.find (k, "^US %d") then
v.name = MD.US.name
v.link = MD.US.link
end
end
for _,auxType in ipairs({"Alt", "Bus", "Byp", "City", "Conn", "Emerg", "Opt", "Scenic", "Spur", "Temp", "Toll", "Truck"}) do
local spec = MD[" aux "][auxType]
for k, v in pairs(MD) do if k:find (auxType) then if mw.ustring.find (k, "^US") then
v.banner = spec.banneralt .. " plate.svg"
v.link = MD.US.base .. " " .. spec.name .. " ([dab||%dab%, |]مریلند)"
end
end
end
end
for _,auxType in ipairs({"Bus"}) do
local spec = MD[" aux "][auxType]
for k, v in pairs(MD) do if k:find (auxType) then if k:find ("^US") then
v.shield = "US %route% Business (MD).svg"
v.link = MD.US.base .. " " .. spec.name .. " ([dab||%dab%, |]مریلند)"
v.banner = ""
v.bannersuffix = "Vermont"
end
end
end
end
MD["US 1926-Alt"] = {
shield = MD["US 1926"].shield,
shieldmain = MD["US 1926"].shieldmain,
name = MD["US-Alt"].name,
link = MD["US-Alt"].link,
abbr = MD["US-Alt"].abbr,
banner = "Alternate plate 1927.svg",
nbrowse = MD["US 1926"].nbrowse,
nbrowselinks = MD["US 1926"].nbrowselinks
}
MD.SR = {
base = "جاده %route% مریلند",
shield = "MD Route %route%.svg",
name = "جاده %route% مریلند",
link = "جاده %route% مریلند [dab||(%dab%)|]",
abbr = "MD %route%",
width = "expand"
}
MD.MD = MD.SR
for _,type in ipairs({'SR', 'MD'}) do
for _,auxType in ipairs({"Alt", "Byp", "Conn", "Spur", "Truck", "Toll"}) do
local spec = MD[" aux "][auxType]
MD[type .. "-" .. auxType] = {
shield = MD.SR.shield,
name = MD.SR.name .. " " .. spec.name,
link = MD.SR.base .. " " .. spec.name .. MD[" dab "],
abbr = MD.SR.abbr .. " " .. spec.abbrsuffix,
banner = spec.banneralt .. " plate.svg",
aux = spec.aux,
width = "expand",
}
end
end
MD["SR-Toll"].banner = "Toll plate yellow.svg"
MD["MD-Toll"].banner = MD["SR-Toll"].banner
for _,type in ipairs({'SR', 'MD'}) do
for _,auxType in ipairs({"Bus"}) do
local spec = MD[" aux "][auxType]
MD[type .. "-" .. auxType] = {
shield = "MD Route %route% Business.svg",
name = MD.SR.name .. " " .. spec.name,
link = MD.SR.base .. " " .. spec.name .. MD[" dab "],
abbr = MD.SR.abbr .. " " .. spec.abbrsuffix,
aux = spec.aux,
bannersuffix = "Vermont",
width = "expand",
}
end
end
MD.BWP = {
shield = "",
name = "پارکراه بالتیمور–واشینگتن",
link = "پارکراه بالتیمور–واشینگتن",
abbr = "پارکراه بالتیمور–واشینگتن"
}
MD.CBP = {
shield = "",
name = "پارکراه کلارا بارتون",
link = "پارکراه کلارا بارتون",
abbr = "پارکراه کلارا بارتون"
}
MD.CJP = {
shield = "",
name = "پارکراه کابین جان",
link = "پارکراه کابین جان",
abbr = "پارکراه کابین جان"
}
MD.COC = {
shield = "MD scenic byway.svg",
name = "Chesapeake and Ohio Canal Scenic Byway",
link = "Chesapeake and Ohio Canal Scenic Byway",
abbr = "C&O Canal Scenic Byway",
}
MD.SB = {
shield = {
default = "MD scenic byway.svg",
["1"] = "MUTCD D6-4.svg",
["5"] = "MUTCD D6-4.svg",
["11"] = "MUTCD D6-4.svg",
["16"] = "MUTCD D6-4.svg",
["17"] = {"MUTCD D6-4.svg", "MD scenic byway.svg"},
["18"] = "MUTCD D6-4.svg",
},
name = {
arg = "route",
["1"] = "#۱: جاده ملی تاریخی",
["2"] = "#۲: کوهستانی مریلند",
["3"] = "#۳: چیزاپیک و کانال اوهایو",
["4"] = "#۴: آنتیتام کمپین",
["5"] = "#۵: Journey Through Hallowed Ground",
["6"] = "#۶: خیابانهای اصلی قدیمی",
["7"] = "#۷: میسون و دیکسون",
["8"] = "#۸: جاده آبشار",
["9"] = "#۹: اسبها و سگها",
["10"] = "#۱۰: Lower Susquehanna",
["11"] = "#۱۱: خیابان چارلز",
["12"] = "#۱۲: بندر ملی تاریخی",
["13"] = "#۱۳: بنر ستارهدار",
["14"] = "#۱۴: بوتز اسکیپ",
["15"] = "#۱۵: روتز اند تایدز",
["16"] = "#۱۶: آزادی مذهب",
["17"] = "#17: کشور چیزاپیک",
["18"] = "#18: راهآهن زیرزمینی هریت تیوبمن",
["19"] = "#19: کیپ تو کیپ"
},
link = "List of Maryland Scenic Byways",
abbr = {
arg = "route",
["1"] = "#۱: جاده ملی تاریخی",
["2"] = "#۲: کوهستانی مریلند",
["3"] = "#۳: چیزاپیک و کانال اوهایو",
["4"] = "#۴: آنتیتام کمپین",
["5"] = "#۵: Journey Through Hallowed Ground",
["6"] = "#۶: خیابانهای اصلی قدیمی",
["7"] = "#۷: میسون و دیکسون",
["8"] = "#۸: جاده آبشار",
["9"] = "#۹: اسبها و سگها",
["10"] = "#۱۰: ساسکوهنای سفلا",
["11"] = "#۱۱: خیابان چارلز",
["12"] = "#۱۲: بندر ملی تاریخی",
["13"] = "#۱۳: بنر ستارهدار",
["14"] = "#۱۴: بوتز اسکیپ",
["15"] = "#۱۵: روتز اند تایدز",
["16"] = "#۱۶: آزادی مذهب",
["17"] = "#17: کشور چیزاپیک",
["18"] = "#18: راهآهن زیرزمینی هریت تیوبمن",
["19"] = "#19: کیپ تو کیپ"
}
}
-- add new types above this line if you want it to have the state highway browse and maint
for k, v in pairs(MD) do if mw.ustring.find (k, "^%a") then
v.maint = "[[Maryland State Highway Administration|MDSHA]]"
v.browse = "[[سامانه بزرگراهی مریلند]]"
v.browselinks = {
[1] = "[[List of Interstate Highways in Maryland|میانایالتی]]",
[2] = "[[List of U.S. Highways in Maryland|ایالات متحده]]",
[3] = "[[List of state highways in Maryland|ایالتی]]",
[4] = "[[Maryland Scenic Byways|گردشگری]]"
}
end
end
MD.MDJFK = {
shield = "MD JFK Highway.svg",
name = "بزرگراه یادبود جان اف. کندی",
link = "بزرگراه یادبود جان اف. کندی (مریلند)",
abbr = "بزرگراه یادبود جی. اف. کندی",
maint = "[[اداره ترابری مریلند]]"
}
for k, v in pairs(MD) do if mw.ustring.find (k, "Toll$") then
v.maint = MD.MDJFK.maint
end
end
MD.CR.maint = ""
MD.PA = {alias = {module = "USA/PA", type = "PA"}}
MD.WV = {alias = {module = "USA/WV", type = "WV"}}
MD.DEMD = {alias = {module = "USA/DE", type = "DEMD"}}
return MD