{# NOTE: We set a narrow width to stop lots of notes making us very wide. #} {% set PADDING_TOP = 2 %} {%else%} {% set PADDING_TOP = 5 %} {%endif%} {% if vo.name_len <= MAX_VO_NAME_LEN %} {# NOTE: If the vehicle/ordnance name is short, put the capabilities to the right of it. #}
{# CSS "white-space:nowrap" doesn't always work in VASSAL, we need to use and   here :-/ #} {{INCLUDE:player_flag_large}}{{PLAYER_NAME|nbsp}} {{VO_TYPES}} {%for vo in OB_VO%} {% if vo.index == 0 %}
{{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%}