Module:Road data/strings/BRA

MyWikiBiz, Author Your Legacy — Saturday November 23, 2024
< Module:Road data‎ | strings
Revision as of 05:41, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Documentation for this module may be created at Module:Road data/strings/BRA/doc

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

-- Brazil
local BRA = {}

BRA.BR = {
	shield = {
		hook = "padroute",
		paddedLength = 3,
		default = "BR-%paddedRoute% jct.svg"
	},
	shieldmain = { -- eventually there will be specific shields
			hook = "padroute",
			paddedLength = 3,
			default = "BR-%paddedRoute% jct.svg"
	},
	link = "BR-%route%",
	abbr = {
		hook = "padroute",
		paddedLength = 3,
		default = "BR-%paddedRoute%"
	}
}

-- State highways take the same form
for _,type in ipairs({"AC", "AL", "AM", "AP", "BA", "CE", "DF", "ES", "GO", "MA", "MS", "MT", "NG", "PA", "PB", "PE", "PI", "PR", "RJ", "RN", "RO", "RS", "RR", "SC", "SE", "SP", "TO"}) do
	BRA[type] = {
		shield = {
			hook = "padroute",
			paddedLength = 3,
			default = "Brasil estado %paddedRoute% jct.svg"
		},
		shieldmain = {
			hook = "padroute",
			paddedLength = 3,
			default = {
				arg = type,
				default = type .. "-%paddedRoute%.svg",
				["RS"] = "RS-%paddedRoute% shield.png"
			}
		},
		name = {
			hook = "padroute",
			paddedLength = 3,
			default = type .. "-%paddedRoute%"
		},
		link = {
			hook = "padroute",
			paddedLength = 3,
			default = type .. "-%paddedRoute%"
		},
		abbr = {
			hook = "padroute",
			paddedLength = 3,
			default = type .. "-%route%"
		}
	}
end
         
return BRA