Content deleted Content added
+road |
testing |
||
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"]`.
]==]
-- Mexico
local MEX = {}
Line 7 ⟶ 20:
link = "Mexican Federal Highway %route% [dab||(%dab%)|]",
abbr = "Fed. %route%",
orientation = "upright",
maint = "[[Secretariat of Communications and Transportation (Mexico)|Secretariat of Communications and Transportation]]",
nbrowse = "[[Mexican Federal Highway]]s",
nbrowselinks = {
[1] = "[[List of Mexican Federal Highways|List]]",
[2] = "[[List of Mexican autopistas|''Autopistas'']]"
}
Line 13 ⟶ 32:
MEX.Hwy = MEX.FH
MEX.Fed = MEX.FH
local stateModule = mw.loadData("Module:Road data/masks/MEX")
local stateName = tostring(stateModule["state"]) or "Mexico"
local stateBrowse = {
default = "[[Roads in Mexico]]",
DUR = "[[Durango state highways|State highways in Durango]]",
SON = "[[List of highways in Sonora|Highways in Sonora]]",
["state"] = "State highways in " .. stateName
}
MEX.SH = {
shield = "Carretera estatal %route%.svg",
▲ base = "state",
▲ default = "Carretera estatal %route% (%fullstate%).svg"
▲ },
name = "State Highway %route%",
link =
abbr = "SH %route%",
orientation = "upright",
browse = stateBrowse
}
Line 39 ⟶ 59:
link = '',
abbr = "%route%",
browse =
}
|