Saltar para o conteúdo

Módulo:Infobox/Centro comercial

Origem: Wikipédia, a enciclopédia livre.
local building = require "Module:Infobox/Funções/Edifício"
local centro = require "Module:Infobox/Funções"
local address = require "Module:Endereço"


return {
	maincolor = '#E1E1E1',
	parts = {
		centro.title(),
		centro.logo('100px'),
		centro.mainimage('!Artigos de arquitetura sem imagem', 'Padrao 2.svg'),
		{type = 'table', rows = {
			{
				type = 'row',
				label = 'Tipo',
				value = 'tipo',
				property = 'P31',
			},
			{
				type = 'row',
				label = 'Localização',
				value = function ( localdata )
					return address.fullAddress( localdata.item, localdata['país'], nil, nil, localdata['localização'] ) 
				end,
			},
			building.creator(),
			building.owner(),
			building.opening(),
			building.visitors(),
			{
				type = 'row',
				label = 'Volume de negócios anual',
				value = 'volume de negócios anual'
			},
			{
				type = 'row',
				label = 'Slogan',
				plurallabel = 'Slogans',
				value = 'slogan'
			},
			{
				type = 'row',
				label = 'Superfície',
				value = 'superfície total',
				wikidata = {
					property = 'P2046',
					showqualifiers = 'P518',
					conjtype = '<br />',
					targetunit = 'square meter',
					rounding = '0'
				}
			},
			{
				type = 'row',
				label = 'Área',
				value = 'área'
			},
			{
				type = 'row',
				label = 'Área construída',
				value = 'área_construída'
			},

			{
				type = 'row',
				label = 'Área locável',
				value = 'área_locável'
			},
			building.floors(),
			{
				type = 'row',
				label = 'Lojas',
				value = 'número_de_lojas',
				wikidata = {
					showonlyqualifier = 'P1114',
					property = 'P2670',
					targetvalue = 'Q213441',
					showdate = true,
					}
			},
			{
				type = 'row',
				label = 'Restaurantes',
				value = 'número de restaurantes',
				wikidata = {
					showonlyqualifier = 'P1114',
					property = 'P2670',
					targetvalue = 'Q11707',
					showdate = true,
					}
			},
			{
				type = 'row',
				label = 'Salas de cinema',
				value = 'salas_de_cinema'
			},
			{
				type = 'row',
				label = 'Movimento',
				value = 'movimento'
			},
			{
				type = 'row',
				label = 'Estacionamentos',
				value = 'estacionamento',
				wikidata = {
					showonlyqualifier = 'P1083',
					property = 'P912',
					targetvalue = 'Q6501349',
					showdate = true,
					}
			},
			building.transport(),
			building.website(),
			{
				type = 'row',
				label = 'Nota',
				value = 'nota'
			},
			building.coordenadas(),
		}},
		building.geoloc({pointtype = 'localité', marker = 'shop', default_zoom = 13}),
	}
}