{% set stats = ['STR', 'DEX', 'CON', 'INT', 'WIS', 'CHA'] %}

{{ article.title }}

{{m.size}} {{m.type}}{% if m.alignment %}, {{m.alignment}}{%endif%}

{% for stat in stats %} {% endfor %} {% for stat in ['STR', 'DEX', 'CON', 'INT', 'WIS', 'CHA'] %} {% set score, bonus = m[stat].split(',') %} {% endfor %}
{{ stat }}
{{score}}
{{bonus}}
{% if m.skills %}{% endif %} {% if m.saving_throws %}{% endif %} {% if m.resistances %}{% endif %} {% if m.vulnerabilities %}{% endif %} {% if m.damage_immunities %}{% endif %} {% if m.condition_immunities %}{% endif %} {% if m.senses %}{% endif %} {% if m.languages %}{% endif %} {% if m.cr %}{% endif %}
Armor Class{{ m.AC }}
Hit Points{{ m.HP }}
Speed{{ m.speed }}
Skills{{ m.skills }}
Saving Throws{{ m.saving_throws }}
Resistances{{ m.resistances }}
Vulnerabilities{{ m.vulnerabilities }}
Damage Immunities{{ m.damage_immunities }}
Condition Immunities{{ m.condition_immunities }}
Senses{{ m.senses }}
Languages{{ m.languages }}
Challenge Rating{{ m.cr }}

{% for (attr_name, attr_desc) in m.attributes.items() %}
{{ attr_name }}. {{attr_desc}}
{% endfor %} {% for section in ('Actions', 'Reactions', 'Legendary Actions', 'Legendary Reactions', 'Lair and Actions') %} {% if section in m.traits %} {% set trait = m.traits[section] %} {% if 'attributes' in trait or 'options' in trait %}

{{ section }}

{% if trait.attributes %} {% for (attr_name, attr_desc) in trait.attributes.items() %}
{{ attr_name }}. {{attr_desc}}
{% endfor %} {% endif %} {% if trait.options %} {% for (attr_name, attr_desc) in trait.options.items() %}
{{ attr_name }}. {{attr_desc}}
{% endfor %} {% endif %} {% endif %} {% endif %} {% endfor %}