Jump to content

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

From Wikipedia, the free encyclopedia
Content deleted Content added
m add shieldmain (via WP:JWB)
cleanup
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"))
shieldmain = "Tabliczka E%route%.svg",
link = "European route E%route%",
abbr = "E%route%"}


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


GBR.B = {shield = "",
GBR.B.abbr = "B%route%"
GBR.B.name = "B%route%"
shieldmain = "",
link = "",
abbr = "B%route%"}


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


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


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


return GBR
return GBR

Revision as of 00:56, 23 February 2021

--[==[
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.B.abbr = "B%route%"
GBR.B.name = "B%route%"

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.AM = {
	shield = "UK-Motorway-A%route% (M).svg",
	name = "A%route%(M)",
	link = "A%route%(M) motorway",
	abbr = "A%route%(M)"
}

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

return GBR