Module:Infobox/Stade
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 Stade.
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"
return
{
maincolor = '#efefef',
parts =
{
general.title('stadium.svg'),
general.logo(),
building.mainimage(),
{type = 'table', title = 'Généralités', rows = {
{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.adminlocation(),
},
},
{type = 'table', title = "Construction et ouverture", rows = {
{type = 'mixed', label = 'Début construction', value = 'début construction'},
{type = 'mixed', label = 'Construction', value = 'construction',
wikidata = function(item) return wikidata.getTheDate{property = 'P793', targetvalue = 'Q385378', addcat = true, item = item} end
},
{type = 'mixed', label = 'Ouverture', value = 'ouverture'}, -- valeur de P793 pour ouverture
{type = 'mixed', label = 'Inauguration', value = 'inauguration',
value = function(localdata, item) -- déactivé si le paramètre "ouverture" este renseigné : risques de doublon
if localdata['ouverture'] then return nil end
if item then
return wikidata.getTheDate{property = 'P793', targetvalue = 'Q1417098', addcat = true, item=item}
end
end
},
building.creator(),
{type = 'mixed', label = 'Rénovation', value = 'rénovation',
wikidata = function(item) return wikidata.getTheDate{property = 'P793', targetvalue = 'Q2144402', addcat = true, entity = item} end
},
{type = 'mixed', label = 'Extension', value = 'extension'},
{type = 'mixed', label = 'Coût de construction', value = 'cout construction'},
building.closure(),
building.demolition(),
},
},
{type = 'table', title = 'Utilisation', rows = {
{type = 'mixed', label = 'Clubs résidents', value = 'clubs résidents', property = 'P466'},
{type = 'mixed', label = 'Propriétaire', value = 'propriétaire', property = 'P127'},
{type = 'mixed', label = 'Administration', value = 'administration', property = 'P137'},
},
},
{type = 'table', title = 'Équipement', rows = {
{type = 'mixed', label = 'Surface', value = 'surface', property = 'P765'},
{type = 'mixed', label = 'Capacité', value = 'capacité'}, -- , property = 'P1083' mais voir les qualificatifs à utiliser pour éviter les trucs bizarres
{type = 'mixed', label = 'Tribunes', value = 'tribunes'},
{type = 'mixed', label = 'Affluence record', value = 'affluence_record'},
{type = 'mixed', label = 'Dimensions', value = 'dimensions'},
building.protection()
},
},
{type = 'table', title = 'Localisation', rows = {
building.coordinates(),
}
},
building.geoloc(),
}
}