Refactoring of the climbing theme

This commit is contained in:
Pieter Vander Vennet 2022-04-23 15:20:54 +02:00
parent c36bce8100
commit bc953abe48
15 changed files with 1099 additions and 1001 deletions

View file

@ -9,6 +9,9 @@
"fr": "Voies descalade",
"it": "Vie di arrampicata"
},
"description": {
"en": "A single climbing route and its properties. Some properties are derived from the containing features"
},
"minzoom": 18,
"source": {
"osmTags": {
@ -135,6 +138,7 @@
"id": "Difficulty"
},
{
"id": "bolts",
"question": {
"en": "How many bolts does this route have before reaching the anchor?",
"fr": "Combien de prises cette voie possède avant datteindre la moulinette ?",
@ -142,7 +146,7 @@
"it": "Quanti bulloni sono presenti in questo percorso prima di arrivare alla moulinette?"
},
"render": {
"en": "This route has {climbing:bolts} bolts",
"en": "This route has {climbing:bolts} bolts <div class='subtle'>This is without relays and indicates how much quickdraws a climber needs</div>",
"fr": "Cette voie a {climbing:bolts} prises",
"de": "Diese Kletterroute hat {climbing:bolts} Haken",
"it": "Questo percorso ha {climbing:bolts} bulloni"
@ -152,7 +156,8 @@
"type": "pnat",
"addExtraTag": [
"climbing:bolted=yes"
]
],
"inline": true
},
"mappings": [
{
@ -163,29 +168,15 @@
"de": "Auf dieser Kletterroute sind keine Haken vorhanden",
"it": "In questo percorso non sono presenti bulloni"
},
"hideInAnswer": true
},
{
"if": "climbing:bolted=no&climbing:bolts=",
"then": {
"en": "This route is not bolted",
"fr": "Cette voie na pas de prises",
"de": "Auf dieser Kletterroute sind keine Haken vorhanden",
"it": "In questo percorso non sono presenti bulloni"
}
"addExtraTags": [
"climbing:bolts="
]
}
],
"id": "Bolts"
},
{
"question": "Is there other relevant info?",
"render": "<h3>Description</h3><br/>{description}",
"freeform": {
"key": "description"
},
"id": "Description"
]
},
"description",
{
"id": "Rock type via embedded feature",
"render": {
"en": "The rock type is {_embedding_features_with_rock:rock} as stated <a href='#{_embedding_features_with_rock:id}'>on the surrounding crag</a>",
"fr": "Le type de roche est {_embedding_features_with_rock:rock} selon <a href='#{_embedding_features_with_rock:id}'>le mur</a>",
@ -194,8 +185,7 @@
},
"freeform": {
"key": "_embedding_features_with_rock:rock"
},
"id": "Rock type"
}
}
],
"presets": [