« Module:Infobox/Fonctions/Bâtiment » : différence entre les versions

De Lagny-sur-Marne Wiki
Aller à la navigation Aller à la recherche
0x010D (discussion | contributions)
Aucun résumé des modifications
0x010D (discussion | contributions)
+ style architectural
Ligne 38 : Ligne 38 :
function p.country(default)
function p.country(default)
  return coordfunctions.country(default)
  return coordfunctions.country(default)
end
function p.archistyle()
return {
type = 'mixed',
label = 'Style architectural',
value = 'style architectural',
property = 'P149',
}
end
end



Version du 5 octobre 2014 à 15:10

local p = {} local wikidatamod = require 'Module:Wikidata' local general = require 'Module:Infobox/Fonctions' local coordfunctions = require 'Module:Infobox/Fonctions/Géolocalisation'

--Titre function p.title() -- local class = en-tête par défaut à définir ici ? return general.title() end

--Image function p.mainimage(cat, defaultimage) if not cat then cat = 'Article à illustrer Bâtiment divers' end return general.mainimage(cat, defaultimage) end

function p.coordinates(coordspecs) return coordfunctions.coordinates(coordspecs) end

function p.website() return general.website() end


function p.address() return { type = 'mixed', label = 'Adresse', value = 'adresse', wikidata = function() return require('Module:Adresse').wikidataAddress({item=item}) end, } end

function p.country(default)

return	coordfunctions.country(default)	

end

function p.archistyle() return { type = 'mixed', label = 'Style architectural', value = 'style architectural', property = 'P149', } end

function p.architect() return { type = 'mixed', label = 'Architecte', value = 'architecte', property = 'P84' } end

function p.engineer() return { type = 'mixed', label = 'Ingénieur', value = 'ingénieur', property = 'P631' } end

function p.geoloc(params) return coordfunctions.geoloc(params) end

return p