Aller au contenu

Module:Infobox/Point de vue panoramique

Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 4 octobre 2016 à 06:54 et modifiée en dernier par Thierry Caro (discuter | contributions). 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 Point de vue panoramique.


local building = require "Module:Infobox/Fonctions/Bâtiment"
local general = require "Module:Infobox/Fonctions"
local wikidata = require "Module:Wikidata"
local function getDate(event) 
	return wikidata.getTheDate{targetvalue = event, property = 'P793', addcat = true, entity = item}
end

return 
	{
	maincolor = 'E6E3CF',
	parts =
    	{
			{
				type = 'title',
				icon = 'entete map',
				value = 'nom',
			},
			general.logo(),
			building.mainimage(),
			{type = 'table', rows = {
				{type = 'row', label = 'Nom dans la langue originale', value = 'nom dans la langue originale', wikidata = {property = 'P1705', showlang = true} },
				{type = 'row', label = 'Nom officiel', plurallabel = 'Noms officiels', value = 'nom officiel', property = 'P1448'},
				}
			},
			{type = 'table', title = 'Localisation', rows = {
				{type = 'row', label = 'Continent', plurallabel = 'Continents', value = 'continent', property = 'P30'},
				building.country(),
				{type = 'row', label = 'Région', plurallabel = 'Régions', value = 'région', property = 'P131'},
				building.historicalregion(),
				{type = 'row', label = 'Localisation géographique', value = 'localisation géographique', property = 'P706'},
				{type = 'row', label = 'Partie de', value = 'partie de', property = 'P361'},
				{type = 'row', label = 'Code postal', value = 'code postal', property = 'P281'},
				{type = 'row', label = 'Fuseau horaire', value = 'fuseau horaire', property = 'P421'},
				{type = 'row', label = 'Baigné par', value = 'baigné par', property = 'P206'},
				{type = 'row', label = 'Altitude', value = 'altitude', wikidata = {property = 'P2044', targetunit = 'metre', conjtype = ' ou '} },
				{type = 'row', label = 'Climat', plurallabel = 'Climats', value = 'climat', property = 'P2564'},
				{type = "row", label = "Aire protégée", plurallabel = "Aires protégées", value = "aire protégée", property = "P3018"},
				{type = "row", label = "Vue sur", value = "vue sur", property = "P3173", numval = "8"},
				building.coordinates(),
				}
			},
			general.locationmap(),
			{type = 'table', title = 'Description', rows = {
				{type = 'row', label = 'Origine du nom', value = 'origine du nom', property = 'P138'},
				{type = 'row', label = 'Superficie', value = 'superficie', wikidata = {property = 'P2046', targetunit = 'sqkm'} },
				{type = 'row', label = 'Équipement', plurallabel = 'Équipements', value = 'équipement', property = 'P912'},
				{type = 'row', label = 'Concepteur', plurallabel = 'Concepteurs', value = 'concepteur', property = 'P287'},
				{type = 'row', label = 'Architecte', plurallabel = 'Architectes', value = 'architecte', property = 'P84'},
				{type = 'row', label = 'Remplace', value = 'remplace', property = 'P1365'},
				{type = 'row', label = 'Événement clé', plurallabel = 'Événements clés', value = 'événement clé', property = 'P793'},
				{type = 'row', label = 'Histoire', value = 'histoire', property = 'P2184'},
				{type = 'row', label = 'Distinction', plurallabel = 'Distinctions', value = 'distinction', property = 'P166'},
				{type = 'row', label = 'Statut patrimonial', value = 'statut patrimonial', property = 'P1435'},
				{type = 'row', label = 'Membre de', value = 'membre de', property = 'P463'},
				building.website(),
				}
			},
			building.geoloc(),
	}
}