Template talk:Convert/Archive November 2018

Latest comment: 6 years ago by Kendall-K1 in topic What am I doing wrong here?


What am I doing wrong here?

Should this work? I'm not sure I understand why we have unit code with a space in it.

{{convert|32.5|mpgus|L/100 km mpgus mpgimp|abbr=on|order=out}}

Kendall-K1 (talk) 01:16, 7 November 2018 (UTC)

{{convert|32.5|mpgus|L/100 km mpgus mpgimp|abbr=on|order=out}} shows →
32.5 mpg‑US ([convert: unknown unit])
- DePiep (talk) 01:40, 7 November 2018 (UTC)
As it happens, the space can be omitted from that unit because L/100km is accepted. In general, however, use + to separate unit codes when one of the units has a space. I quite like + now and have used it even when not needed because it seems more intuitive to me.
  • {{convert|32.5|mpgus|L/100km mpgus mpgimp|abbr=on|order=out}} → 7.2 L/100 km (32.5 mpg‑US; 39.0 mpg‑imp)
  • {{convert|32.5|mpgus|L/100 km+mpgus+mpgimp|abbr=on|order=out}} → 7.2 L/100 km (32.5 mpg‑US; 39.0 mpg‑imp)
Johnuniq (talk) 02:54, 7 November 2018 (UTC)
I see now that the "+" is documented, but this seems like a usability problem to me. As you know I'm a long-time fan of this template and I didn't know about it. I bet almost no WP editors know about it. Kendall-K1 (talk) 03:44, 7 November 2018 (UTC)