{# il2ks-template: templates/il2ks/players/detail_star_tile.html v1 - copy this line along when you override #} {% load i18n il2ks %}{% comment %} detail_star_tile.html: one star-metric tile of the profile's top tiles (Elo jet / prop, attack proficiency): the value, its stat mark (Top 1/5/10/25%) and a sub-line with the encounters or time on target. Below the board minimum the value is a dash and the sub-line says what is missing. Context (set by detail_tiles.html): key (data-star), metric (stat mark key), label, value (formatted; empty = below the minimum), sub, missing (the sub-line below the minimum), plus stats, marks and elo for the mark. The tile closes with a `` at the start of a line (tests slice on it). {% endcomment %}
{% if value %}{{ value }}{% else %}–{% endif %}
{% if value %}
{% stat_mark metric %}
{% endif %}
{{ label }}
{% if value %}{{ sub }}{% else %}{{ missing }}{% endif %}