Module:Infobox/Hôtel/Bac à sable
De Wikipedia, l'encyclopédie encyclopedia
--[[ Avant de mettre en production une nouvelle version avez-vous : - testé avec la version bac à sable ? - modifié la documentation ? ]]
--local building = require "Module:Infobox/Fonctions/Bâtiment" local building = require "Module:Infobox/Fonctions/Bâtiment/Bac à sable" --local general = require "Module:Infobox/Fonctions" local general = require "Module:Infobox/Fonctions/Bac à sable" --local wikidata = require "Module:Wikidata" local wikidata = require "Module:Wikidata/Bac à sable"
local starnumber = require "Module:Nombre d'étoiles"._starnumber
return { maincolor = '#E6E3CF', parts = { general.title(), general.logo(), building.mainimage{cat = 'Article à illustrer Hôtel', wikidata = {property = {"P2716", "P18", "P5775"}}}, {type = 'table', title = 'Localisation', rows = { building.adminlocation(), {type = 'row', label = 'Altitude', value = 'altitude', wikidata = {property = 'P2044', targetunit = 'metre', conjtype = ' ou ', rounding = '0', numval ='1'} }, building.mountainrange(), {type = 'row', label = 'Localisation', value = 'localisation', property = 'P706'}, building.onshoreof(), building.protectedarea(), building.coordinates(), }}, {type = 'table', title = 'Architecture', rows = { {type = 'row', label = 'Type', value = 'type', property = 'P31'}, building.construction(), building.opening(), building.creator(), building.archistyle(), building.protection(), }}, general.interior(), {type = 'table', title = 'Équipements', rows = { {type = 'row', label = 'Étoiles', value = function (localdata) return starnumber(localdata['étoiles']) end}, building.floors(), {type = 'row', label = 'Superficie', value = 'superficie'}, {type = 'row', label = 'Chambres', value = 'chambre', wikidata = {showonlyqualifier = "P1114", property = "P2670", targetvalue = "Q23541360"}}, {type = 'row', label = 'Restaurants', value = 'restaurant', wikidata = {showonlyqualifier = "P1114", property = "P2670", targetvalue = "Q11707"}}, {type = 'row', label = 'Vue sur', value = 'vue sur', wikidata = {property = 'P3173', showqualifiers = 'P654', numval = '4'}}, }}, {type = 'table', title = 'Gestion', rows = { building.owner(), building.operator(), {type = 'row', label = 'Membre de', value = 'membre de', wikidata = {property = 'P463', showdate = 'true'}}, building.website(), }}, building.geoloc({pointtype = 'refuge', marker = 'lodging'}), } }