{{{1}}}{{#ifexpr{{{?}}}: abs( (-9000) )<10000| | }}{{#ifexpr{{{?}}}: abs( (0.5) ) <1.0001 |{{{2}}}|{{{3}}}}}

The Template:Convert/outwrap displays an amount {1} and either a singular unit {2} or plural unit name {3}. For abbreviated mode, the parameters {2} and {3} can both be the unit symbol. When the amount is below 10,000, then the amount is no-wrap connected (&nbsp) to the unit name (which can wrap if multiple words).