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 26 décembre 2017 à 03:28 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 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( "entete map"),
		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 = 'table', title = 'Localisation', rows = {
			{type = 'row', label = 'Continent', plurallabel = 'Continents', value = 'continent', property = 'P30'},
			building.adminlocation(),
			building.mountainrange(),
			building.protectedarea(),
			{type = 'row', label = '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', wikidata = {property = 'P2048', targetunit = 'm', rounding = '0'} },
			{type = 'row', label = 'Sauts'},
			{type = 'row', label = 'Plus grand saut', wikidata = {property = 'P2048', targetunit = 'm', rounding = '0', qualifier = 'P518', targetvalue = 'Q46868895'}},
			{type = 'row', label = 'Largeur', wikidata = {property = 'P2049', targetunit = 'm', rounding = '0'}},
		}},
		{type = 'table', title = 'Hydrographie', rows = {
			{type = 'row', label = 'Type', value = 'type', property = 'P31'},
			{type = 'row', label = '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 = '[[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 WWD', value = 'WWD', wikidata = {property = 'P3326', urlpattern = 'http://www.worldwaterfalldatabase.com/waterfall/$1'}},
		}},
		building.geoloc({pointtype = 'lac', maptype = 'relief', marker = 'wetland', markercolor = '#778BA5'}),
	}
}