Module:Infobox/Plan d'eau

 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 Plan d'eau.


local building = require "Module:Infobox/Fonctions/Bâtiment"
local general = require "Module:Infobox/Fonctions"
local l = require "Module:Infobox/Fonctions/Localité"

return {
	maincolor = 'D0E0F0',
	parts = {
		
		general.title( "map"),
		general.mainimage{cat = "Article à illustrer Plan d'eau", wikidata = {property = {"P18", "P5252"}}},
		{type = 'table', rows = {
			{type = 'row', label = 'Nom local', value = {'nom local', 'nom dans la langue originale'}, wikidata = {property = 'P1705', showlang = true}},
			{type = 'row', label = 'Nom officiel', plurallabel = 'Noms officiels', value = 'nom officiel', wikidata = {property = 'P1448', showlang = true}},
		}},
		
		{type = 'table', title = 'Localisation', rows = {
			{type = 'row', label = 'Continent', plurallabel = 'Continents', value = 'continent', property = 'P30'},
			building.adminlocation(),
			building.island(),
			{type = 'row', label = 'Localisation géographique', value = 'localisation géographique', property = 'P706'},
			building.mountainrange(),
			{type = 'row', label = 'Partie de', value = 'partie de', property = 'P361'},
			building.protectedarea(),
			{type = 'row', label = 'Altitude', value = 'altitude', wikidata = {property = 'P2044', targetunit = 'metre', conjtype = ' ou ', rounding = '0'} },
			{type = 'row', label = 'Climat', plurallabel = 'Climats', value = 'climat', property = 'P2564'},
			building.coordinates(),
		}},
		{type = 'table', title = 'Dimensions', rows = {
			{type = 'row', label = 'Longueur', value = 'longueur', wikidata = {property = 'P2043', targetunit = 'km', rounding = '2'}},
			{type = 'row', label = 'Largeur', value = 'largeur', wikidata = {property = 'P2049', targetunit = 'km', rounding = '2'}},
			{type = 'row', label = 'Périmètre', value = 'périmètre', wikidata = {property = 'P2547', targetunit = 'km', rounding = '2'}},
			{type = 'row', label = 'Superficie', value = 'superficie', wikidata = {property = 'P2046', targetunit = 'sqkm', rounding = '1'} },
			{type = 'row', label = 'Profondeur', value = 'profondeur', wikidata = {property = 'P4511', targetunit = 'm', rounding = '0'} },
			{type = 'row', label = 'Volume', value = 'volume', wikidata = {property = 'P2234', targetunit = 'km3', rounding = '3'}},
			{
				type = "row",
				label = "Îles",
				value = "nombre d'îles",
				wikidata = {
					property = 'P2670',
					targetvalue = 'Q23442',
					qualifiers = 'P1114',
					showonlyqualifier = {'P1114'}
					}
			},
			general.bathymetricmap(),
		}},
		{type = 'table', title = 'Hydrographie', rows = {
			{type = 'row', label = 'Type', value = 'type', property = 'P31'},
			{type = 'row', label = 'Superficie du bassin', value = 'superficie du bassin', wikidata = {property = 'P2053', targetunit = 'sqkm', rounding = '0'} },
			{type = 'row', label = 'Pays du bassin', value = {'pays du bassin', 'pays du bassin versant', 'pays souverain sur le bassin versant'}, property = 'P205'},
			{type = 'row', label = 'Alimentation', value = 'alimentation', property = 'P200'},
			{type = 'row', label = 'Rétention', value = {'rétention', 'durée de rétention'}, property = 'P3020'},
			{type = 'row', label = 'Émissaire', plurallabel='Émissaires', value = 'émissaire', property = 'P201'},
			building.watershed(),
		}},
		
		{type = 'table', title = 'Histoire', rows = {
			{type = 'row', label = 'Origine du nom', value = 'origine du nom', property = 'P138'},
			{type = 'row', label = 'Événement clé', plurallabel = 'Événements clés', value = 'événement clé', property = 'P793'},
			building.owner(),
			{type = 'row', label = 'Barrage', plurallabel = 'Barrages', value = 'barrage', property = 'P4792'},
			{type = 'row', label = 'Problème environnemental', plurallabel = 'Problèmes environnementaux', value = 'problème environnemental', property = 'P3643'},
			{type = 'row', label = 'Statut patrimonial', value = 'statut patrimonial', property = 'P1435'},
			{type = 'row', label = 'Distinction', plurallabel = 'Distinctions', value = 'distinction', property = 'P166'},
			{type = 'row', label = '[[Office de tourisme|Informations]]', value = 'informations', wikidata = {property = 'P2872', numval = '5'}},
		}},
		building.geoloc({pointtype = 'lac', default_zoom = 8, maptype = 'relief', marker = 'wetland', markercolor = '#778BA5'}),
	}
}