Template:Convert/-/AonSon

{{ #ifeq: { |{{padleft:|1|{{{u|{}}} }} |-{{{h|{{{n}}}}}} |{{#ifexpr: {{str_len|{{{2}}}x}} > 7 |&#32; | }}{{{u}}} }} {{documentation|content= The Template:Convert/-/AonSon formats a range with dash and unit symbol in adjective mode, where the 2 amounts are separated by en dash "–" between the numbers. The dash is surrounded by spaces if the 2nd amount is negative or if either amount > 6 long, such as a number in scientific x10 notation.

For unit-codes where the unit symbol is undefined (or blank), then the template also checks for literal "{{{u}}}" with leading curly brace "{" and then the unit's hyphenated name will be displayed instead. A total of 16 conditions are checked to format the range for extra spaces, symbol, or hyphenated name.

}}