Aller au contenu

Module:Infobox/Chute d'eau

Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 2 mai 2021 à 11:42 et modifiée en dernier par Philippe rogez (discuter | contributions) (maj titre = chute d'eau au lieu de cours d'eau et prise en compte du Débit... il reste à faire la documentation en phase et les templatedata car wstat signale des erreurs si non rempli). 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 Chute 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 = '80B0E0',
	thirdcolor = 'white',
	parts = {
		
		general.title( "chutedeau"),
		l.mainimage(),
		{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', property = 'P1448'},
			{type = 'row', label = 'Autres noms', value = 'autres noms'},
		}},
		
		{type = 'table', title = 'Localisation', rows = {
			{type = 'row', label = 'Continent', plurallabel = 'Continents', value = 'continent', property = 'P30'},
			building.adminlocation(),
			{type = 'row', label = 'Localisation', value = 'localisation', property = 'P706'},
			building.island(),
			building.mountainrange(),
			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 = 'Caractéristiques', rows = {
			{type = 'row', label = 'Hauteur totale', value = 'hauteur totale', wikidata = {property = 'P2048', targetunit = 'm', rounding = '0', excludequalifier = {'P518', targetvalue = 'Q46868895'}}},
			{type = 'row', label = 'Sauts', value='sauts', wikidata = {property = 'P2670', showonlyqualifier = 'P1114', targetvalue = 'Q46867411'}},
			{type = 'row', label = 'Plus grand saut', value='plus grand saut', wikidata = {property = 'P2048', qualifier = {'P518', targetvalue = 'Q46868895'}}},
			{type = 'row', label = 'Largeur', value='largeur', wikidata = {property = 'P2049', targetunit = 'm', rounding = '0'}},
		}},
		{type = 'table', title = 'Hydrographie', rows = {
			{type = 'row', label = 'Type', value = 'type', wikidata = {property = 'P31', excludevalues = 'Q34038'}},
			{type = 'row', label = 'Débit', value = 'débit', wikidata = {property = 'P2225', targetunit = 'm3/s', rounding = '0'}},
			{type = 'row', label = 'Cours d\'eau', value = 'cours d\'eau', property = 'P361'},
			{type = 'row', label = 'Se jette dans', value = 'se jette dans', property = 'P403'},
			{type = 'row', label = '[[Bassin versant]]', value = 'bassin', wikidata = {property = 'P4614', defaultlinkquery = {property = {'P4614', 'P138'}}}},
		}},
		
		{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 = '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 = 'Identifiant [[World Waterfall Database|WWD]]', value = 'WWD', wikidata = {property = 'P3326', urlpattern='https://www.worldwaterfalldatabase.com/waterfall/$1'}},
		}},
		building.geoloc({pointtype = 'lac', maptype = 'relief', marker = 'wetland', markercolor = '#778BA5', default_zoom ='13'}),
	}
}