Jump to content

Module:Road data/strings/MEX

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Fredddie (talk | contribs) at 17:38, 25 September 2021 (testing). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

--[==[
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 = {}

MEX.FH = {
	shield = "Carretera federal %route%.svg",
	name = "Federal Highway %route%",
	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'']]"
	}
}

MEX["Federal Highway"] = MEX.FH
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 = {
	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",
	shieldmain = "Carretera estatal %route%[state|| (" .. stateName .. ")|].svg",
	name = "State Highway %route%",
	link = stateName .. " State Highway %route%",
	abbr = "SH&nbsp;%route%",
	orientation = "upright",
	browse = stateBrowse
}

MEX.road = {
	shield = '',
	name = "%route%",
	link = '',
	abbr = "%route%",
	browse = stateBrowse,
}

return MEX