Aller au contenu

Module:Infobox/Plage

Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 1 août 2016 à 00:52 et modifiée en dernier par Thierry Caro (discuter | contributions) (Nouvelle page : local building = require "Module:Infobox/Fonctions/Bâtiment" local general = require "Module:Infobox/Fonctions" local wikidata = require "Module:Wikidata" local wd = require "Mod...). Elle peut contenir des erreurs, des inexactitudes ou des contenus vandalisés non présents dans la version actuelle.
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

 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 Plage.


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

return 
	{
	maincolor = "F7F4AA",
	parts =
    	{
			general.title( "entete map"),
			l.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', rows = {
				building.coordinates(),
				{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'},
				building.adminlocation(),
				{type = 'row', label = "Type", value = "type", property = 'P31', excludevalues = 'Q40080'},
				{type = 'row', label = "Propriété", value = "propriété", property = 'P127'},
				{type = 'row', label = "Étendue d'eau", value = "étendue eau", property = 'P206'},
				{type = 'row', label = "Sol", value = "Type de sol", property = 'P186'},
				{type = 'row', label = "Partie de", value = "partie de", property = 'P361'},
				{type = "row", label = "Aire protégée", plurallabel = "Aires protégées", value = "aire protégée", property = "P3018"},
				{type = 'row', label = "Climat", plurallabel = "Climats", value = "climat", property = 'P2564'},
				{type = 'row', label = "Altitude", value = "altitude", wikidata = {property = 'P2044', targetunit = 'metre', conjtype = ' ou '} },
				{type = 'row', label = "Longueur", value = "longueur", property = 'P2043'},
				{type = 'row', label = "Largeur", value = "largeur", property = 'P2049'},
				{type = 'row', label = "Superficie", value = "km²", wikidata = {property = 'P2046', targetunit = 'sqkm'} },
				{type = 'row', label = "Subdivision", plurallabel = "Subdivisions", value = "subdivision", property = 'P150'},
				{type = 'row', label = "Qualité des eaux", value = "qualité des eaux"},
				{type = 'row', label = "Label", plurallabel = "Labels", value = "label", property = 'P166'},
				{type = 'row', label = "Public accepté", value = "public accepté"},
				{type = 'row', label = "Période d'ouverture", value = "période ouverture"},
				{type = 'row', label = "Baignade surveillée", value = "heure surveillée"},
				{type = 'row', label = "Entrée payante", value = "entrée payante"},
				{type = 'row', label = "Services", value = "services"},
				{type = 'row', label = "Activités gratuites", value = "activités gratuites"},
				{type = 'row', label = "Activités payantes", value = "activités payantes"},
				}
			},
			building.geoloc({pointtype = 'lac', maptype = 'relief'}),
	}
}