Aller au contenu

Module:Infobox/Télescope

Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 3 juillet 2017 à 19:54 et modifiée en dernier par Simon Villeneuve (discuter | contributions) (constituant). 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 Télescope.


local building = require "Module:Infobox/Fonctions/Bâtiment"
local general = require "Module:Infobox/Fonctions"
local wikidata = require "Module:Wikidata"
 

return {
	maincolor = '#E6E3CF',
	parts = {
		
		general.title(),
		general.logo(),
		building.mainimage(),
		{type = 'table', title = 'Présentation', rows = {
			{type = 'row', label = 'Organisation', value = 'organisation', property = 'P1268'},
			{type = 'row', label = 'Partie de', value = 'partie de', property = 'P361'},
			building.operator(),
			{type = 'row', label = 'Type', value = 'type', property = 'P31'},
			building.construction(),
			building.opening(),
			building.renovation(),
			building.closure(),
			building.demolition(),
			{type = 'row', label = 'Site web', plurallabel = 'Sites web', wikidata = {text = 'site officiel', displayformat = 'weblink', conjtype = '<br />', property = 'P856', showlang = true}},
		}},
		
		{type = 'table', title = 'Géographie', rows = {	
                        {type = 'row', label = 'Temps d\'observation disponible', value = 'temps d\'observation disponible', wikidata = {property = 'P3891', showunit = 'long'}},
			{type = 'row', label = 'Lieu', value = 'lieu', property = 'P276'}, -- utile pour les endroits très isolés
			building.elevation(),
			building.country(),
			building.historicalregion(),
			building.adminlocation(),
			building.protectedarea(),
			building.coordinates(),
		}},
		
		building.geoloc(),
	}
}