Module:Infobox/Sentier
Aller à la navigation
Aller à la recherche
La documentation pour ce module peut être créée à Module:Infobox/Sentier/doc
local building = require "Module:Infobox/Fonctions/Bâtiment" local functions = require "Module:Infobox/Fonctions" local localdata = require "Module:Infobox/Localdata" --Fonction pour affichage de la géolocalisation local function affichecoord() if localdata ['affichage coordonnées'] then return functions.coordinates() else return nil end end local function afficheloc() if localdata ['affichage carte'] then return functions.geoloc() else return nil end end 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'}, building.protection(), functions.website(), {type = 'row', label = '→', value = 'AllTrails', wikidata = {property = "P7127", urlpattern="https://www.alltrails.com/$1", text = 'AllTrails'}}, {type = 'row', label = '→', value = 'Colorado Trail Explorer', wikidata = {property = "P8113", urlpattern="https://trails.colorado.gov/trails/$1", text = 'Colorado Trail Explorer'}}, {type = 'row', label = '→', value = 'Explore Pennsylvania Trails', wikidata = {property = "P7319", urlpattern="https://trails.dcnr.pa.gov/Trails/Trail/TrailView?trailKey=$1", text = 'Explore Pennsylvania Trails'}}, {type = 'row', label = '→', value = 'Grand Canyon Trust', wikidata = {property = "P7102", urlpattern="https://www.grandcanyontrust.org/$1", text = 'Grand Canyon Trust'}}, {type = 'row', label = '→', value = 'Hiking Project', wikidata = {property = "P7116", urlpattern="https://www.hikingproject.com/trail/$1", text = 'Hiking Project'}}, {type = 'row', label = '→', value = 'Maine Trail Finder', wikidata = {property = "P7310", urlpattern="https://www.mainetrailfinder.com/trails/trail/$1", text = 'Maine Trail Finder'}}, {type = 'row', label = '→', value = 'National Wildlife Refuge Trails', wikidata = {property = "P7308", urlpattern="https://tools.wmflabs.org/wikidata-externalid-url/?p=7308&url_prefix=https://www.fws.gov/refuges/trails/refuge.cfm?orgcode=&id=$1", text = 'National Wildlife Refuge Trails'}}, {type = 'row', label = '→', value = 'NRT Database', wikidata = {property = "P3353", urlpattern="https://www.nrtdatabase.org/trailDetail.php?recordID=$1", text = 'NRT Database'}}, {type = 'row', label = '→', value = 'South Carolina Trails', wikidata = {property = "P7241", urlpattern="https://www.sctrails.net/trails/trail/$1", text = 'South Carolina Trails'}}, {type = 'row', label = '→', value = 'Trail Finder', wikidata = {property = "P7321", urlpattern="https://www.trailfinder.info/trails/trail/$1", text = 'Trail Finder'}}, {type = 'row', label = '→', value = 'Washington Trails Association', wikidata = {property = "P7233", urlpattern="https://www.wta.org/go-hiking/hikes/$1", text = 'Washington Trails Association'}}, {type = "row", label = 'Commémore', value = 'commémore', property = 'P547'}, }, }, 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 = '[[Départ de sentier|Extrémité]]', plurallabel = '[[Départ de sentier|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 = '1'}}, {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é positif cumulé|Dénivelé cumulé]]', value = 'dénivelé cumulé', wikidata = {property = 'P7297', targetunit = 'metre', rounding = '0'}}, {type = 'row', label = 'Connecté avec', value = 'connecté avec', property = 'P2789'}, {type = 'row', label = 'Comprend', value = 'comprend', wikidata = {property = 'P2670', showqualifiers = 'P1114', showunit = '-'}}, building.archistyle(), {type = 'row', label = 'Thème', plurallabel = 'Thèmes', value = 'thème', property = 'P921'}, -- pour les sentiers d'interprétation building.equipment(), {type = 'row', label = 'Attractions', value = 'attractions'}, {type = 'row', label = "[[Difficulté d'un sentier|Difficulté]]", value = 'difficulté', wikidata = {property = 'P7252', showqualifiers = 'P3680', defaultlink = '-', conjtype = 'new line'}}, building.danger(), }, }, functions.routemap(), affichecoord(), afficheloc(), {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'}}, }, }, } }