| This template uses Lua:
|
This template is a simplified version of {{Convert}}. It displays a distance as two lines of text. The template takes the input (in Imperial units) and calculates the metric equivalent.
- Inserting the optional second parameter (any character) reverses the units.
- Decimal values are supported.
- The template automatically adds the units after the values.
The text is right-aligned, but can be changed to left- by applying the parameter "align=left
".
The alternate units can be changed to italic by applying the parameter "alt=italic
".
A dividing line can be added by applying the parameter “|line=
anything ”.
The default units are miles for input and kilometres as output.
- Adding the named parameter
|in=
(for input) will allow alternate input units:
in= |
Units |
Converts to
|
mi;ch |
miles; chains |
kilometres
|
yd |
yards |
metres
|
ft |
feet
|
ch |
chains
|
m |
metres |
yards
|
- Whitespace for
mi;ch
(in both the distance and the units) is allowed but not necessary.
Result
|
Input
|
|
{{BScvt|0}}
|
1.50 km
|
సమాసంలో (Expression) లోపం: < పరికర్తను (operator) ఊహించలేదు mi
|
|
{{BScvt|1.50|x}}
|
16.3 mi
|
సమాసంలో (Expression) లోపం: < పరికర్తను (operator) ఊహించలేదు km
|
|
{{BScvt|16.3|align=left}}
|
100.0 mi
|
సమాసంలో (Expression) లోపం: < పరికర్తను (operator) ఊహించలేదు km
|
|
{{BScvt|100.0|alt=italic}}
|
|
{{BScvt|150|line=-}}
|
56; 12 mi
|
సమాసంలో (Expression) లోపం: ";" అనే విరామ చిహ్నాన్ని గుర్తించలేకపోతున్నాను. km
|
|
{{BScvt|56; 12|in=mi; ch}}
|
|
{{BScvt|125|in=yd}}
|
|
{{BScvt|150|in=m}}
|
|
{{BScvt|50|in=ch}}
|
|
{{BScvt|250|in=ch|x}}
|