Módulo:Infobox/Hotel

Origem: Wikipédia, a enciclopédia livre.
local building = require "Module:Infobox/Funções/Edifício"
local general = require "Module:Infobox/Funções"
local wikidata = require "Module:Infobox/Wikidata"

local starnumber = require "Module:Número de estrelas"._starnumber

return
    {
    maincolor = '#E6E3CF',
    parts =
        {
            general.title(),
            general.logo(),
            building.mainimage('!Artigos sem imagens'),
            {type = 'table', title = 'Localização', rows = {
                building.adminlocation(),
                {type = 'row', label = '[[Altitude]]', value = 'altitude', wikidata = {property = 'P2044', targetunit = 'metro', conjtype = ' ou ', rounding = '0', numval ='1'} },
                building.mountainrange(),
                {type = 'row', label = 'Localização', value = 'localização', property = 'P706'},
                building.onshoreof(),
                building.protectedarea(),
                building.coordenadas(),
            }},
            {type = 'table', title = 'Arquitetura', rows = {
                {type = 'row', label = 'Tipo', value = 'tipo', property = 'P31'},
                building.construction(),
                building.opening(),
                building.creator(),
                building.archistyle(),
                building.protection(),
            }},
            {type = 'table', title = 'Equipamentos', rows = {
                {type = 'row', label = 'Nº de estrelas', value = function (localdata) return starnumber(localdata['estrelas']) end},
                {type = 'row', label = 'Nº de diamantes', value = 'diamantes'},
                building.floors(),
                {type = 'row', label = 'Superfície', value = 'superfície'},
                {type = 'row', label = 'Nº de quartos', value = 'quartos', wikidata = {showonlyqualifier = "P1114", property = "P2670", targetvalue = "Q23541360"}},
                {type = 'row', label = 'Nº de restaurantes', value = 'número de restaurantes', wikidata = {showonlyqualifier = "P1114", property = "P2670", targetvalue = "Q11707"}},
                {type = 'row', label = '[[Panorama|Vista sobre]]', value = 'vista sobre', wikidata = {property = 'P3173', showqualifiers = 'P654', numval = '4'}},
                {type = 'row', label = 'Estacionamento', value = 'estacionamento'},
            }},
            {type = 'table', title = 'Gestão', rows = {
                building.owner(),
                building.operator(),
                {type = 'row', label = 'Membro de', value = 'membro de', wikidata = {property = 'P463', showdate = 'true'}},
                building.website(),
            }},
            building.geoloc({pointtype = 'refuge', marker = 'lodging'}),
            {type = 'text', value = 'rodapé'},
        }
}