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

De Lagny-sur-Marne Wiki
Aller à la navigation Aller à la recherche
0x010D (discussion | contributions)
mAucun résumé des modifications
0x010D (discussion | contributions)
m redondances
Ligne 1 : Ligne 1 :
local building = require "Module:Infobox/Fonctions/Bâtiment"
local building = require "Module:Infobox/Fonctions/Bâtiment"
local general = require "Module:Infobox/Fonctions"
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  
return  
Ligne 46 : Ligne 41 :
},
},
{type = 'table', title = 'Accès et transport', rows = {
{type = 'table', title = 'Accès et transport', rows = {
{type = 'row', label = 'Stationnement', value = 'stationnement'},
building.transport(),
{type = 'row', label = 'Gare', value = 'gare'},
{type = 'row', label = 'Métro', value = 'métro'},
{type = 'row', label = 'Tramway', value = 'tramway'},
{type = 'row', label = 'Autobus', value = 'bus'},
},
},
},
},

Version du 22 septembre 2015 à 06:37

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

return { maincolor = '#E6E3CF', parts =

   	{

general.title(nil, nil, 'nom local', nil), general.logo(), building.mainimage(), {type = 'table', title = 'Présentation', rows = { {type = 'row', label = 'Noms précédents', value = 'noms précédents'}, {type = 'row', label = 'Surnom(s)', value = 'surnom'}, {type = 'row', label = 'Nom complet', value = 'nom complet'}, {type = 'row', label = 'Culte', value = 'culte'}, {type = 'row', label = 'Type', value = 'type'}, --property = 'P31'}, {type = 'row', label = 'Rattachement', value = 'rattachement'}, building.archistyle(), building.creator(), building.material(), building.construction(), building.opening(), building.renovation(), building.demolition(), {type = 'row', label = 'Commanditaire', value = 'commanditaire', property = 'P88'}, {type = 'row', label = 'Hauteur', value = 'hauteur'}, {type = 'row', label = 'Destination initiale', value = 'destination initiale'}, {type = 'row', label = 'Destination actuelle', value = 'destination actuelle'}, building.owner(), building.operator(), building.protection(), building.website(), } }, {type = 'table', title = 'Géographie', rows = { building.country(), building.historicalregion(), building.adminlocation(), } }, {type = 'table', title = 'Accès et transport', rows = { building.transport(), }, }, {type = 'table', title = 'Localisation', rows = { building.coordinates(), } }, building.geoloc(), } }