forked from MapComplete/MapComplete
Formatting, add possibility to link wikipedia in the 'wikipedia'-question
This commit is contained in:
parent
6ca2471361
commit
ed161afc7e
2 changed files with 170 additions and 151 deletions
|
@ -93,11 +93,13 @@
|
|||
"key": "name:etymology"
|
||||
},
|
||||
"mappings": [
|
||||
{"if":"name:etymology=unknown",
|
||||
{
|
||||
"if": "name:etymology=unknown",
|
||||
"then": {
|
||||
"en": "The origin of this name is unknown in all literature",
|
||||
"nl": "De oorsprong van deze naam is onbekend in de literatuur"
|
||||
}}
|
||||
}
|
||||
}
|
||||
],
|
||||
"condition": {
|
||||
"or": [
|
||||
|
|
|
@ -4,7 +4,24 @@
|
|||
},
|
||||
"wikipedia": {
|
||||
"render": "{wikipedia():max-height:25rem}",
|
||||
"condition": "wikidata~*"
|
||||
"question": {
|
||||
"en": "What is the corresponding Wikidata entity?",
|
||||
"nl": "Welk Wikidata-item komt overeen met dit object?"
|
||||
},
|
||||
"freeform": {
|
||||
"key": "wikidata",
|
||||
"type": "wikidata"
|
||||
},
|
||||
"mappings": [
|
||||
{
|
||||
"if": "wikidata=",
|
||||
"then": {
|
||||
"en": "No Wikipedia page has been linked yet",
|
||||
"nl": "Er werd nog geen Wikipedia-pagina gekoppeld"
|
||||
},
|
||||
"hideInAnswer": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"reviews": {
|
||||
"render": "{reviews()}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue