Module:Road data/strings/CAN/BC: Difference between revisions

Content deleted Content added
Added link to Crowsnest Hwy.
see my revert reason in the AB road data; it's supposed to be Highway, not Hwy, and this follows provincial standards, similar to Ontario.
 
(53 intermediate revisions by 8 users not shown)
Line 1:
--[==[
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"]`.
]==]
 
-- British Columbia
local BC = {}
 
local util = require("Module:Road data/util")
BC.Hwy = {shield = {hook = "split",
util.addAll(BC, require("Module:Road data/strings/CAN"))
split = 900,
 
above = "",
BC.Hwy = {
below = {ifexists = true,
shield = {
default = "BC-%route%.svg",
hook = "split",
["1"] = "BC-1 (TCH).svg",
split = 900,
["3"] = "BC-3 (Crowsnest).svg",
above = "",
["5"] = "BC-5 (Yellowhead).svg",
below = {
["16"] = "BC-16 (TCH).svg",
ifexists = true,
["401"] = "BC-401 (TCH).svg"}},
link = { default = "British Columbia Highway BC-%route%.svg",
["9161"] = "Golden EarsBC-1 Way(TCH).svg"},
["3"] = "BC-3 (Crowsnest).svg",
abbr = "Hwy&nbsp;%route%"}
["5"] = "BC-5 (Yellowhead).svg",
["16"] = "BC-16 (TCH).svg",
["401"] = "BC-401 (TCH).svg"
}
},
shieldmain = {
hook = "split",
split = 900,
above = "",
below = {
ifexists = true,
default = "BC-%route%.svg",
["1"] = "BC-1 (TCH).svg",
["3"] = "British Columbia Highway %route%.svg",
["5"] = "BC-5 (Yellowhead).svg",
["16"] = {"BC-16 (TCH).svg", "BC-16 (Yellowhead).svg"},
["113"] = "British Columbia Highway %route%.svg",
["401"] = "BC-401 (TCH).svg"
}
},
name = {
default = "Highway %route%",
["916"] = "Golden Ears Way"
},
link = {
default = "British Columbia Highway %route%",
["916"] = "Golden Ears Way"
},
abbr = "Highway&nbsp;%route%",
orientation = "upright"
}
 
BC.BC = BC.Hwy
 
BC.TCHYH = {shield = BC.Hwy.shield,
shield = {
link = BC.Hwy.link,
abbr default = {BC.Hwy.abbrshield,"BC Yellowhead blank.. " (TCH)svg"},
["5"] = "BC-5 (Yellowhead).svg",
["16"] = {"BC-16 (TCH).svg", "BC-16 (Yellowhead).svg"}
},
shieldmain = BC.Hwy.shieldmain,
name = BC.Hwy.name,
link = "British Columbia Highway %route%",
abbr = {
default = "Highway&nbsp;%route% (YH)",
["16"] = "Highway&nbsp;%route% (TCH/YH)",
},
orientation = "upright"
}
 
for k, v in pairs(BC) do if k:find ("TCH") then
--for linking to US articles
v.shield = BC.Hwy.shield
v.shieldmain = BC.Hwy.shieldmain
v.name = BC.Hwy.name
v.link = "British Columbia Highway %route%"
v.abbr = "Highway&nbsp;%route% (TCH)"
v.orientation = "upright"
end
end
 
-- add new types above this line if you want it to have the provincial highway browse and maint
BC.I = {alias = {module = "USA/WA", type = "I"}}
for k, v in pairs(BC) do if k:find ("^%a") then
v.maint = "the [[Ministry of Transportation and Infrastructure (British Columbia)|Ministry of Transportation and Infrastructure]]"
end
end
 
--for linking to US articles
BC.US = {shield = "US %route%.svg",
link = {["93"] = "U.S. Route 93 in Montana",
["95"] = "U.S. Route 95 in Idaho",
["97"] = "U.S. Route 97 in Washington",
["395"] = "U.S. Route 395 in Washington",
default = "U.S. Route %route%"},
abbr = "US&nbsp;%route%"}
 
BC.I = {alias = {module = "USA/WA", type = "I"}}
BC.US = {alias = {module = "USA", type = "US", link = {["93"] = "U.S. Route 93 in Montana", ["95"] = "U.S. Route 95 in Idaho", ["97"] = "U.S. Route 97 in Washington", ["395"] = "U.S. Route 395 in Washington", default = "U.S. Route %route%"},}}
BC.WA = {alias = {module = "USA/WA", type = "WA"}}
BC.ID = {alias = {module = "USA/ID", type = "ID"}}
return BC