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

De Lagny-sur-Marne Wiki
Aller à la navigation Aller à la recherche
0x010D (discussion | contributions)
transfert une partie de l'infobox vers Module:Infobox/Fonctions/Bâtiment, peut-être un peu obscur, mais parait le moins mauvais moyen de préparer les fusions
0x010D (discussion | contributions)
ajout d'une ligne "matériau" (en l'absence d'opposition pour la proposition)
Ligne 20 : Ligne 20 :
{type = 'mixed', label = 'Surnom(s)', value = 'surnom'},
{type = 'mixed', label = 'Surnom(s)', value = 'surnom'},
{type = 'mixed', label = 'Nom complet', value = 'nom complet'},
{type = 'mixed', label = 'Nom complet', value = 'nom complet'},
{type = 'mixed', label = 'Type', value = 'type'}, -- property = 'P31' ?
building.archistyle(),
building.archistyle(),
{type = 'mixed', label = 'Type', value = 'type'}, -- property = 'P31' ?
building.architect(),
building.architect(),
building.engineer(),
building.engineer(),
{type = 'mixed', label = 'Matériau', value = 'matériau', property = 'P186'},
{type = 'mixed', label = 'Date de construction', value = 'date de construction',
{type = 'mixed', label = 'Date de construction', value = 'date de construction',
wikidata = wikidata.getTheDate{property = 'P793', targetvalue = 'Q385378', addcat = true}
wikidata = wikidata.getTheDate{property = 'P793', targetvalue = 'Q385378', addcat = true}

Version du 1 mars 2015 à 08:31

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 = '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'}, {type = 'mixed', label = 'Type', value = 'type'}, -- property = 'P31' ? building.archistyle(), building.architect(), building.engineer(), {type = 'mixed', label = 'Matériau', value = 'matériau', property = 'P186'}, {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.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(), } }