Template:Convert/inch

From MattWiki
Jump to: navigation, search

{{convert/{{{d}}}|{{{1}}}|||||||s=|r={{{r}}} |u=in |n=inch |l=inches |o=mm |b=0.0254 |j=-1.595166283-0}}

The Template:Convert/inch is used to allow "ft|inch" in ranges, where unit "ft|in" triggers {Convert/ft/and/in}, so that the range conversions can use "ft|inch" as follows:

  • {{Convert|13|to|19|ft|inch}} ...range 13-19 ft
...invokes {{Convert/ft|13|to|19|inch|...}}
...result: 13 to 19 feet (160 to 230 in)
...compare: {{Convert|13|to|19|ft|in}}
...result: 13 to 19 feet (160 to 230 in)
  • {{Convert|13|ft|19|in}} ...combined 13 ft 19 inches
...invokes {{Convert/ft |13| 0 |19|in|...}}
...then invokes {{Convert/ft/and/in |13|0|19|...}}

Unless using "ft|inch" for ranges, Convert invokes {Convert/ft/and/in}.