Template talk:Convert/Archive August 2018
Appearance
This is an archive of past discussions about Template:Convert. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Rendering of foot/inch with adjectives
I want to convert 18.3 ft as a height measure to render with a foot-inch measurement as an adjective of height, like this:
18-foot-4-inch height (5.6 m).
Instead, when I try {{convert|18.3|ft|ftin m|adj=mid|height|order=out}}.
, the noun is missing:
18-foot-4-inch (5.6 m).
If I change ftin to a more conventional decimal-based measure like in or yd, the noun appears as expected:
6.1-yard height (5.6 m).
So there must be a rendering bug when using those odd combo-units with adjectives. — Preceding unsigned comment added by D271l (talk • contribs) 19:24, 6 August 2018 (UTC)
- There is nothing wrong (see WP:CALC) with mentally converting 18.3 ft to 18 ft 4 in given the precisions involved, so the following might do:
{{convert|18|ft|4|in|m|1|adj=mid|-height}}
→ 18-foot-4-inch-height (5.6 m)
- Or omit the hyphen from "-height" if that would be better in context. That is strange about order=out causing "height" to be ignored but I don't have time to think about that now. I will look soon. Johnuniq (talk) 23:23, 6 August 2018 (UTC)
- Looks like {{Convert}} is consistent: by setting
|order=out
you are requesting to omit the first, fully adjectivated+midword value of the three. Then, "By default, the first quantity shows unit name" so ftin are written by name not abbreviation: {{convert|18.3|ft|ftin m|adj=mid|height}}
→ 18.3-foot height (18 ft 4 in; 5.6 m){{convert|18.3|ft|ftin m|adj=mid|height|order=out}}
→ 18-foot-4-inch (5.6 m)- -DePiep (talk) 03:02, 7 August 2018 (UTC)
- Looks like {{Convert}} is consistent: by setting