RPGs4_sanity/templates/48/card.html.j2

44 lines
634 B
Django/Jinja

<h1>{{ name }}</h1>
<img src="{{ image }}"/>
<p>
{{ description }}
</p>
{% if procs %}
<b>procs:</b><br>
{% for proc in procs.splitlines() %}
{{ proc.split("➡", 1)[0].strip() }}
{{ proc.split("➡", 1)[1].strip() }}
<br>
{% endfor %}
{% endif %}
{% if cp %}
<b>cp:</b> {{ cp }}<br>
{% endif %}
{% if range %}
<b>range:</b> {{ range|int }}<br>
{% endif %}
{% if power %}
<b>power:</b> {{ power }}<br>
{% endif %}
{% if playcost %}
<b>playcost:</b><br>
<ul>
{% for cost in playcost.splitlines() %}
<li>{{ cost.rstrip(",") }}
{% endfor %}
</ul>
{% endif %}
{% if duration %}
<b>duration:</b>
{{ duration }}<br>
{% endif %}