Aller au contenu

Module:Infobox/Sentier

Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 16 octobre 2016 à 00:15 et modifiée en dernier par Thierry Caro (discuter | contributions) (Nouvelle page : local building = require "Module:Infobox/Fonctions/Bâtiment" local functions = require "Module:Infobox/Fonctions" return { maincolor = '#DEB887', parts = { functions....). 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 Sentier.


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

return 
	{
	maincolor = '#DEB887',
	parts =
    	{
		functions.title('entete map'),
		functions.mainimage('Article à illustrer Sentier', 'Defaut 2.svg'),
		{type = 'table', rows = {
			building.country(),
			building.historicalregion(),
			building.adminlocation(),
			{type = 'row', label = 'Aire protégée', plurallabel = 'Aires protégées', value = 'aire protégée', property = 'P3018'},
			{type = 'row', label = 'Désignation', value = 'désignation'},
			{type = 'row', label = 'Type', value = 'type'},
			{type = 'row', label = 'Points de départ', value = 'points de départ', property = 'P559'},
			{
				type = "row",
				label = 'Longueur',
				property = 'P2043',
				value = function ( localdata ) 
					local val = localdata['longueur']
					if val and tonumber(val) then
						return val .. ' km'
					end
				return val
				end
			},
			{type = 'row', label = 'Altitude maximale', value = 'altitude maximale', property = 'P610'},
			{type = 'row', label = 'Altitude minimale', value = 'altitude minimale', property = 'P1589'},
			{type = 'row', label = 'Dénivelé', value = 'dénivelé'},
			{type = 'row', label = 'Difficulté', value = 'difficulté'},
			{type = 'row', label = 'Attractions', value = 'attractions'},
			{type = 'row', label = 'Dangers', value = 'dangers'},
			{type = 'row', label = 'Saison', value = 'saison'},
			{type = 'row', label = 'Mois', value = 'mois'},
			{type = 'row', label = 'Payant', value = 'payant'},
			},
		},
	}
}