Module:Infobox/Observatoire

 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 Observatoire.


local building = require "Module:Infobox/Fonctions/Bâtiment"local general = require "Module:Infobox/Fonctions"local wikidata = require "Module:Wikidata" local function telescopes() local rows = {} for i = 1, 40 do table.insert (rows, { type = 'row', label = function ( localdata ) return localdata['télescope' .. tostring(i .. '_nom')] or '' end, value = 'télescope' .. tostring(i .. '_type'), }) end return rows end return {maincolor = '#e0e0e0',parts = {general.title(),general.logo(),building.mainimage(),{type = 'table', title = 'Caractéristiques', rows = {{type = 'row', label = 'Financé par', value = 'financeur', wikidata={property = 'P8324', conjtype='new line', showdate='true'}},{type = 'row', label = 'Propriétaire', value = 'propriétaire', property = 'P127'},{type = 'row', label = 'Maintenance', value = 'maintenance', property = 'P126'},{type = 'row', label = 'Organisation', value = 'organisation', property = 'P1268'},{type = 'row', label = 'Opérateur', value = 'opérateur', property = 'P137'},{type = 'row', label = 'Directeur', value = 'directeur', property = 'P1037'},{type = 'row', label = 'Type', value = 'type', property = 'P31'},{type = 'row', label = 'Construction', value = 'construction', property = 'P571'},building.opening(),building.renovation(),building.closure(),building.protection(),{type = 'row', label = 'Altitude', value = 'altitude', wikidata = {property = 'P2044', targetunit = 'metre'}},{type = 'row', label = 'Climat', value = 'climat' },                        {type = 'row', label = 'Temps d\'observation disponible', value = 'temps d\'observation disponible', wikidata = {property = 'P3891', showunit = 'long'}},{type = 'row', label = 'Site', value = 'site' },{type = 'row', label = 'Lieu', value = 'lieu', property = 'P276'}, -- utile pour les endroits très isolésbuilding.country(),building.historicalregion(),building.adminlocation(),building.mountainrange(),building.protectedarea(),building.coordinates(),{type = 'row', label = 'Code [[Centre des planètes mineures|MPC]]', value = 'code MPC', property = 'P717'},building.website(),}},{type = 'table', title = 'Télescopes', rows = telescopes() },building.geoloc({marker = 'star', markercolor = '#808080'}),}}