Aller au contenu

Module:Infobox/Drapeau

Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 5 novembre 2023 à 02:03 et modifiée en dernier par LaTerreACotta (discuter | contributions) (MAJ Catégorie). 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 Drapeau.


-- Code copié de Module:Infobox/Cheminée
-- L'objectif du code est de remplacer l'infobox Drapeau

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

return 
	{
	maincolor = '#F2F2F2',
	parts =
    	{
		general.title(),
		general.mainimage('Article à illustrer Drapeau', 'Defaut 2.svg'),
		{type = 'table', title = 'Localisation', rows = {
			{type = 'row', label = 'Localité', value = 'localité', property = 'P131'},
			building.historicalregion(),
			building.country(),
			building.coordinates(),
			building.elevation(),
					},
		},
			building.geoloc({pointtype = 'cheminée', marker='industry', default_zoom=12}),
			{type = 'table', title = 'Localisation', rows = {	
			{type = 'row', label = 'Type', value = 'type', wikidata = {property = 'P31', excludevalues = 'Q170477'}},
			building.material(),
			building.complex(),
			building.construction(),
			building.protection(),
					},
		},
		{type = 'table', title = 'Architecture', rows = {
			building.shape(),
			building.dimensions(),
			building.colour(),
			building.creator(),
					},
		},
	}
}