[fix] add link to wikidata entities in infobox - fixes #1097
commit785f0938fdc6c0b587d5f416f005ab5046260ba6
authorAdam Tauber <asciimoo@gmail.com>
dateTue 9 Jun 2020, 01:31 (6 years ago)
parentd5e1462
searx/templates/oscar/infobox.html+5−1
@@ -16,7 +16,11 @@
1616 {%- if attribute.image -%}
1717 <td><img class="img-responsive" src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
1818 {%- else -%}
19− <td><bdi>{{ attribute.value }}</bdi></td>
19+ {% if attribute.label == 'Instance of' %}
20+ <td><bdi><a href="https://wikidata.org/wiki/{{ attribute.value.id }}">{{ attribute.value.id }}</a></bdi></td>
21+ {% else %}
22+ <td><bdi>{{ attribute.value }}</bdi></td>
23+ {%- endif -%}
2024 {%- endif -%}
2125 </tr>
2226 {% endfor -%}