{% if schema['units'] == "1" %}
{% if data is not none %} {{ '%g'| format(data.magnitude_in_base_units) | babel_format_number }} {% else %} — {% endif %}
{% else %}
{% if data is not none %}{{ '%g'| format((data | to_datatype).magnitude) | babel_format_number}} {{ (data | to_datatype).units | prettify_units }} {% else %} — {% endif %}
{% endif %}