Module:Infobox/Monument/Bac à sable
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 Monument/Bac à sable.
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 (modifier).
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"
return
{
maincolor = '#E6E3CF',
style = {border = '3px solid E6E3CF'},
parts =
{
-- general.title(),
general.logo(),
building.mainimage(),
{type = 'table', title = 'Présentation', rows = {
{type = 'mixed', label = 'Nom local', value = 'nom local'},
{type = 'mixed', label = 'Noms précédents', value = 'noms précédents'},
{type = 'mixed', label = 'Surnom(s)', value = 'surnom'},
{type = 'mixed', label = 'Nom complet', value = 'nom complet'},
building.archistyle(),
{type = 'mixed', label = 'Type', value = 'type'}, -- property = 'P31' ?
building.architect(),
building.engineer(),
{type = 'mixed', label = 'Date de construction', value = 'date de construction',
wikidata = wikidata.getTheDate{property = 'P793', targetvalue = 'Q385378', addcat = true}
},
building.opening(),
{type = 'mixed', label = 'Commanditaire', value = 'commanditaire', property = 'P88'},
{type = 'mixed', label = 'Dimensions', value = 'hauteur'},
{type = 'mixed', label = 'Destination initiale', value = 'destination initiale'},
{type = 'mixed', label = 'Propriétaire', value = 'propriétaire', property = 'P127'},
{type = 'mixed', label = 'Destination actuelle', value = 'destination actuelle'},
building.operator(),
{type = 'mixed', label = 'Date de démolition', value = 'date de démolition',
wikidata = wikidata.getTheDate{property = 'P793', targetvalue = 'Q331483', addcat = true}
},
building.protection(),
building.website(),
}
},
{type = 'table', title = 'Géographie', rows = {
building.country(),
building.address2()
}
},
{type = 'table', title = 'Accès et transport', rows = {
{type = 'mixed', label = 'Stationnement', value = 'stationnement'},
{type = 'mixed', label = 'Gare', value = 'gare'},
{type = 'mixed', label = 'Métro', value = 'métro'},
{type = 'mixed', label = 'Tramway', value = 'tramway'},
{type = 'mixed', label = 'Autobus', value = 'bus'},
},
},
{type = 'table', title = 'Localisation', rows = {
building.coordinates(),
}
},
building.geoloc(),
}
}