{{ card.name|title }} {% if card.cost %}{{ card.cost }}{% endif %}
{{ card.type|title }} {% if card.attributes %} — {{ card.attributes|join:" "|title }} {% endif %} {% for key, rarity in card.rarities.items %} {% if key == card.rarity %}{{ rarity }}{% endif %} {% endfor %}