Jump to content

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

From Wikipedia, the free encyclopedia
Content deleted Content added
try this
+roman
 
(13 intermediate revisions by 4 users not shown)
Line 1: 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"]`.
]==]

-- United Kingdom
-- United Kingdom
local GBR = {}
local GBR = {}


local util = require("Module:Road data/util")
GBR.E = {shield = "Tabliczka E%route%.svg",
util.addAll(GBR, require("Module:Road data/strings/EUR"))
link = "European route E%route%",

abbr = "E%route%"}
GBR.A.shield = "UK road A%route%.svg"
GBR.A.link = "A%route% road ([state|NI|Northern Ireland|Great Britain])"
GBR.A.abbr = "A%route%"
GBR.A.name = "A%route%"
GBR.A.color = "primary"

GBR.B.abbr = "B%route%"
GBR.B.name = "B%route%"
GBR.B.color = "minor"


GBR.A = {shield = {ifexists = true,
GBR.M.shield = "UK-Motorway-M%route%.svg"
GBR.M.link = {
default = "UK road A%route%.svg",
arg = "state",
otherwise = "UK road A%route%.PNG"},
link = "A%route% road ([state|NI|Northern Ireland|Great Britain])",
NI = "M%route% motorway (Northern Ireland)",
abbr = "A%route%"}
SCO = "M%route% motorway (Scotland)",
default = "M%route% motorway [dab||(%dab%)|]"
}
GBR.M.abbr = "M%route%"
GBR.M.name = "M%route%"
GBR.M.color = "motorway"


GBR.B = {shield = {ifexists = true,
GBR.AM = {
default = "UK road B%route%.svg",
shield = "UK-Motorway-A%route% (M).svg",
name = "A%route%(M)",
otherwise = {ifexists = true,
link = "A%route%(M) motorway",
default = "UK road B%route%.png"}},
abbr = "A%route%(M)",
link = "",
color = "motorway"
abbr = "B%route%"}
}


GBR.M = {shield = "UK-Motorway-M%route%.svg",
GBR["M-Toll"] = {
shield = "UK-Motorway-M%route% Toll.svg",
name = "M%route% Toll",
link = "M%route% motorway [state|NI|(Northern Ireland)|][state|SCO|(Scotland)|]",
abbr = "M%route%"}
link = "M%route% Toll",
abbr = "M%route% Toll",
color = "motorway"
}


GBR.Roman = {
GBR.AM = {shield = "UK-Motorway-A%route% (M).svg",
shield = "",
link = "A%route%(M) motorway",
abbr = "A%route%(M)"}
name = "%route%",
link = "%route%",
abbr = "%route%",
color = "hist"
}


return GBR
return GBR

Latest revision as of 22:13, 17 December 2022

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

-- United Kingdom
local GBR = {}

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

GBR.A.shield = "UK road A%route%.svg"
GBR.A.link = "A%route% road ([state|NI|Northern Ireland|Great Britain])"
GBR.A.abbr = "A%route%"
GBR.A.name = "A%route%"
GBR.A.color = "primary"

GBR.B.abbr = "B%route%"
GBR.B.name = "B%route%"
GBR.B.color = "minor"

GBR.M.shield = "UK-Motorway-M%route%.svg"
GBR.M.link = {
	arg = "state",
	NI = "M%route% motorway (Northern Ireland)",
	SCO = "M%route% motorway (Scotland)",
	default = "M%route% motorway [dab||(%dab%)|]"
}
GBR.M.abbr = "M%route%"
GBR.M.name = "M%route%"
GBR.M.color = "motorway"

GBR.AM = {
	shield = "UK-Motorway-A%route% (M).svg",
	name = "A%route%(M)",
	link = "A%route%(M) motorway",
	abbr = "A%route%(M)",
	color = "motorway"
}

GBR["M-Toll"] = {
	shield = "UK-Motorway-M%route% Toll.svg",
	name = "M%route% Toll",
	link = "M%route% Toll",
	abbr = "M%route% Toll",
	color = "motorway"
}

GBR.Roman = {
	shield = "",
	name = "%route%",
	link = "%route%",
	abbr = "%route%",
	color = "hist"
}
			  

return GBR