Aller au contenu

Module:Infobox/Monument/Bac à sable

Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 14 janvier 2015 à 17:41 et modifiée en dernier par Zolo (discuter | contributions) (Nouvelle page : local building = require "Module:Infobox/Fonctions/Bâtiment" local general = require "Module:Infobox/Fonctions" local wikidata = require "Module:Wikidata" return { maincolor...). Elle peut contenir des erreurs, des inexactitudes ou des contenus vandalisés non présents dans la version actuelle.
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

 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 Monument/Bac à sable.


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

return 
	{
	maincolor = '#E6E3CF',
	style = {border = '3px solid E6E3CF'},
	parts =
    	{
	--		general.title(),
			general.logo(),
			building.mainimage(),
			{type = 'table', title = 'Présentation', rows = {
				{type = 'mixed', label = 'Nom local', value = 'nom local'},
				{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'},
				building.archistyle(),
				{type = 'mixed', label = 'Type', value = 'type'}, -- property = 'P31' ?
				building.architect(),
				building.engineer(),
				{type = 'mixed', label = 'Date de construction', value = 'date de construction',
					wikidata = wikidata.getTheDate{property = 'P793', targetvalue = 'Q385378', addcat = true}
				},
				building.opening(),
				{type = 'mixed', label = 'Commanditaire', value = 'commanditaire', property = 'P88'},
				{type = 'mixed', label = 'Dimensions', value = 'hauteur'},
				{type = 'mixed', label = 'Destination initiale', value = 'destination initiale'},
				{type = 'mixed', label = 'Propriétaire', value = 'propriétaire', property = 'P127'},
				{type = 'mixed', label = 'Destination actuelle', value = 'destination actuelle'},
				building.operator(),
				{type = 'mixed', label = 'Date de démolition', value = 'date de démolition',
					wikidata = wikidata.getTheDate{property = 'P793', targetvalue = 'Q331483', addcat = true}	
				},
				building.protection(),
				building.website(),
				}
			},
			{type = 'table', title = 'Géographie', rows = {	
				building.country(),
				{type = 'mixed', label = 'Région', value = 'région'},
				{type = 'mixed', label = function(localdata, item) return localdata['intitulé subdivision'] or 'Subdivision administrative' end, value = 'subdivision'},
				{type = 'mixed', label = function(localdata, item) return localdata['intitulé subdivision2'] or 'Subdivision administrative' end, value = 'subdivision2'},
				{type = 'mixed', label = function(localdata, item) return localdata['intitulé commune'] or 'Commune' end, value = 'commune'},
				building.address()
				}
			},
			{type = 'table', title = 'Accès et transport', rows = {
				{type = 'mixed', label = 'Stationnement', value = 'stationnement'},
				{type = 'mixed', label = 'Gare', value = 'gare'},
				{type = 'mixed', label = 'Métro', value = 'métro'},
				{type = 'mixed', label = 'Tramway', value = 'tramway'},
				{type = 'mixed', label = 'Autobus', value = 'bus'},
				},
			},
			{type = 'table', title = 'Localisation', rows = {
				building.coordinates(),
				}
			},
			building.geoloc(),
	}
}