Module:Infobox/Phare

 Documentation[voir] [modifier] [historique] [purger]

Cette page définit un module d'infobox. Pour les conseils sur l'usage de ce module, voyez Modèle:Infobox Phare.

Voir les statistiques d'appel depuis le wikicode sur l'outil wstat et les appels depuis d'autres modules.

local building = require "Module:Infobox/Fonctions/Bâtiment"
local lighthouse = require "Module:Infobox/Fonctions"

return 
	{
	maincolor = '#A8D2FF',
	parts =
    	{
		lighthouse.title('map'),
		lighthouse.mainimage('Article à illustrer Phare', 'Defaut 2.svg'),
		{type = 'table', title = "Localisation", rows = {
			building.coordinates(),
			building.onshoreof(),
			{type = 'row', label = 'Site', value = 'site', property = 'P706'},
			building.adminlocation(),
			building.protectedarea(),
			},
		},
		{type = 'table', title = "Histoire", rows = {
			building.creator(),
			building.construction(),
			{type = 'row', label = 'Mise en service', value = 'mise en service', property = 'P729'},
			{type = 'row', label = 'Électrification', value = 'électrification', wikidata = {property = 'P793', targetvalue = 'Q1076056', showonlyqualifier = 'P585'} },
			{type = 'row', label = 'Télécontrôlé', value = 'télécontrôlé'},
			{type = 'row', label = 'Automatisation', value = 'automatisation', wikidata = {property = 'P793', targetvalue = 'Q24410992', showonlyqualifier = 'P585'}},
			building.relocation(),
			{type = 'row', label = 'Désactivation', value = 'désactivation', property = 'P730'},
			building.protection(),
			{type = 'row', label = 'Gardienné', value = 'habité'},
			{type = 'row', label = 'Visiteurs', value = 'visitable'},
			},
		},
		{type = 'table', title = "Architecture", rows = {
			building.dimensions(),
			{type = 'row', label = 'Hauteur focale', value = 'hauteur focale', wikidata = {property = 'P2923', targetunit = 'metre', conjtype = ' ou ', rounding = '1', numval = '2'} },
			{type = 'row', label = 'Élévation', value = 'élévation', property = 'P2044'},
			{type = 'row', label = 'Marches', value = 'marches', wikidata = {property = 'P2670', targetvalue = 'Q3289701', showonlyqualifier = 'P1114'} },
			building.material(),
			building.colour(),
			},
		},
		{type = 'table', title = "Équipement", rows = {
			{type = 'row', label = 'Lanterne', value = 'lanterne'},
			{type = 'row', label = 'Intensité lumineuse', value = 'intensité lumineuse', property = 'P3041'},
			{type = 'row', label = 'Optique', value = 'optique'},
			{type = 'row', label = 'Portée', value = 'portée', wikidata = {property = 'P2929', targetunit = 'nautique', conjtype = 'comma', rounding = '1', showqualifiers = {'P462'}} },
			{type = 'row', label = 'Feux', value = 'feux', property = 'P1030'},
			{type = 'row', label = 'Aide sonore', value = 'aide sonore'},
			{type = 'row', label = '[[Racon]]', value = 'Racon', property = 'P3994'},
			},
		},
		{type = 'table', title = "Identifiants", rows = {
			{type = 'row', label = '[[Amateur Radio Lighthouse Society|ARLHS]]', value = 'ARLHS', wikidata = {property = "P2980", urlpattern="http://wlol.arlhs.com/lighthouse/$1.html"}},
			{type = 'row', label = '[[Institut hydrographique du Royaume-Uni|Amirauté]]', value = 'Amirauté', property = 'P3562'},
			{type = 'row', label = 'Dansk Fyrliste', value = 'Dansk Fyrliste', property = 'P4038'},
			{type = 'row', label = '[[Garde côtière canadienne|GCC]]', value = 'GCC', property = 'P3920'},
			{type = 'row', label = 'List of Lights', value = 'List of Lights', wikidata = {property = "P3223", urlpattern="http://listoflights.org/leuchtfeuer/detail?id=$1"}},
			{type = 'row', label = '[[Marina militare]]', value = 'Marina militare', wikidata = {property = "P3863", urlpattern="http://www.marina.difesa.it/cosa-facciamo/per-la-difesa-sicurezza/fari/Pagine/$1.aspx"}},
			{type = 'row', label = '[[MarineTraffic]]', value = 'MarineTraffic', wikidata = {property = "P3601", urlpattern="http://www.marinetraffic.com/fr/ais/details/lights/$1/"}},
			{type = 'row', label = '[[National Geospatial-Intelligence Agency|NGA]]', value = 'NGA', wikidata = {property = 'P3563', urlpattern ="https://wikidata-externalid-url.toolforge.org/?url=https%3A%2F%2Fmsi.nga.mil%2FqueryResults%3Fpublications%2Fngalol%2Flights-buoys%3Fvolume%3D%251%26featureNumber%3D%252%26includeRemovals%3Dfalse%26output%3Dhtml&exp=(%5Cd%7B3%7D)-(.*)&id=$1"}},
			{type = 'row', label = 'Norsk fyrliste', value = 'Norsk fyrliste', property = 'P4055'},
			{type = 'row', label = '[[United States Coast Guard|USCG]]', value = 'USCG', property = 'P3723'},
			{type = 'row', label = 'Vitaskrá', value = 'Vitaskrá', property = 'P3993'},
			},
		},
		building.geoloc({marker = 'lighthouse', default_zoom=14, markercolor = '#990000'}),
	}
}