« Module:Infobox/Monument » : différence entre les versions

De Lagny-sur-Marne Wiki
Aller à la navigation Aller à la recherche
0x010D (discussion | contributions)
m pas très convaincant pour l'instant
0x010D (discussion | contributions)
prépare centralisation
Ligne 17 : Ligne 17 :
{type = 'mixed', label = 'Type', value = 'type'}, --property = 'P31'},
{type = 'mixed', label = 'Type', value = 'type'}, --property = 'P31'},
building.archistyle(),
building.archistyle(),
building.architect(),
-- building.creator(),
building.engineer(),
building.material(),
{type = 'mixed', label = 'Matériau', value = 'matériau', property = 'P186'},
-- building.construction(),
{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 = 'Commanditaire', value = 'commanditaire', property = 'P88'},
{type = 'mixed', label = 'Dimensions', value = 'hauteur'},
{type = 'mixed', label = 'Dimensions', value = 'hauteur'},

Version du 5 mars 2015 à 19:23

local building = require "Module:Infobox/Fonctions/Bâtiment" local general = require "Module:Infobox/Fonctions" local wikidata = require "Module:Wikidata"

return { maincolor = '#E6E3CF', parts =

   	{

general.title(), general.logo(), building.mainimage(), {type = 'table', title = 'Présentation', 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'}, {type = 'mixed', label = 'Type', value = 'type'}, --property = 'P31'}, building.archistyle(), -- building.creator(), building.material(), -- building.construction(), {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.historicalregion(), building.adminlocation(), } }, {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(), } }