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 13 septembre 2019 à 05:37 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 Sentier.


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

return 
	{
	maincolor = '#DEB887',
	parts =
    	{
		functions.title('map'),
		functions.sign(),
		functions.mainimage('Article à illustrer Sentier', 'Defaut 2.svg'),
		{type = 'table', title = 'Localisation', rows = {
			{type = "row", label = "Continent", plurallabel = "Continents", value = "continent", property = "P30"},
			building.mountainrange(),
			building.watershed(),
			{type = 'row', label = "Site", value = "site", property = 'P706'},
			building.adminlocation(),
			building.protectedarea(),
			},
		},
		functions.locationmap(),
		{type = 'table', title = 'Désignation', rows = {
			{type = 'row', label = 'Nom original', value = 'nom original', wikidata = {property = 'P1705', showlang = true}},
			{type = "row", label = 'En référence à', value = 'en référence à', property = 'P138'},
			{type = 'row', label = 'Nom court', value = 'nom court', wikidata = {property = 'P1813', showlang = true}},
			{type = 'row', label = 'Autre nom', value = {'désignation', 'autre nom'}, property = 'P1449'},
			{type = 'row', label = 'Type', value = 'type', property = 'P31'},
			{type = "row", label = 'Classement', plurallabel = 'Classements', value = 'classement', wikidata = {property = 'P1435', showdate = 'true'}},
			{type = 'row', label = '[[National Recreation Trail|NRT Database]]', value = 'NRT Database', wikidata = {property = "P3353", urlpattern="http://www.nrtdatabase.org/trailDetail.php?p=NRTDatabase/trailDetail.php&recordID=$1"}},
			{type = "row", label = 'Commémore', value = 'commémore', property = 'P547'},
			functions.website(),
			},
		},
		functions.logo(),
		{type = 'table', title = 'Tracé', rows = {
			{type = 'row', label = 'Partie de', value = 'partie de', property = 'P361'},
			{type = 'row', label = '[[Départ de sentier|Point de départ]]', plurallabel = '[[Départ de sentier|Points de départ]]', value = {'point de départ', 'points de départ'}, wikidata = {property = 'P559', conjtype = 'new line', qualifier = 'P3831', qualifiervalue = 'Q7832815'}},
			{type = 'row', label = 'Section', plurallabel = 'Sections', value = 'section', property = 'P527'},
			{type = 'row', label = 'Extrémité', plurallabel = 'Extrémités', value = {'extrémité', 'extrémités'}, wikidata = {property = 'P559', conjtype = 'new line', excludequalifier = 'P3831', excludequalifiervalue = 'Q7832815'}},
			{type = 'row', label = 'Longueur', value = 'longueur', wikidata = {property = 'P2043', targetunit = 'kilometre', rounding = '2'}},
			{type = 'row', label = 'Largeur', value = 'largeur', wikidata = {property = 'P2049', targetunit = 'centimetre', rounding = '1'}},
			{type = 'row', label = 'Alt. maximale', value = 'altitude maximale', property = 'P610'},
			{type = 'row', label = 'Alt. minimale', value = 'altitude minimale', property = 'P1589'},
			{type = 'row', label = 'Dénivelé', value = 'dénivelé', wikidata = {property = 'P7297', targetunit = 'metre'}},
			building.equipment(),
			{type = 'row', label = 'Connecté avec', value = 'connecté avec', property = 'P2789'},
			{type = 'row', label = 'Comprend', value = 'comprend', property = 'P2670'},
			{type = 'row', label = 'Thème', plurallabel = 'Thèmes', value = 'thème', property = 'P921'}, -- pour les sentiers d'interprétation
			{type = 'row', label = 'Attractions', value = 'attractions'},
			{type = 'row', label = 'Difficulté', value = 'difficulté', property = 'P7252'},
			building.danger(),
			},
		},
		functions.routemap(),
		{type = 'table', title = 'Utilisation', rows = {
			{type = 'row', label = 'Saison', value = 'saison'},
			{type = 'row', label = 'Mois', value = 'mois'},
			{type = 'row', label = 'Gestionnaire', plurallabel = 'Gestionnaires', value = 'gestionnaire', property = 'P137'},
			{type = 'row', label = 'Maintenance par', value = 'maintenance par', property = 'P126'},
			{type = 'row', label = 'Payant', value = 'payant', property = 'P2555'},
			building.policy(),
			{type = 'row', label = 'Utilisé par', value = 'utilisé par', property = 'P1535'},
			{type = 'row', label = 'Fréquentation', value = 'fréquentation', wikidata = {property = 'P1174', showdate = true}},
			{type = 'row', label = 'Record', value = 'record', wikidata = {showonlyqualifier = {'P3279', 'P2047', 'P585', 'P1346'}, property = 'P793', targetvalue = 'Q42314289'}},
			},
		},
	}
}