Themes(mobility_hub): noname and network options

This commit is contained in:
Robin van der Linde 2025-04-19 17:33:10 +02:00
parent 217d206a06
commit f072b82fc3
Signed by untrusted user: Robin-van-der-Linde
GPG key ID: 53956B3252478F0D

View file

@ -73,8 +73,20 @@
"placeholder": { "placeholder": {
"en": "Name of the mobility hub", "en": "Name of the mobility hub",
"nl": "Naam van de mobiliteitshub" "nl": "Naam van de mobiliteitshub"
},
"addExtraTags": [
"noname="
]
},
"mappings": [
{
"if": "noname=yes",
"then": {
"en": "This mobility hub does not have a name",
"nl": "Deze mobiliteitshub heeft geen naam"
}
} }
} ]
}, },
{ {
"question": { "question": {
@ -90,7 +102,8 @@
"nl": "Netwerk van deze mobiliteitshub" "nl": "Netwerk van deze mobiliteitshub"
}, },
"addExtraTags": [ "addExtraTags": [
"network:wikidata=" "network:wikidata=",
"nonetwork="
] ]
}, },
"render": { "render": {
@ -98,6 +111,16 @@
"nl": "Deze mobiliteitshub hoort bij het netwerk {network}" "nl": "Deze mobiliteitshub hoort bij het netwerk {network}"
}, },
"mappings": [ "mappings": [
{
"if": "nonetwork=yes",
"then": {
"en": "This mobility hub does not belong to a network",
"nl": "Deze mobiliteitshub hoort niet bij een netwerk"
},
"addExtraTags": [
"network:wikidata="
]
},
{ {
"if": "network=Groningen-Drenthe", "if": "network=Groningen-Drenthe",
"then": { "then": {
@ -107,7 +130,8 @@
"hideInAnswer": "_country!=nl", "hideInAnswer": "_country!=nl",
"icon": "./assets/layers/mobility_hub/hub-gd.svg", "icon": "./assets/layers/mobility_hub/hub-gd.svg",
"addExtraTags": [ "addExtraTags": [
"network:wikidata=Q108742233" "network:wikidata=Q108742233",
"nonetwork="
] ]
}, },
{ {
@ -119,7 +143,8 @@
"hideInAnswer": "_country!=be", "hideInAnswer": "_country!=be",
"icon": "./assets/layers/mobility_hub/logo-hoppin.svg", "icon": "./assets/layers/mobility_hub/logo-hoppin.svg",
"addExtraTags": [ "addExtraTags": [
"network:wikidata=Q124310711" "network:wikidata=Q124310711",
"nonetwork="
] ]
}, },
{ {
@ -130,7 +155,8 @@
}, },
"hideInAnswer": "_country!=de", "hideInAnswer": "_country!=de",
"addExtraTags": [ "addExtraTags": [
"network:wikidata=Q110948933" "network:wikidata=Q110948933",
"nonetwork="
] ]
} }
] ]