{#- The per-dive parameters table, shared by the OG1 format and Basestation pages; rows from reports/og1.py:per_dive_rows. -#} {% macro wbr(name) -%} {% for part in name.split("_") %}{{ part }}{% if not loop.last %}_{% endif %}{% endfor %} {%- endmacro -%} {% macro caption(max_runs) -%} One with at most {{ max_runs }} runs of equal values lists them by dive range; one that changes more often is given as its range, with a strip of one cell per dive (hover a cell for its dive and value), so the table stays the same size for a long mission. {%- endmacro -%} {% macro dive_table(rows, strip_width) -%}
{%- for r in rows %} {%- endfor %}
ParameterUnitsDives with a valueOver the mission
{{ wbr(r.name) }}{{ r.units }}{{ r.dives }} {{ r.summary }}{% if r.runs %}
{{ r.runs | join("; ") }}{% endif %} {%- if r.strip %}
{% for c in r.strip %}{{ c.title }}{% endfor %}
{{ r.legend }}{% endif %}
{%- endmacro %}