Module:Infobox/Chute d'eau

Une page de Wikipédia, l'encyclopédie libre.

 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( "coursdeau"),
		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({'localisation'}),
			{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','Q570116'}}},
			{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'}),
	}
}