Documentation[voir] [modifier] [historique] [purger]

Cette page définit un module d'infobox. Pour les conseils sur l'usage de ce module, voyez Modèle:Infobox Hôtel.


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

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 = '[[Panorama|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'}),
		}
}