Module:Infobox/Monument : Différence entre versions
m |
|||
Ligne 20 : | Ligne 20 : | ||
building.material(), | building.material(), | ||
building.construction(), | building.construction(), | ||
+ | {type = 'mixed', label = 'Date de démolition', value = 'date de démolition', | ||
+ | wikidata = function(item) return wikidata.getTheDate{property = 'P793', targetvalue = 'Q331483', addcat = true, entity = item} end | ||
+ | }, | ||
{type = 'mixed', label = 'Commanditaire', value = 'commanditaire', property = 'P88'}, | {type = 'mixed', label = 'Commanditaire', value = 'commanditaire', property = 'P88'}, | ||
{type = 'mixed', label = 'Hauteur', value = 'hauteur'}, | {type = 'mixed', label = 'Hauteur', value = 'hauteur'}, | ||
Ligne 26 : | Ligne 29 : | ||
building.owner(), | building.owner(), | ||
building.operator(), | building.operator(), | ||
− | |||
− | |||
− | |||
building.protection(), | building.protection(), | ||
building.website(), | building.website(), |
Version du 23 mars 2015 à 13:33
La documentation pour ce module peut être créée à Module:Infobox/Monument/doc
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 = 'Date de démolition', value = 'date de démolition', wikidata = function(item) return wikidata.getTheDate{property = 'P793', targetvalue = 'Q331483', addcat = true, entity = item} end }, {type = 'mixed', label = 'Commanditaire', value = 'commanditaire', property = 'P88'}, {type = 'mixed', label = 'Hauteur', value = 'hauteur'}, {type = 'mixed', label = 'Destination initiale', value = 'destination initiale'}, {type = 'mixed', 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 = { {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(), } }