Aller au contenu

Module:Infobox/Stade

Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 14 août 2017 à 01:29 et modifiée en dernier par Thierry Caro (discuter | contributions). Elle peut contenir des erreurs, des inexactitudes ou des contenus vandalisés non présents dans la version actuelle.

 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 Stade.


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('stadium.svg'),
		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 = 'Clubs résidents', value = 'clubs résidents', property = 'P466'},
			{type = 'mixed', label = 'Propriétaire', value = 'propriétaire', property = 'P127'},
			{type = 'mixed', label = 'Administration', value = 'administration', property = 'P137'},
		}},
	
		{type = 'table', title = 'Équipement', rows = {
			{type = 'mixed', label = 'Surface', value = 'surface', property = 'P765'},
			{type = 'mixed', label = 'Capacité', value = 'capacité'}, -- , property = 'P1083' mais voir les qualificatifs à utiliser pour éviter les trucs bizarres
			{type = 'mixed', label = 'Tribunes', value = 'tribunes'},
			{type = 'mixed', label = 'Affluence record', value = 'affluence_record'},
			{type = 'mixed', label = 'Dimensions', value = 'dimensions'},
			building.protection()
		}},
	
		{type = 'table', title = 'Localisation', rows = {
			building.coordinates(),
		}},
	
		building.geoloc({marker = 'stadium'}),
	}
}