Module:Infobox/Cimetière
Wikimedia module / De Wikipedia, l'encyclopédie encyclopedia
local building = require "Module:Infobox/Fonctions/Bâtiment" local general = require "Module:Infobox/Fonctions" local wikidata = require "Module:Wikidata" local linguistic = require "Module:Linguistique" local convert = require "Module:Conversion"
return { maincolor = '#B0C4DE', parts = { { type = 'title', -- n'utilise pas general.title à cause des paramètre "nom2" et "code langue", à harmoniser icon = 'map', value = 'nom', subtitle = function ( localdata ) local localname = localdata['nom2'] if not localname then return nil end localname = '' .. localname .. '' local lang = localdata['code langue'] lang = require "Module:Langue".indicationDeLangue{nil, lang} return linguistic.conj({localname, lang}, ' ') end }, general.mainimage('Article à illustrer Cimetière'), {type = 'table', rows = { building.country(), building.adminlocation(), building.protectedarea(), {type = 'row', label = 'Religion(s)', value = 'religion'}, { type = 'row', label = 'Superficie', value = function ( localdata ) return convert.displayvalue( localdata['superficie'], 'hectare', {showunit = 'long'} ) end }, {type = 'row', label = 'Tombes', value = 'tombes', property = 'P2351'}, {type = 'row', label = 'Personnes', value = 'personnes', property = 'P2324'}, {type = 'row', label = 'Mise en service', value = 'mise en service', property = 'P1619'}, {type = 'row', label = "Abandon", value = 'date abandon'}, -- événement Wikidata ? building.protection(), building.coordinates(), }}, {type = 'table', title = "Identifiants", rows = { building.website(), {type = 'row', label = "BillionGraves", value = 'BillionGraves', wikidata = {property = 'P4352', urlpattern="https://billiongraves.com/cemetery/wd/$1"}}, {type = 'row', label = "CWGC", value = 'CWGC', wikidata = {property = 'P1920', urlpattern="https://www.cwgc.org/find-a-cemetery/cemetery/$1"}}, {type = 'row', label = "Find a Grave", value = 'Find a Grave', wikidata = {property = 'P2025', urlpattern="https://www.findagrave.com/cemetery/$1"}}, {type = 'row', label = "Cimetières de France", value = 'Cimetières de France', wikidata = {property = 'P8337', urlpattern="http://www.cimetieres-de-france.fr/cimetiere/presentation/$1"}}, }}, building.geoloc({marker='cemetery', default_zoom=13}), {type = 'table', title = 'Personnalités enterrées', rows = { { type = 'row', value = function ( localdata ) if localdata['personnalité'] then
return '
'
end end } }}, } }