Modul:Road data/strings/USA/NH
Tampilan
--[==[
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"]`.
]==]
-- New Hampshire
local NH = {}
local util = require("Module:Road data/util")
util.addAll(NH, require("Module:Road data/strings/USA"))
local format = mw.ustring.format
--[[ REGION-SPECIFIC SETTINGS ]]--
local state = "New Hampshire"
NH[" common "].state = state
NH[" common "].region = state
NH[" common "].browse = {
{link = "New Hampshire Highway System", bold = true},
{
noprint = true,
{link = "List of Interstate Highways in New Hampshire", name = "Interstate"},
{link = "List of U.S. Routes in New Hampshire", name = "U.S."},
{link = "List of state routes in New Hampshire", name = "State"},
{link = "New Hampshire Turnpike System", name = "Turnpikes"}
}
}
--[[ ROUTE TYPES ]]--
local suffix = format(" ([dab||%%dab%%, |]%s)", state)
local maint = "[[New Hampshire Department of Transportation|NHDOT]]"
NH.I.shieldmain = {
["95"] = {NH.I.shield, "Blue Star Turnpike.svg"},
default = NH.I.shield
}
NH.I.shieldmainsize = {
arg = "route",
["95"] = {"", "x20"}
}
NH.I.link = NH.I.base .. " in New Hampshire"
NH.I.maint = maint
NH.BL.link = NH.I.base .. " Business" .. suffix
NH.BL.abbr = "I‑%route% BL"
NH.BS.link = NH.I.base .. " Business" .. suffix
NH.US.shield = "US %route% square.svg"
NH.US.link = NH.US.base .. " in New Hampshire"
NH.US.maint = maint
NH["US-Bus"].shield = NH.US.shield
NH["US-Bus"].link = NH.US.base .. " Business" .. suffix
NH["US-Bus"].maint = maint
NH["US-Byp"].shield = {
["1"] = "US %route% Bypass.svg",
default = "US %route%.svg"
}
NH["US-Byp"].link = NH.US.base .. " Bypass" .. suffix
NH["US-Byp"].banner = {
["1"] = "",
default = NH["US-Byp"].banner
}
NH["US-Bus"].maint = maint
NH.NH = {
shield = "NH Route %route%.svg",
name = "New Hampshire Route %route%",
link = "New Hampshire Route %route%",
abbr = "NH %route%",
maint = maint
}
NH["NH 1948"] = {
shield = {
hook = "splitlen",
split = 3,
above = "MA Route %route% square.svg",
below = "MA Route %route%.svg"
},
name = NH.NH.name,
link = NH.NH.link,
abbr = NH.NH.abbr
}
NH.Turnpike = {
shield = "%route% Turnpike.svg",
shieldsize = "x20",
name = "%route% Turnpike",
link = "%route% Turnpike",
abbr = "%route% Turnpike"
}
--util.addAll(NH, require("Module:Road data/strings/USA/regional/NER"))
NH.MA = {alias = {module = "USA/MA", type = "SR"}}
NH.VT = {alias = {module = "USA/VT", type = "VT"}}
NH["I-VT"] = {alias = {module = "USA/VT", type = "I"}}
NH["US-VT"] = {alias = {module = "USA/VT", type = "US"}}
return NH