Module:Infobox/Plage
Apparence
[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.
La documentation de ce module est générée par le modèle {{Documentation module}}.
Elle est incluse depuis la page Modèle:Documentation module d'infobox. Veuillez placer les catégories sur cette page-là.
Les éditeurs peuvent travailler dans le bac à sable (créer).
Voir les statistiques d'appel depuis le wikicode sur l'outil wstat et les appels depuis d'autres modules.
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 = "Type de sol", value = "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'}),
}
}