2014-09-28 14:53:30 +00:00
|
|
|
<div class="infobox">
|
2016-06-06 06:08:36 +00:00
|
|
|
<h2><bdi>{{ infobox.infobox }}</bdi></h2>
|
2015-01-17 21:36:48 +00:00
|
|
|
{% if infobox.img_src %}<img src="{{ image_proxify(infobox.img_src) }}" title="{{ infobox.infobox|striptags }}" alt="{{ infobox.infobox|striptags }}" />{% endif %}
|
2016-06-06 06:08:36 +00:00
|
|
|
<p><bdi>{{ infobox.entity }}</bdi></p>
|
|
|
|
<p><bdi>{{ infobox.content | safe }}</bdi></p>
|
2015-01-15 00:48:46 +00:00
|
|
|
{% if infobox.attributes %}
|
|
|
|
<div class="attributes">
|
|
|
|
<table>
|
|
|
|
{% for attribute in infobox.attributes %}
|
2016-02-28 01:19:04 +00:00
|
|
|
<tr>
|
2016-06-06 06:08:36 +00:00
|
|
|
<td><bdi>{{ attribute.label }}</bdi></td>
|
2016-02-28 01:19:04 +00:00
|
|
|
{% if attribute.image %}
|
|
|
|
<td><img src="{{ image_proxify(attribute.image.src) }}" alt="{{ attribute.image.alt }}" /></td>
|
|
|
|
{% else %}
|
2016-06-06 06:08:36 +00:00
|
|
|
<td><bdi>{{ attribute.value }}</bdi></td>
|
2016-02-28 01:19:04 +00:00
|
|
|
{% endif %}
|
|
|
|
</tr>
|
2015-01-15 00:48:46 +00:00
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2014-09-28 14:53:30 +00:00
|
|
|
|
2015-01-15 00:48:46 +00:00
|
|
|
{% if infobox.urls %}
|
|
|
|
<div class="urls">
|
|
|
|
<ul>
|
|
|
|
{% for url in infobox.urls %}
|
2016-09-04 13:56:46 +00:00
|
|
|
<li class="url"><bdi><a href="{{ url.url }}" {% if results_on_new_tab %}target="_blank" rel="noopener noreferrer"{% else %}rel="noreferrer"{% endif %}>{{ url.title }}</a></bdi></li>
|
2015-01-15 00:48:46 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2014-09-28 14:53:30 +00:00
|
|
|
|
2015-01-15 00:48:46 +00:00
|
|
|
{% if infobox.relatedTopics %}
|
|
|
|
<div class="relatedTopics">
|
|
|
|
{% for topic in infobox.relatedTopics %}
|
|
|
|
<div>
|
2016-06-06 06:08:36 +00:00
|
|
|
<h3><bdi>{{ topic.name }}</bdi></h3>
|
2015-01-15 00:48:46 +00:00
|
|
|
{% for suggestion in topic.suggestions %}
|
2019-07-30 04:25:05 +00:00
|
|
|
<form method="{{ method or 'POST' }}" action="{{ url_for('search') }}">
|
2015-01-15 00:48:46 +00:00
|
|
|
<input type="hidden" name="q" value="{{ suggestion }}">
|
|
|
|
<input type="submit" value="{{ suggestion }}" />
|
|
|
|
</form>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2014-09-28 14:53:30 +00:00
|
|
|
|
2015-01-15 00:48:46 +00:00
|
|
|
<br />
|
2014-09-28 14:53:30 +00:00
|
|
|
|
|
|
|
</div>
|