{{convert/{{{d}}}2|{{{1}}}|{{{3}}}|(( {{{1}}} )*1760+{{{3}}})*0.9144|0|||s=|r={{{r}}} |N=mile |n=yard |U=mi |u=yd |t=yard |o=km |j=-0.038863783+1+1}}

The Template:Convert/and/yd converts 2-unit amounts, such as miles and yards, to other units. The precision defaults to 4-digit level, where 1 km = 1,094 yards. Some examples:

  • {convert|1|mi|800|yd|km} → 1 mile 800 yards (2.341 км)
  • {convert|1|mi|801|yd|km} → 1 mile 801 yards (2.342 км)
  • {convert|4|mi|0|yd|km} → 4 miles 0 yards (6.437 км)
  • {convert|4|mi|9|yd|km} → 4 miles 9 yards (6.446 км)
  • {convert|4|mi|10|yd|km} → 4 miles 10 yards (6.447 км)
  • {convert|4|mi|11|yd|km} → 4 miles 11 yards (6.447 км)
  • {convert|4|mi|12|yd|km} → 4 miles 12 yards (6.448 км)
  • {convert|4|mi|360|yd|km} → 4 miles 360 yards (6.767 км)
  • {convert|24|mi|10|yd|km} → 24 miles 10 yards (38.633 км)
  • {convert|1.000|km|yd} → 1.000 километр (1,094 yd)