From Wikipedia, the free encyclopedia
|
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
Lengths |
|
mi |
km |
WY |
66.67 |
107.29 |
Usage |
{{jct convert|original distance|original unit|convert to unit|round=2}} |
original distance |
Specify the original distance (real number) |
original unit |
Specify the original unit that the distance was (mi or km) |
convert to unit |
Specify the unit to convert to (mi or km) |
round |
The decimal precision of the original distance (specify 0 if it is a whole number) |
extra_code |
(optional) Use to put extra code before the table cell (i.e. rowspan, style) |
This template is used in exit, junction, and lengths tables for conversion of distances. It currently only supports mile and kilometre distance conversions. Example usage is provided above.