Fyrimynd:BScvt

Frá Wikipedia, hin frælsa alfrøðin
Documentation icon Skjalfesting til fyrimyndina[vís] [rætta] [søga] [dagfør]

Usage[rætta wikitekst]

This template displays a distance as two lines of text in a text field of a route diagram created with {{BS-map}}. 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”.

Units[rætta wikitekst]

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
yd yards metres
ft feet
ch chains
m metres yards

Example[rætta wikitekst]

BScvt
Result:    Input:
0 mi 
0 km 
 {{BScvt|0}}
1.50 km 
Feilur í málbering: Óvæntaður < operatorur. mi 
 {{BScvt|1.50|x}}
16.3 mi 
Feilur í málbering: Óvæntaður < operatorur. km 
 {{BScvt|16.3|align=left}}
100.0 mi 
Feilur í málbering: Óvæntaður < operatorur. km 
 {{BScvt|100.0|alt=italic}}
150 mi 
241 km 
 {{BScvt|150|line=-}}
125 yd 
114 m 
 {{BScvt|125|in=yd}}
150 m 
164 yd 
 {{BScvt|150|in=m}}
50 ch 
1006 m 
 {{BScvt|50|in=ch}}
250 m 
12 ch 
 {{BScvt|250|in=ch|x}}

Sí eisini[rætta wikitekst]

  • {{BSsplit}}, for placing two lines of text in a text field.