diff --git a/src/tagsDisplay.js b/src/tagsDisplay.js index b4067863..5bbda592 100644 --- a/src/tagsDisplay.js +++ b/src/tagsDisplay.js @@ -7,7 +7,19 @@ const formatter = [ }, { regexp: /^(.*:)wikipedia$/, - format: '{% set v = value|split(":") %}{{ value }}' + format: '{% set v = value|split(":") %}{{ value }}' + }, + { + regexp: /^(website|url|contact:website)$/, + format: '{{ value }}' + }, + { + regexp: /^(image|wikimedia_commons)$/, + format: '{% if value matches "/^(File|Category):/" %}' + + '{{ value }}' + + '{% else %}' + + '{{ value }}' + + '{% endif %}' } ]