Module:Infobox/Phare
Apparence
[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.
La documentation de ce module est générée par le modèle {{Documentation module}}.
Elle est incluse depuis la page Modèle:Documentation module d'infobox. Veuillez placer les catégories sur cette page-là.
Les éditeurs peuvent travailler dans le bac à sable (créer).
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('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', property = 'P2929'},
{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 = '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 = '[[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 = '[[United States Coast Guard|USCG]]', value = 'USCG', property = 'P3723'},
{type = 'row', label = 'Vitaskrá', value = 'Vitaskrá', property = 'P3993'},
},
},
building.geoloc(),
}
}