From 08c4ba8dd9329c498027c1e6c55b493590d25a80 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 28 Nov 2020 01:43:51 +0100 Subject: [PATCH] Add wikidata fallback if wikipedia is missing --- assets/svg/wikidata.svg | 6 ++++++ assets/tagRenderings/icons.json | 10 +++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 assets/svg/wikidata.svg diff --git a/assets/svg/wikidata.svg b/assets/svg/wikidata.svg new file mode 100644 index 0000000..cb94e3c --- /dev/null +++ b/assets/svg/wikidata.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/assets/tagRenderings/icons.json b/assets/tagRenderings/icons.json index ac56aea..8eb3480 100644 --- a/assets/tagRenderings/icons.json +++ b/assets/tagRenderings/icons.json @@ -1,7 +1,15 @@ { "wikipedialink": { "render": "WP", - "condition": "wikipedia~*" + "condition": "wikipedia~*", + "mappings": [ + { + "if": { + "and": ["wikipedia=","wikidata~*"], + "then": "WD" + } + } + ] }, "phonelink": { "render": "",