{# NOTE: We set a narrow width to stop lots of notes making us very wide. #}
{# CSS "white-space:nowrap" doesn't always work in VASSAL, we need to use
{{INCLUDE:ob_vo.name}} | {{INCLUDE:ob_vo.image}} {% set MAX_CAPABILITIES = 4 %} {%else%} {# NOTE: If the vehicle/ordnance name is long, put it on its own line, and the capabilities underneath. #}
{{INCLUDE:ob_vo.name}}
|
{{INCLUDE:ob_vo.image}}
{% set MAX_CAPABILITIES = 3 %}
{%endif%}
{% if vo.small_piece %}
{% set MAX_CAPABILITIES = MAX_CAPABILITIES - 1 %}
{%endif%}
{% if vo.capabilities_len > MAX_CAPABILITIES or !vo.image %}
{# NOTE: If there are a lot of capabilities, tuck the note number & notes under the image. #}
{# But if there is no image, we always do this, and squeeze them in to the left of the capabilities. #}
|
{{INCLUDE:ob_vo.notes}}
{%endif%}
{%for cap in vo.capabilities%} | {{cap}} {%endfor%}
{%for cmnt in vo.comments%} {{cmnt}} {%endfor%}
{% if vo.capabilities_len <= MAX_CAPABILITIES and vo.image %}
{# NOTE: If there are only a few capabilities, let the note number & notes spread full-width. #}
{# But if there is no image, we never do this (see above). #}
{{INCLUDE:ob_vo.notes}}
{%endif%}
{%endfor%}
| |