Module:Infobox/Centre de congrès

Une page de Wikipédia, l'encyclopédie libre.

 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 de congrès.


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

return {
	maincolor = '#efefef',
	parts = {
		
		general.title(),
		general.logo(),
		building.mainimage(),
		{type = 'table', title = 'Généralités', rows = {
			{type = 'mixed', label = 'Noms précédents', value = 'noms précédents'},
			{type = 'mixed', label = 'Surnom(s)', value = 'surnom'},
			{type = 'mixed', label = 'Nom complet', value = 'nom complet'},
			{type = 'mixed', label = 'Adresse', value = 'adresse', wikidata = function ( item ) return address.fullAddress(item) end}
		}},
		
		{type = 'table', title = "Construction et ouverture", rows = {
			building.construction(),
			building.opening(),
			building.creator(),
			building.renovation(),
			{type = 'mixed', label = 'Coût de construction', value = 'cout construction'},
			building.closure(),
			building.demolition(),
		}},
		
		{type = 'table', title = 'Utilisation', rows = {
			{type = 'mixed', label = 'Surface', value = 'surface', property = 'P765'},
			{type = 'mixed', label = 'Nb halls', value = 'nb halls'},
			{type = 'mixed', label = 'Capacité', value = 'capacité', property = 'P1083'},
			{type = 'mixed', label = 'Propriétaire', value = 'propriétaire', property = 'P127'},
			{type = 'mixed', label = 'Administration', value = 'administration', property = 'P137'},
			{type = 'mixed', label = 'Site web', value = 'Site web', property = 'P856'},
		}},
		
		{type = 'table', title = 'Équipement', rows = {
			building.protection()
		}},
		
		{type = 'table', title = 'Localisation', rows = {
			building.coordinates(),
		}},
		
		building.geoloc({marker='stadium', default_zoom=11}),
	}
}