Module:Road data/strings/EUR

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

-- Europe
local EUR = {}

local util = require("Module:Road data/util")
local format = mw.ustring.format

-- European roads
EUR.E = {
	shield = "Tabliczka E%route%.svg",
	name = "E&#8201;%route%",
	link = "E%route% [dab||(%dab%)|(Europe)]",
	abbr = "E&#8201;%route%",
	color = "EUR",
}

-- Most common road types in Europe
for _,type in ipairs({"A", "B", "D", "G", "H", "K", "L", "M", "N", "O", "P", "R", "S", "T", "V"}) do
	EUR[type] = {
		shield = "",
		name = type .."&#8201;%route%",
		link = "",
		abbr = type .."&#8201;%route%",
	}
end

local transEuropean = {
	default = "test",
	["1"] = 'Baltic–Adriatic Corridor',
	["2"] = 'North Sea–Baltic Corridor',
	["3"] = 'Mediterranean Corridor',
	["4"] = 'Oreient/East–Med Corridor',
	["5"] = 'Scandinavian–Mediterranean Corridor',
	["6"] = 'Rhine–Alpine Corridor',
	["7"] = 'Atlantic Corridor',
	["8"] = 'North Sea–Mediterranean Corridor',
	["9"] = 'Rhine–Danube Corridor',
	
}

EUR["TEN-T"] = {
	shield = '',
	shieldmain = '',
	name = transEuropean,
	link = "w:" .. tostring(transEuropean),
	abbr = transEuropean,
	color = "EUR",
}

EUR.road = {
	shield = '',
	shieldmain = '',
	name = "%route%",
	link = '',
	abbr = "%route%",
	browse = '',
}

return EUR