Module:Infobox/Centre commercial

 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 Centre commercial.

local building = require "Module:Infobox/Fonctions/Bâtiment"
local centre = require "Module:Infobox/Fonctions"
local address = require "Module:Adresse"


return {
	maincolor = '#E1E1E1',
	parts = {
		centre.title(),
		centre.logo('100px'),
		centre.mainimage('Article à illustrer Centre commercial', 'Defaut 2.svg'),
		{type = 'table', rows = {
			{
				type = "row",
				label = "Type",
				value = "type",
				property = "P31",
			},
			{
				type = "row",
				label = "Emplacement",
				value = function ( localdata )
					return address.fullAddress( localdata.item, localdata['pays'], nil, nil, localdata['emplacement'] ) 
				end,
			},
			building.creator(),
			building.operator(),
			building.owner(),
			building.opening(),
			building.visitors(),
			{
				type = "row",
				label = "Chiffre d'affaires annuel",
				value = "chiffre d'affaires annuel"
			},
			{
				type = "row",
				label = 'Slogan',
				plurallabel = 'Slogans',
				value = 'slogan'
			},
			{
				type = "row",
				label = "Superficie",
				value = 'superficie totale',
				wikidata = {
					property = "P2046",
					showqualifiers = "P518",
					conjtype = '<br />',
					targetunit = 'square meter',
					rounding = '0'
				}
			},
			{
				type = "row",
				label = "Surface commerciale",
				value = "superficie commerciale"
			},
			building.floors(),
			{
				type = "row",
				label = "Commerces",
				value = "nombre de commerces",
				wikidata = {
					showonlyqualifier = "P1114",
					property = "P2670",
					targetvalue = "Q213441",
					showdate = true,
					}
			},
			{
				type = "row",
				label = "Restaurants",
				value = "nombre de restaurants",
				wikidata = {
					showonlyqualifier = "P1114",
					property = "P2670",
					targetvalue = "Q11707",
					showdate = true,
					}
			},
			{
				type = "row",
				label = "Stationnements",
				value = "nombre de places de parking",
				wikidata = {
					showonlyqualifier = 'P1083',
					property = 'P912',
					targetvalue = 'Q6501349',
					showdate = true,
					}
			},
			building.transport(),
			building.website(),
			{
				type = "row",
				label = "Note",
				value = "note"
			},
			building.coordinates(),
		}},
		building.geoloc({pointtype = 'localité', marker = 'shop', default_zoom = 14}),
	}
}