--[==[
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"]`.
]==]
-- Alberta
local AB = {}
local util = require("Module:Road data/util")
local format = mw.ustring.format
util.addAll(AB, require("Module:Road data/strings/CAN"))
AB.Hwy = {
shield = {
default = "Alberta Highway %route%.svg",
["Stoney"] = "Alberta Highway 201.svg",
["Henday"] = "Alberta Highway 216.svg",
["17"] = {"Alberta Highway 17.svg", "Saskatchewan Highway 17 (jct).svg"},
["100"] = ""
},
shieldmain = {
default = "Alberta Highway %route%.svg",
["3"] = "Alberta Highway 3 (Crowsnest).svg",
["5"] = {"Alberta Highway %route%.svg", "Alberta Highway 22 (Cowboy Trail).svg"},
["6"] = {"Alberta Highway %route%.svg", "Alberta Highway 22 (Cowboy Trail).svg"},
["11"] = {"Alberta Highway %route%.svg", "Alberta Highway 11 (David Thompson).svg"},
["14"] = {"Alberta Highway %route%.svg", "Alberta Highway 14 (Poundmaker).svg"},
["16"] = {"Alberta Highway %route%.svg", "Yellowhead Blank.svg" }, -- "Alberta Yellowhead Highway.png" is non-free
["17"] = {"Alberta Highway %route%.svg", "Saskatchewan Highway %route% (jct).svg"},
["22"] = {"Alberta Highway %route%.svg", "Alberta Highway 22 (Cowboy Trail).svg"},
["33"] = {"Alberta Highway %route%.svg", "Alberta Highway 33 (Grizzly).png"},
["35"] = "Alberta Highway 35 (Mackenzie).png",
["36"] = {"Alberta Highway %route%.svg", "Alberta Highway 36 (Veteran Memorial).svg"},
["40"] = {"Alberta Highway %route%.svg", "Alberta Highway 40 (Bighorn).svg"},
["41"] = {"Alberta Highway %route%.svg", "Alberta Highway 41 (Buffalo Trail).svg"},
["49"] = {"Alberta Highway %route%.svg", "Northern Woods and Water Route (Alberta).svg"},
["55"] = {"Alberta Highway %route%.svg", "Northern Woods and Water Route (Alberta).svg"},
["60"] = {"Alberta Highway %route%.svg", "Alberta Highway 60 (Devonian).svg"},
["88"] = "Alberta Highway 88 (Bicentennial).png",
["100"] = "",
["Stoney"] = "Alberta Highway 201.svg",
["Henday"] = "Alberta Highway 216.svg",
},
name = {
default = "بزرگراه %route%",
["100"] = "آزادراه شروود پارک",
["201"] = "استونی تریل",
["Stoney"] = "استونی تریل",
["216"] = "جاده آنتونی هندی",
["Henday"] = "جاده آننتونی هندی"
},
link = {
default = "[dab||%dab%|بزرگراه %route% آلبرتا]",
["17"] = "بزرگراه ۱۷ (آلبرتا–ساسکاچوان)",
["100"] = "آزادراه شروود پارک",
["201"] = "استونی تریل",
["Stoney"] = "استونی تریل",
["216"] = "جاده آنتونی هندی",
["Henday"] = "جاده آنتونی هندی"
},
abbr = {
default = "بزرگراه %route%",
["100"] = "SPF",
["Stoney"] = "استونی",
["Henday"] = "هندی"
},
orientation = "upright"
}
AB.AB = AB.Hwy
AB.Sec = AB.Hwy
for k, v in pairs(AB) do if k:find ("TCH") then
v.shield = AB.Hwy.shield
v.shieldmain = AB.Hwy.shieldmain
v.name = AB.Hwy.name.default
v.link = AB.Hwy.link.default
v.abbr = AB.Hwy.abbr.default .. " (TCH)"
end
end
AB.PAR = {
shield = "",
link = "List of Alberta provincial highways#PAR %route%",
abbr = "پیایآر %route%"
}
AB.UAR = {
shield = "",
link = "List of Alberta provincial highways#UAR %route%",
abbr = "یوایآر %route%"
}
--historical route markers
for _,year in ipairs({"1930", "1960", "1970"}) do
AB["AB " .. year] = {
shield = format("Alberta Highway %%route%% (%ss).svg", year),
name = AB.AB.name,
link = AB.AB.link,
abbr = AB.AB.abbr,
orientation = "upright"
}
end
-- add new types above this line if you want it to have the provincial highway browse and maint
for k, v in pairs(AB) do if k:find ("^%a") then
v.maint = "وزارت ترابری آلبرتا"
v.browse = "[[List of Alberta provincial highways|بزرگراههای استانی در آلبرتا]]"
end
end
--for linking to US articles
AB.I = {alias = {module = "USA/MT", type = "I"}}
return AB