Documentation[voir] [modifier] [historique] [purger]

Cette page définit un module d'infobox.


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

return 
	{
	maincolor = '#008000',
	parts =
    	{
		tree.title('canada', {color = 'white'}),
		tree.mainimage('Article à illustrer Arbre', 'Defaut 2.svg'),
		{type = 'table', title = 'Localisation', rows = {
			{type = 'row', label = 'Lieu',  value = 'lieu', property = 'P276'},
			{type = 'row', label = 'Partie de',  value = 'partie de', property = 'P361'},
			building.adminlocation(),
			{type = 'row', label = 'Altitude', value = 'altitude', property = 'P2044'},
			{type = 'row', label = 'Pour s\'y rendre',  value = 'Pour s\'y rendre', property = 'P2795'},
			building.coordinates(),
					},
		},
		{type = 'table', title = 'Biologie', rows = {
			{type = 'row', label = 'Espèce', value = 'espèce', property = 'P225'},
			{type = 'row', label = 'Habitat', plurallabel = 'Habitats', value = 'habitat', property = 'P2974'},
			{type = 'row', label = 'Baigné par',  value = 'Baigné par', property = 'P206'},
			{type = 'row', label = 'Hauteur', value = 'hauteur', wikidata = {property = 'P2048', showdate = true, targetunit = 'metre'}},
			{type = 'row', label = 'Longueur', value = 'longueur', wikidata = {property = 'P2043', targetunit = 'metre'}},
			{type = 'row', label = 'Diamètre', value = 'diamètre', property = 'P2386'},
			{type = 'row', label = 'Circonférence', value = 'circonférence', property = 'P2547'},
			{type = 'row', label = 'Volume', value = 'volume', property = 'P2234'},
			{type = 'row', label = 'Comprend', value = 'comprend', property = 'P527'},
			{type = 'row', label = 'Ne comprend pas', value = 'ne comprend pas', property = 'P3113'},
			{type = 'row', label = 'Produit', plurallabel = 'Produits', value = 'produit', property = 'P1672'},
			{type = 'row', label = 'Espérance de vie', value = 'espérance de vie', property = 'P2250'},
					},
		},
		{type = 'table', title = 'Histoire', rows = {
			{type = 'row', label = 'Découverte', value = 'découverte', property = 'P575'},
			{type = 'row', label = 'Découvreur', value = 'découvreur', property = 'P61'},
			{type = 'row', label = 'Nom dans la langue vernaculaire', value = 'nom vernaculaire', property = 'P1705'},
			{type = 'row', label = 'Nommé en référence à', value = 'nommé en référence à', property = 'P138'},
					},
		},
		{type = 'table', title = 'Gestion', rows = {
			building.owner(),
			{type = 'row', label = 'Responsable',  plurallabel = 'Responsables', value = 'responsable', property = 'P137'},
			{type = 'row', label = 'Équipement',  plurallabel = 'Équipements', value = 'équipement', property = 'P912'},
			{type = 'row', label = 'Traversé par', value = 'traversé par', property = 'P2505'},
			{type = 'row', label = 'Distinction', plurallabel = 'Distinctions', value = 'distinction', property = 'P166'},
			building.protection(),
			{type = 'row', label = 'Aire protégée', plurallabel = 'Aires protégées', value = 'aire protégée', wikidata = {property = 'P3018', showdate = true}},
			{type = 'row', label = 'Fréquentation annuelle', value = 'fréquentation annuelle', wikidata = {property = 'P1174', showdate = true}},
					},
		},
		building.geoloc({pointtype = 'aire protégée', marker = 'park'}),
	}
}