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: 2024-12-21 Contra Este módulo está desactualizado/obsoleto

Uso

This module proviceds the parameters for calling the map markers with the template Marker.
Esta documentación está transcluida desde Módulo:Marker/Params/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.

-- Parameter lists and localization
return {
	-- administration
	moduleInterface = {
		suite  = 'Marker',
		sub    = 'Params',
		serial = '2024-07-31',
		item   = 65451902
	},

	-- The item key is used by the Marker module.
	-- The value like ['no-gpx'] is the parameter name used in the template.
	-- Use values for localization.
	p = {
		-- module name = template arg
		alt        = 'alt',
		commonscat = 'commonscat',
		copyMarker = { 'copy-marker', 'marker-copy' },
		country    = { 'country', 'país' },
		group      = { 'group', 'grupo' },
		image      = { 'image', 'imagen' },
		lat        = { 'lat', 'latitud', 'coord' },
		long       = { 'long', 'longitud', 'lon' },
		mapGroup   = { 'map-group', 'mapa-grupo' },
		noGpx      = 'no-gpx',
		name       = { 'name', 'nombre' },
		nameExtra  = { 'name-extra', 'nombre-extra' },
		nameLatin  = 'name-latin',
		nameLocal  = { 'name-local', 'nombre-local' },
		nameMap    = { 'name-map', 'nombre-mapa' },
		show       = { 'show', 'mostrar' },
		status     = 'status',
		styles     = { 'styles', 'estilo' },
		symbol     = { 'symbol', 'icon', 'simbolo' },
		text       = { 'text', 'texto' },
		type       = { 'type', 'types', 'tipo' },
		url        = 'url',
		wikidata   = 'wikidata',
		zoom       = 'zoom'
	},

	-- corresponding Wikidata properties
	wd = {
		coord         = { p =  'P625' },
		googlemaps    = { p = 'P3749' },
		iata          = { p =  'P238', c = 3 },
		icao          = { p =  'P239' },
		image         = { p = { { p = 'P18' },
		                  { p = 'P3451' }, -- nighttime view
		                  { p = 'P8592' }, -- aerial view
		                  { p = 'P5775' } } }, -- interior image
		rss           = { p = 'P1019' },
		stationNumber = { p =  'P954' }, -- intl station number
		tripadvisor   = { p = 'P3134' },
		url           = { p =  'P856' },

		facebook      = { p = { { p = 'P2013', f = 'https://www.facebook.com/%s' }, -- Facebook username
					      { p = 'P1997', f = 'https://www.facebook.com/%s' }, -- Facebook places ID
					      { p = 'P4003', f = 'https://www.facebook.com/pages/%s' }, -- Facebook page ID
					      { p = 'P11705', f = 'https://www.facebook.com/pages/%s' } } }, -- Facebook numeric ID
		flickr        = { p = 'P3267', f = 'https://www.flickr.com/photos/%s' },
		instagram     = { p = { { p = 'P2003', f = 'https://www.instagram.com/%s/' },
					      { p = 'P4173', f = 'https://www.instagram.com/explore/locations/%s/' } } },
		tiktok        = { p = { { p = 'P7085', f = 'https://www.tiktok.com/@%s' }, -- TikTok username
					      { p = 'P11559', f = 'https://www.tiktok.com/place/_-%s' } } }, -- TikTok place ID
		twitter       = { p = 'P2002', f = 'https://twitter.com/%s' },
		youtube       = { p = { { p = 'P11245', f = 'https://www.youtube.com/@%s' }, -- Youtube channel @ alias
					      { 'P2397', f = 'https://www.youtube.com/channel/%s' } } } -- Youtube channel
	},

	-- default Wikidata requests
	-- iata, icao, rss, social media links only from Wikidata
	wdContent = {
		googlemaps    = true,  -- fetch it by default
		iata          = true,
		icao          = true,
		image         = true,
		rss           = true,
		stationNumber = true,
		tripadvisor   = true,
		url           = true
	},

	-- check for fetch from Wikidata
	ynCheckList = { 'facebook', 'flickr', 'googlemaps', 'iata', 'icao', 'image',
		'instagram', 'nameLocal', 'rss', 'stationNumber', 'tiktok', 'tripadvisor',
		'twitter', 'youtube', 'url' },

	defaultShow = 'poi, name',	

	-- parameters for wrapper tag
	markerData = {
		color           = 'data-color',
		commonscat      = 'data-commonscat',
		googlemaps      = 'data-google-maps-cid',
		group           = 'data-group',
		groupTranslated = 'data-group-translated', -- for MapTools.js
		image           = 'data-image',
		mapGroup        = 'data-map-group',
		nameLocal       = 'data-name-local',
		rss             = 'data-rss',
		stationNumber   = 'data-station-number',
		symbol          = 'data-symbol',
		tripadvisor     = 'data-tripadvisor-com',
		type            = 'data-type',
		url             = 'data-url',
		wikidata        = 'data-wikidata'		
	},

	-- possible values for show parameter
	show = {
		all         = 1,
		coord       = 1,
		copy        = 1,
		noairport   = 1,
		noname      = 1,
		none        = 1,
		nositelinks = 1,
		poi         = 1,
		socialmedia = 1,
		symbol      = 1,
		wikilink    = 1
	}
}