{% for grouped_claim in grouped_claims %}
{# REMOVE URLS from main claim list #}
{# remove empty instanceOf - when it only has "elit" without another specification #}
{% if not grouped_claim.0.property.identifier in "P31" %}
{% if grouped_claim.0.type == 'wikibase-item' %}
{% if reverse %}As{% endif %} {{ grouped_claim.0.property.label }}
{% else %}
{% if reverse %}As{% endif %} {{ grouped_claim.0.property.label }}
{% endif %}
{# the list of value contains work, then we use the templates of entities list with small items #}
{% if 'Q173167' in grouped_claim|anyinstanceOfBad %}
{% for claim in grouped_claim %}
{% include 'partials/item-small.html' with entity=claim.target %}
{% endfor %}
{% else %}
{% for claim in grouped_claim %}
{% include 'partials/item-micro.html' with entity=claim.target claim=claim %}
{% endfor %}