Module:Infobox/Point de vue panoramique
[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 Point de vue panoramique.
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 function getDate(event)
return wikidata.getTheDate{targetvalue = event, property = 'P793', addcat = true, entity = item}
end
return
{
maincolor = 'E6E3CF',
parts =
{
{
type = 'title',
icon = 'map',
value = 'nom',
},
general.logo(),
building.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 = 'row', label = 'Origine du nom', value = 'origine du nom', property = 'P138'},
}
},
{type = 'table', title = 'Localisation', rows = {
{type = 'row', label = 'Continent', plurallabel = 'Continents', value = 'continent', property = 'P30'},
building.adminlocation(),
{type = 'row', label = 'Localisation géographique', value = 'localisation géographique', property = 'P706'},
building.mountainrange(),
{type = 'row', label = 'Partie de', value = 'partie de', property = 'P361'},
{type = 'row', label = 'Code postal', value = 'code postal', property = 'P281'},
{type = 'row', label = 'Fuseau horaire', value = 'fuseau horaire', property = 'P421'},
{type = 'row', label = 'Baigné par', value = 'baigné par', property = 'P206'},
{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'},
{type = "row", label = "Aire protégée", plurallabel = "Aires protégées", value = "aire protégée", property = "P3018"},
building.coordinates(),
}
},
general.locationmap(),
{type = 'table', title = 'Description', rows = {
{type = 'row', label = 'Type', value = 'type', property = 'P31'},
{type = 'row', label = 'Vue sur', value = 'vue sur', property = 'P3173', numval = '8'},
{type = 'row', label = 'Superficie', value = 'superficie', wikidata = {property = 'P2046', targetunit = 'sqkm'} },
{type = 'row', label = 'Équipement', plurallabel = 'Équipements', value = 'équipement', property = 'P912'},
{type = 'row', label = 'Concepteur', plurallabel = 'Concepteurs', value = 'concepteur', property = 'P287'},
{type = 'row', label = 'Architecte', plurallabel = 'Architectes', value = 'architecte', property = 'P84'},
{type = 'row', label = 'Remplace', value = 'remplace', property = 'P1365'},
{type = 'row', label = 'Événement clé', plurallabel = 'Événements clés', value = 'événement clé', property = 'P793'},
{type = 'row', label = 'Distinction', plurallabel = 'Distinctions', value = 'distinction', property = 'P166'},
building.protection(),
{type = 'row', label = 'Fréquentation annuelle', value = 'fréquentation annuelle', wikidata = {property = 'P1174', showdate = true}},
building.website(),
}
},
building.geoloc({marker = 'attraction'}),
}
}