Aller au contenu

Module:Infobox/Phare

Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 12 août 2017 à 02:30 et modifiée en dernier par Zolo (discuter | contributions) (quand il y a plusieurs portées différentes, c'est apparemment en fonction de la couleur, il faut l'afficher). Elle peut contenir des erreurs, des inexactitudes ou des contenus vandalisés non présents dans la version actuelle.

 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.


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

return 
	{
	maincolor = '#A8D2FF',
	parts =
    	{
		lighthouse.title('entete map'),
		lighthouse.mainimage('Article à illustrer Phare', 'Defaut 2.svg'),
		{type = 'table', title = "Localisation", rows = {
			building.coordinates(),
			building.country(),
			{type = 'row', label = "Localisation", value = "localisation", property = 'P131'},
			building.onshoreof(),
			building.protectedarea(),
			},
		},
		{type = 'table', title = "Architecture", rows = {
			building.construction(),
			building.dimensions(),
			building.material(),
			{type = 'row', label = 'Élévation', value = 'élévation', property = 'P2044'},
			{type = 'row', label = 'Hauteur focale', value = 'hauteur focale', wikidata = {property = 'P2923', targetunit = 'metre', conjtype = ' ou ', rounding = '1', numval = '2'} },
			building.protection(),
			},
		},
		{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 = 'Électrification', value = 'électrification'},
			{type = 'row', label = 'Gardienné', value = 'habité'},
			{type = 'row', label = 'Télécontrôlé', value = 'télécontrôlé'},
			{type = 'row', label = 'Automatisation', value = 'automatisation'},
			{type = 'row', label = '[[Radar Racon|Racon]]', value = 'Racon', property = 'P3994'},
			{type = 'row', label = 'Visiteurs', value = 'visitable'},
			},
		},
		{type = 'table', title = "Identifiants", rows = {
			{type = 'row', label = 'ARLHS', value = 'ARLHS', wikidata = {property = "P2980", urlpattern="http://wlol.arlhs.com/lighthouse/$1.html"}},
			{type = 'row', label = '[[Amirauté (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/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', property = 'P3563'},
			{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(),
	}
}