Modul:Mapframe/Params

Aus Wikivoyage
Dokumentation für das Modul Mapframe/Params[Ansicht] [Bearbeiten] [Versionsgeschichte] [Aktualisieren]

Dieses Modul enthält eine Parametertabelle für den Aufruf der Vorlage {{Mapframe}}.

Verwendung in anderen Modulen

Dieses Modul ist notwendig für die Ausführung folgender Module. Bei Anpassungen sollte die Funktionstüchtigkeit der folgenden Module geprüft werden. Benutze dazu auch diese Tracking-Kategorie um Fehler zu finden, die sich dann auf Artikel auswirken:

Hinweise
return {
	params = {
		-- Tag parameters
		align            = { 'align', 'frame-align' },
		class            = '',
		coords           = { 'coords', 'frame-coord', 'frame-coordinates' },
		frame            = '',
		group            = '',
		height           = { 'height', 'frame-height' },
		lat              = { 'lat', 'frame-latitude', 1 },
		long             = { 'long', 'lon', 'frame-longitude', 2 },
		name             = { 'name', 'text' },
		plain            = '',
		show             = { 'show', 'map-group', 'map-groups' },
		width            = { 'width', 'frame-width' },
		zoom             = '',

		-- Mapgroup parameters
		fillMask         = 'fill-mask',
		groupWikidata    = 'group-wikidata',
		highlightWikidata= 'highlight-wikidata',
	
		-- External and raw data
		page             = { 'page', 'from', 'wikicommons' },
		raw              = '',
		type             = '',
		wikidata         = { 'wikidata', 'id', 'ids' },

		-- Mapshape parameters
		defaultColor     = { 'default-color', 'default-colour' }, -- for backward compatibility
		defaultType      = 'default-type',
		exclude          = '',
		only             = '',

		-- General parameters
		coord            = '', -- coordinates for point, lines and polygons
		description      = '',
		fill             = '',
		fillOpacity      = 'fill-opacity',
		image            = '', -- if description is empty
		marker           = { 'marker', 'marker-symbol' }, -- for point
		markerColor      = { 'marker-color', 'marker-colour' }, -- for point
		stroke           = { 'stroke', 'stroke-color', 'stroke-colour' },
		strokeOpacity    = 'stroke-opacity',
		strokeWidth      = 'stroke-width',
		title            = ''
	},

	services = {
		geoline  = { 'geoline', 'line' },
		geomask  = { 'geomask', 'mapmask', 'shape-inverse' },
		geoshape = { 'geoshape', 'mapshape', 'shape' },
		page     = { 'page', 'data' },
		point    = { 'point' },
		shapes   = { 'shapes', 'mapshapes' }
	}
}