Ir al contenido

Módulo:Marker utilities/Groups

De Wikiviajes, la guía libre de viajes
Icono de documentación de módulo Documentación del módulo[ver] [editar] [historial] [purgar]

Version check

Designación de la versión en Wikidata: 2023-05-06 Ok!

Uso

This module provides the Marker/Vcard properties, like color, translation and adapted translation (without special chars) for the depiction in the map.
Esta documentación está transcluida desde Módulo:Marker utilities/Groups/doc.
Los editores pueden experimentar en la zona de pruebas (crear) y en los casos de prueba (crear) del módulo.
Por favor, añade las categorías en la subpágina de documentación. Subpáginas de este módulo.

--[[
	Returning an array with group properties.
	Please use only quotation marks instead of apostrophs for JSON export.
	Please do not specify empty strings: let the parameter undefined.

	Dependencies:
	- MediaWiki:ListingInfo.js, makiIcons array
--]]

return {
	-- administration
	moduleInterface = {
		suite  = "Marker utilities",
		sub    = "groups",
		serial = "2023-05-06",
		item   = 65445315
	},

	-- Default mapframe/maplink show parameter
	-- also to set in MediaWiki:MapTools.js: defaultShow
	showAll = "máscara,sendero,área,beber,comer,comprar,dormir,error," ..
		"habitadas,hacer,ir,naturaleza,otro,religión,salud,ver,vista," .. 
		"aguamarina,ciruela,cosmos,oro,lima,naranja,violeta,plata,rojo",

	groups = {
		["error"]   = { color = "#FF00FF", is = "system", alias = { "error", "magenta" } },
		mask        = { color = "#FF00FF", is = "system", alias = "máscara" },
		track       = { color = "#FF00FF", is = "system", alias = "sendero" },

		area        = { color = "#800000", alias = { "área", "granate", "maroon" }, default = "region" },
		buy         = { color = "#008080", alias = { "comprar", "verde_azulado", "teal" }, default = "shop" },
		["do"]      = { color = "#808080", alias = { "hacer", "gris", "grey" }, default = "sports", withEvents = "1" },
		drink       = { color = "#000000", alias = { "beber", "negro", "black" }, default = "bar" },
		eat         = { color = "#D2691E", alias = { "comer", "chocolate" }, default = "restaurant" },
		go          = { color = "#A52A2A", alias = { "ir", "marrón", "brown" }, default = "station" },
		health      = { color = "#DC143C", alias = { "salud", "crimson" }, default = "hospital" },
		nature      = { color = "#228B22", alias = { "naturaleza", "forestgreen" }, default = "landscape" },
		other       = { color = "#808000", alias = { "otro", "verde_bosque", "olive" }, default = "office" },
		populated   = { color = "#0000FF", alias = { "habitadas", "azul", "blue" }, default = "town" },
		religion    = { color = "#DAA520", alias = { "religión", "goldenrod" }, default = "church", inverse = "1" },
		see         = { color = "#4682B4", alias = { "ver", "azul_acero", "steelblue" }, default = "monument" },
		sleep       = { color = "#000080", alias = { "dormir", "azul_marino", "navy" }, default = "hotel" },
		view        = { color = "#4169E1", alias = { "vista", "azul_francia", "royalblue" }, default = "viewpoint" },

		-- please do not use colors already used for additional groups listed above

		cosmos      = { color = "#FFCFCF", is = "color", alias = "cosmos", inverse = "1" }, -- instead of former type target, FFCCCC
		gold        = { color = "#FFD700", is = "color", alias = "oro", inverse = "1" },
		lime        = { color = "#BFFF00", is = "color", alias = "lima", inverse = "1" },
		mediumaquamarine = { color = "#66CDAA", is = "color", alias = "aguamarina" },
		orange      = { color = "#FFA500", is = "color", alias = "naranja", inverse = "1" },
		plum        = { color = "#DDA0DD", is = "color", alias = "ciruela" },
		purple      = { color = "#800080", is = "color", alias = "violeta" },
		red         = { color = "#FF0000", is = "color", alias = "rojo" },
		silver      = { color = "#C0C0C0", is = "color", alias = "plata", inverse = "1" }
	}
}