Module:Road data/strings/ESP

From the AARoads Wiki: Read about the road before you go
Jump to navigation Jump to search

--[==[
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"]`.
]==]

-- Spain
local ESP = {}

local util = require("Module:Road data/util")
util.addAll(ESP, require("Module:Road data/strings/EUR"))

ESP.E.shield = "ESP E-%route%.svg"
ESP.E.color = "EUR-ESP"

ESP["Autovía"] = {
	shield = "Autovía %route%.svg",
	name = "%route%",
	link = "%route% (Spain)",
	abbr = "%route%",
	color = "ESP-A",
	translation = "Autovía %route%",
	lang = "es"
}
ESP.Autovia = ESP["Autovía"]

ESP.Autopista = {
	shield = "Autopista %route%.svg",
	name = "%route%",
	link = "%route% (Spain)",
	abbr = "%route%",
	color = "ESP-A",
	translation = "Autopista %route%",
	lang = "es"
}

for _,type in ipairs({"A", "AP", "R", "AA", "AB", "AC", "AG", "AI", "AL", "ARA", "AS", "AV", "B", "BA", "BI", "BU", "C", "CA", "CC", "CL", "CM",
	"CO", "CS", "CT", "CU", "CV", "EI", "EL", "EX", "FE", "FV", "GC", "GI", "GJ", "GR", "H", "HU", "J", "K", "LE", "LL", "LO", "LP", "LR", "LU", "LZ", 
	"M", "MA", "Ma", "ML", "MU", "N", "O", "OU", "P", "PA", "PO", "PT", "RM", "S", "SA", "SC", "SE", "SG", "SO", "T", "TF", "TO", "V", "VA", "VG",
	"Z", "ZA"}) do
	ESP[type] = {
		shield = "ESP " .. type .. "-%route%.svg",
		name = type .."-%route%",
		link = type .."-%route% (Spain)",
		abbr = type .."-%route%",
		color = "EUR-ESP"
	}
end

ESP.CN = ESP.N

ESP.A.color = {
		hook = "splitlen",
		split = 3,
 		below = "ESP-A", 
		above = "EUR-ESP"
	}
ESP.AP.color = "ESP-A"
ESP.R.color = "ESP-A"
ESP.TF.color = "ESP-A"

ESP.A.translation = {
		hook = "splitlen",
		split = 3,
 		below = "Autovía A-%route%", 
		above = ""
	}
ESP.AP.translation = "Autopista AP-%route%"
ESP.N.translation = "Carretera nacional N-%route%"
ESP.R.translation = "Autopista Radial R-%route%"

ESP.A.lang = "es"
ESP.AP.lang = "es"
ESP.N.lang = "es"
ESP.R.lang = "es"

return ESP