Module:Road data/strings/MEX: Difference between revisions

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.&nbsp;%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 = {
base arg = "state",
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",
default shieldmain = "Carretera estatal %route%[state|| (%fullstate%" .. stateName .. ")|].svg",
shieldmain = {
hook = "mask",
mask = "Road data/masks/MEX",
base = "state",
masked = "fullstate",
default = "Carretera estatal %route% (%fullstate%).svg"
},
name = "State Highway %route%",
link = {hookstateName =.. "mask State Highway %route%",
mask = "Road data/masks/MEX",
base = "state",
masked = "fullstate",
default = "%fullstate% State Highway %route%"
},
abbr = "SH&nbsp;%route%",
orientation = "upright",
browse = stateBrowse
}
 
Line 39 ⟶ 59:
link = '',
abbr = "%route%",
browse = ''stateBrowse,
}