Modul:VCard/Params

Aus Wikivoyage
Zur Navigation springen Zur Suche springen
Template-info.png Dokumentation für das Modul VCard/Params[Ansicht] [Bearbeiten] [Versionsgeschichte] [Aktualisieren]
Dieser Modul enthält die Parametertabelle für den Modul vCard.
Hinweise
-- This module contains the parameter tables. The translated values
-- are stored in Module:vCard/i18n.
	
-- module import
local mi = require( 'Module:MarkerBase/i18n' )

return {	
	-- table of parameters
	-- true: get in from Wikidata in any case
	
	ParMap = {
		address         = '',
		addressLang     = '',
		addressLocal    = '',
		agoda           = true, -- Agoda.com
		alt             = '',
		auto            = '',
		before          = '',
		booking         = true, -- Booking.com
		checkin         = '',
		checkout        = '',
		comment         = '',
		commonscat      = '',
		content         = '',
		dav             = true, -- Alpenverein.de
		description     = '',
		directions      = '',
		directionsLocal = '',
		email           = '',
		expedia         = true, -- Expedia.com
		facebook        = '',
		fax             = '',
		flickr          = '',
		foursquare      = true, -- Foursquare.com
		googlemaps      = true, -- Maps.Google.com
		group           = '',
		histhotelsAm    = true, -- HistoricHotels.org
		histhotelsEu    = true, -- HistoricHotelsOfEurope.com
		histhotelsWw    = true, -- HistoricHotelsWorldwide.com
		hotels          = true, -- Hotels.com
		hours           = '',
		iata            = mi.options.showIata,
		icao            = mi.options.showIcao,
		image           = true,
		instagram       = '',
		lastedit        = '',
		lat             = '',
		leadingHotels   = true, -- LHW.com
		long            = '',
		mapGroup        = '',
		mobile          = '',
		name            = mi.texts.noName,
		nameExtra       = '',
		nameLatin       = '',
		nameLocal       = '',
		oeav            = true, -- Alpenverein.at
		payment         = '',
		phone           = '',
		preferredHotels = true, -- PreferredHotels.com
		price           = '',
		pzs             = true, -- PZS.si (Slovenia)
		recreation      = true, -- Recreation.gov
		relaisChateaux  = true, -- RelaisChateaux.com
		sac             = true, -- SAC-CAS.ch
		show            = mi.texts.defaultShow,
		skype           = '',
		subtype         = '',
		subtypeAdd      = '',   -- internal use
		tollfree        = '',
		tripadvisor     = true, -- Tripadvisor.com
		twitter         = '',
		type            = '',
		unesco          = mi.options.showUnesco,
		url             = '',
		wikidata        = '',
		youtube         = '',
		zoom            = ''
	},
	
	-- p property or set of properties
	-- f formatter url string
	-- c maximum count of results, default = 1
	-- m mode (if c > 1), default concat with ', '
	-- v value type, default: value, id, il, au = amount + unit
	-- l = true: language dependent
	-- l = wiki / local: monolingual text by wiki or local language
	
	ParWD = {
		agoda        = { p = 'P6008' },
		booking      = { p = 'P3607' },
		dav          = { p = 'P5757' },
		directions   = { p = 'P2795', v = 'il', l = 'wiki' },
		directionsLocal = { p = 'P2795', v = 'il', l = 'local' },
		email        = { p =  'P968', c = 5 },
		expedia      = { p = 'P5651' },
		facebook     = { p = { { p = 'P2013', f = 'https://www.facebook.com/$1', l = true },
					     { p = 'P1997', f = 'https://www.facebook.com/pages/-/$1', l = true } } },
		fax          = { p = 'P2900', c = 3 },
		flickr       = { p = 'P3267', f = 'https://www.flickr.com/photos/$1', l = true },
		foursquare   = { p = 'P1968' },
		googlemaps   = { p = 'P3749' },
		histhotelsAm = { p = 'P5734' },
		histhotelsEu = { p = 'P5774' },
		histhotelsWw = { p = 'P5735' },
		hotels       = { p = 'P3898' },
		iata         = { p =  'P238' },
		icao         = { p =  'P239' },
		image        = { p =   'P18' },
		instagram    = { p = { { p = 'P2003', f = 'https://www.instagram.com/$1/' },
		                  { p = 'P4173', f = 'https://www.instagram.com/explore/locations/$1/' } } },
		leadingHotels = { p = 'P5834' },
		oeav         = { p = 'P5759' },
		payment      = { p = 'P2851', c = 50, v = 'id', m = 'no' },
		phone        = { p = 'P1329', c = 5 },
		preferredHotels = { p = 'P5890' },
		price        = { p = { { p = 'P2284', c = 1, v = 'au' }, -- maybe useless
		                  { p = 'P2555', c = 1, v = 'au' } }, c = 2 },
		pzs          = { p = 'P5758' },
		recreation   = { p = 'P3714' },
		relaisChateaux = { p = 'P5836' },
		sac          = { p = 'P5761' },
		skype        = { p = 'P2893', f = 'skype:$1', m = '; ' },
		subtypeAdd   = { p = { { p = 'P912', c = 50, v = 'id' }, -- has facility
		                  { p = 'P2012', c = 50, v = 'id' }, -- cuisine
		                  { p = 'P2846', v = 'id' }, -- wheelchair
		                  { p = 'P2848', v = 'id' }, -- WLAN
		                  { p = 'P5023', c = 10, v = 'id' }	}, c = 100, m = 'no' }, -- activity policies
		tripadvisor  = { p = 'P3134' },
		twitter      = { p = 'P2002', f = 'https://twitter.com/$1', l = true },
		type         = { p =   'P31', c = mi.p31Limit, v = 'id' },
		unesco       = { p =  'P757' },
		url          = { p =  'P856', l = true },
		youtube      = { p = 'P2397', f = 'https://www.youtube.com/channel/$1', l = true }
	},
	
	-- possible values for show parameter

	show = {
		all       = '',
		coord     = '',
		indent    = '',
		inline    = '',
		none      = '',
		nosubtype = '',
		poi       = '',
		subtype   = '',
	}
}