{% load wagtailcore_tags %}
{% if wrapper_element %}<{{ wrapper_element }}{% if classname %} class="{{ classname }}"{% endif %}>{% endif %}
{% if not result_slice.is_empty and not result_slice.is_only_slice %}
{% if slice_choices|length == 1 %}{{ page_label }}
{% elif slice_choices|length == 0 %}{{ no_pages_label }}
{% else %}{{ page_label_plural }}{% endif %}
{% for number, label, url in slice_choices %}
{{ label }}
{% endfor %}
{% if previous_link_and_label %}Previous{% endif %}
{% if next_link_and_label %}Next{% endif %}
{% endif %}
{% if wrapper_element %}{{ wrapper_element }}>{% endif %}