Modul:VCard/Params

Template-info.png Dokumentation für das Modul VCard/Params[Ansicht] [Bearbeiten] [Versionsgeschichte] [Aktualisieren]

Verwendung

Dieses Modul enthält die Parametertabelle für den Modul vCard.

Versionsbezeichnung auf Wikidata: 2021-04-08 Ok!
Hinweise
-- This module contains the parameter tables. The translated values
-- are stored in Module:vCard/i18n.
	
-- documentation
local vCardParams = {
	suite  = 'vCard',
	sub    = 'Params',
	serial = '2021-04-08',
	item   = 65455743
}

-- module import
local mi = require( 'Module:Marker utilities/i18n' )

return {	
	-- administration
	moduleInterface = vCardParams,

	-- table of parameters
	-- true: get in from Wikidata in any case
	-- for parameter translations see Modul:VCard/i18n
	
	ParMap = {
		address         = '',
		addressLang     = '',
		addressLocal    = '',
		agoda           = true, -- Agoda.com
		alt             = '',
		auto            = '',
		before          = '',
		booking         = true, -- Booking.com
		checkin         = '',
		checkout        = '',
		comment         = '',
		commonscat      = '',
		content         = '',
		color           = '',   -- internal use
		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            = '',
		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
		rss             = true, -- web feed
		sac             = true, -- SAC-CAS.ch
		show            = mi.options.defaultShow,
		skype           = '',
		styles          = '',
		subtype         = '',
		subtypeAdd      = true, -- internal use
		symbol          = '',   -- internal use
		text            = '',   -- internal use
		tollfree        = '',
		tripadvisor     = true, -- Tripadvisor.com
		twitter         = '',
		type            = '',
		unesco          = mi.options.showUnesco,
		url             = '',
		useIcon         = '',   -- internal use
		wikidata        = '',
		wikipedia       = '',   -- deprecated
		youtube         = '',
		zoom            = '',

		date            = '',   -- for events
		month           = '',
		year            = '',
		endDate         = '',
		endMonth        = '',
		endYear         = '',
		frequency       = '',
		location        = ''
	},
	
	-- table containing parameters fetched from Wikidata
	wdContent = {},

	--[[
	p property or set of properties
	f formatter string
	c maximum count of results, default = 1
	m concat mode (if c > 1), default concat with ', '
	v value type,
		empty: string value (i.e. default type),
		id:    string value of an id like Q1234567  
		idl:   string value of the label of an id like Q1234567
		il:    language-dependent string value
		iq:    string value with qualifier ids
		au:    quantity consisting of amount and unit
		pau:   quantity consisting of amount (for P8733)
		vq:    string or table value with qualifiers ids and references
	q table of qualifiers allowed, for value type id
	l = true: language dependent
	l = wiki / local: monolingual text by wiki or local language
	le = true: use date for lastedit parameter
	t = phone type (landline, mobile)
	--]]

	ParWD = {
		agoda        = { p = 'P6008' },
		booking      = { p = 'P3607' },
		checkin      = { p = 'P8745', v = 'idl' },
		checkout     = { p = 'P8746', v = 'idl' },
		dav          = { p = 'P5757' },
		directions   = { p = 'P2795', v = 'il', l = 'wiki' },
		directionsLocal = { p = 'P2795', v = 'il', l = 'local' },
		email        = { p =  'P968', c = 5, v = 'vq' },
		expedia      = { p = 'P5651' },
		facebook     = { p = { { p = 'P2013', f = 'https://www.facebook.com/%s', l = true },
					     { p = 'P1997', f = 'https://www.facebook.com/pages/-/%s', l = true } } },
		fax          = { p = 'P2900', c = 3, v = 'vq' },
		flickr       = { p = 'P3267', f = 'https://www.flickr.com/photos/%s', l = true },
		foursquare   = { p = 'P1968' },
		googlemaps   = { p = 'P3749' },
		histhotelsAm = { p = 'P5734' },
		histhotelsEu = { p = 'P5774' },
		histhotelsWw = { p = 'P5735' },
		hotels       = { p = 'P3898' },
		iata         = { p =  'P238', c = 3 },
		icao         = { p =  'P239' },
		image        = { p =   'P18' },
		instagram    = { p = { { p = 'P2003', f = 'https://www.instagram.com/%s/' },
		                  { p = 'P4173', f = 'https://www.instagram.com/explore/locations/%s/' } } },
		leadingHotels = { p = 'P5834' },
		mobile       = { p = 'P1329', c = 5, v = 'vq', t = 'mobile' },
		oeav         = { p = 'P5759' },
		payment      = { p = 'P2851', c = 50, v = 'id', m = 'no' },
		phone        = { p = 'P1329', c = 5, v = 'vq', t = 'landline' },
		preferredHotels = { p = 'P5890' },
		price        = { p = 'P2555', c = 5, v = 'au', le = true }, -- fee
		pzs          = { p = 'P5758' },
		recreation   = { p = 'P3714' },
		relaisChateaux = { p = 'P5836' },
		rss          = { p = 'P1019' },
		sac          = { p = 'P5761' },
		skype        = { p = 'P2893', f = 'skype:%s', m = '; ' },
		subtypeAdd   = { p = { { p = 'P912', c = 50, v = 'iq' }, -- has facility
		                  { p = 'P166', v = 'iq', c = 5, q = { 'Q2976556', 'Q20824563' } },
		                      -- awards received (hotel rating, Michelin etc.)
		                  { p = 'P8733', v = 'pau' }, -- number of rooms
		                  { p = 'P2012', c = 50, v = 'iq' }, -- cuisine
		                  { p = 'P2846', v = 'iq' }, -- wheelchair
		                  { p = 'P2848', v = 'iq' }, -- WLAN
		                  { p = 'P5023', c = 10, v = 'iq' }	}, c = 100, m = 'no' }, -- activity policies
		tripadvisor  = { p = 'P3134' },
		twitter      = { p = 'P2002', f = 'https://twitter.com/%s', 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/%s', l = true }
	},
	
	-- additional parameters for auto = y

	ParWDAdd = {
		address         = '',
		addressLocal    = '',
		directions      = '',
		directionsLocal = '',
		hours           = '',
		nameLocal       = ''
	},

	-- possible values for show parameter

	show = {
		all         = '',
		coord       = '',
		inline      = '',
		noairport   = '',
		none        = '',
		nosubtype   = '',
		nowdsubtype = '',
		outdent     = '',
		poi         = '',
		symbol      = ''
	}
}