{% extends 'base.html' %} {% import 'macros/card_list_item.html' as card_list_item %} {% block title %} {{ SITENAME }} - {{ article.title }} {% endblock %} {% block social_media_meta %} {% endblock %} {% block extra_css %} {% endblock extra_css %} {% block container %}

{{ article.title }} ({{ article.format }})

{% if article.description|length > 0 %}
{{ article.description | md }}
{% endif %} {% set ns = namespace(landcount=0, lands=[], creaturecount=0, creatures=[], iscount=0, is=[], othercount=0, other=[], cardcount=0, sbcount=0) %} {% for card in article.deck.main|sort(attribute='name') -%} {% set ns.cardcount = ns.cardcount + card.count|int -%} {% if card.card_type == "land" -%} {% set ns.landcount = ns.landcount + card.count|int -%} {% set ns.lands = ns.lands + [card] %} {% elif card.card_type == "creature" %} {% set ns.creaturecount = ns.creaturecount + card.count|int -%} {% set ns.creatures = ns.creatures + [card] %} {% elif card.card_type == "instant" or card.card_type == "sorcery" %} {% set ns.iscount = ns.iscount + card.count|int -%} {% set ns.is = ns.is + [card] %} {% else %} {% set ns.othercount = ns.othercount + card.count|int -%} {% set ns.other = ns.other + [card] %} {% endif %} {% endfor %} {% for card in article.deck.sideboard|sort(attribute='name') %} {% set ns.sbcount = ns.sbcount + card.count|int -%} {% endfor %}

Main Deck ({{ ns.cardcount }})

{% if ns.landcount > 0 %}

Lands ({{ ns.landcount }})

    {% for card in ns.lands %} {{ card_list_item.print(card, USE_EXTERNAL_LINKS) }} {% endfor %}
{% endif %} {% if ns.creaturecount > 0 %}

Creatures ({{ ns.creaturecount }})

    {% for card in ns.creatures %} {{ card_list_item.print(card, USE_EXTERNAL_LINKS) }} {% endfor %}
{% endif %}
{% if ns.iscount > 0 %}

Instants and Sorceries ({{ ns.iscount }})

    {% for card in ns.is %} {{ card_list_item.print(card, USE_EXTERNAL_LINKS) }} {% endfor %}
{% endif %} {% if ns.othercount > 0 %}

Other Spells ({{ ns.othercount }})

    {% for card in ns.other %} {{ card_list_item.print(card, USE_EXTERNAL_LINKS) }} {% endfor %}
{% endif %}

Sideboard ({{ ns.sbcount }})

    {% for card in article.deck.sideboard|sort(attribute='name') %} {{ card_list_item.print(card, USE_EXTERNAL_LINKS) }} {% endfor %}

Visual

{% for stack in article.deck.main_stacks %}
{% for item in stack %} {{ card_list_item.card_image(article.deck.main[item], USE_EXTERNAL_LINKS, "mtg-overview-position-" + loop.index|string) }} {% endfor %}
{% endfor %}

Sideboard

{% for stack in article.deck.sideboard_stacks %}
{% for item in stack %} {{ card_list_item.card_image(article.deck.sideboard[item], USE_EXTERNAL_LINKS, "mtg-overview-position-" + loop.index|string) }} {% endfor %}
{% endfor %}
{% endblock %} {% block extra_js %} {% endblock %}