Module:Infobox/Sentier
Apparence
[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.
La documentation de ce module est générée par le modèle {{Documentation module}}.
Elle est incluse depuis sa sous-page de documentation. Veuillez placer les catégories sur cette page-là.
Les éditeurs peuvent travailler dans le bac à sable (modifier).
Voir les statistiques d'appel depuis le wikicode sur l'outil wstat et les appels depuis d'autres modules.
local building = require "Module:Infobox/Fonctions/Bâtiment"
local functions = require "Module:Infobox/Fonctions"
return
{
maincolor = '#DEB887',
parts =
{
functions.title('entete 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(),
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 = '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 = 'table', title = 'Tracé', rows = {
{type = 'row', label = 'Extrémité', plurallabel = 'Extrémités', value = {'extrémité', 'extrémités', 'points de départ'}, wikidata = {property = 'P559', conjtype = 'new line'}},
{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é'},
building.equipment(),
},
},
{type = 'table', title = 'Utilisation', rows = {
{type = 'row', label = 'Saison', value = 'saison'},
{type = 'row', label = 'Mois', value = 'mois'},
{type = 'row', label = 'Payant', value = 'payant', property = 'P2555'},
{type = 'row', label = 'Difficulté', value = 'difficulté'},
{type = 'row', label = 'Attractions', value = 'attractions'},
{type = 'row', label = 'Dangers', value = 'dangers', property = 'P3335'},
{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'}},
functions.website(),
},
},
}
}