{% with auto_play=auto_play|default:False auto_play_interval=auto_play_interval|default:5000 show_dots=show_dots|default:True show_arrows=show_arrows|default:True %}
{% for image in images %}
{% if titles and forloop.counter0 < titles|length %}{% for title in titles %}{% if forloop.counter0 == forloop.parentloop.counter0 %}{{ title }}{% endif %}{% endfor %}{% else %}Slide {{ forloop.counter }}{% endif %} {% if titles and forloop.counter0 < titles|length or descriptions and forloop.counter0 < descriptions|length %}
{% if titles and forloop.counter0 < titles|length %}

{% for title in titles %} {% if forloop.counter0 == forloop.parentloop.counter0 %} {{ title }} {% endif %} {% endfor %}

{% endif %} {% if descriptions and forloop.counter0 < descriptions|length %}

{% for description in descriptions %} {% if forloop.counter0 == forloop.parentloop.counter0 %} {{ description }} {% endif %} {% endfor %}

{% endif %}
{% endif %}
{% endfor %}
{% if show_arrows %} {% endif %} {% if show_dots %}
{% for image in images %} {% endfor %}
{% endif %}
{% endwith %}