More actions
Documentation for this module may be created at Module:Road data/strings/USA/AK/doc
--[==[
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"]`.
]==]
-- Alaska
local AK = {}
local util = require("Module:Road data/util")
util.addAll(AK, require("Module:Road data/strings/USA"))
local suffix = " ([dab||%dab%, |]Alaska)"
AK.I.link = "Interstate A-%route%"
AK.I.name = "Interstate A-%route%"
AK.I.abbr = "A-%route%"
AK.I.shield = "I-A%route%.svg"
AK.US.link = "U.S. Route %route% in Alaska"
--Do not add USH special routes
AK.AK = {
shield = "Alaska %route% shield.svg",
name = "Alaska Route %route%",
link = "Alaska Route %route%",
abbr = "AK-%route%"
}
AK["AK-Bus"] = {
shield = "Alaska %route% Business shield.svg",
name = "Alaska Route %route% Business",
link = "Alaska Route %route% Business",
abbr = "AK-%route% Bus.",
banner = "Business plate green.svg",
bannersuffix = "green"
}
AK.Highway = {
name = {default = "%route% Highway",
["Chena Hot Springs"] = "%route% Road",
["Denali Park"] = "%route% Road",
Egan = "%route% Drive",
Johansen = "%route% Expressway",
McCarthy = "%route% Road",
["Minnesota Drive"] = "%route% Expressway",
["Salmon River"] = "%route% Road",
Tok = "%route% Cut-Off"
},
link = {default = "%route% Highway [dab||(%dab%)|]",
["Chena Hot Springs"] = "%route% Road",
["Denali Park"] = "%route% Road",
Egan = "%route% Drive",
Johansen = "%route% Expressway",
McCarthy = "%route% Road",
["Minnesota Drive"] = "%route% Expressway",
["Salmon River"] = "%route% Road",
Tok = "%route% Cut-Off"
},
abbr = {default = "%route% Highway",
["Chena Hot Springs"] = "%route% Road",
["Denali Park"] = "%route% Road",
Egan = "%route% Drive",
Johansen = "%route% Expressway",
McCarthy = "%route% Road",
["Minnesota Drive"] = "%route% Expressway",
["Salmon River"] = "%route% Road",
Tok = "%route% Cut-Off"}
}
AK.Hwy = AK.Highway
-- add new types above this line if you want it to have the state highway browse and maint
for k, v in pairs(AK) do if k:find ("^%a") then
v.maint = "[[Alaska Department of Transportation & Public Facilities|Alaska DOT&PF]]"
v.browse = "[[List_of_Alaska Routes|Alaska Routes]]"
v.browselinks = {
[1] = "[[List of Interstate Highways in Alaska|Interstate]]",
[2] = "[[List of Alaska Routes#U.S. Highways|US]]",
[3] = "[[Alaska's Scenic Byways|Scenic Byways]]"
}
end
end
return AK