Шаблон:BScvt/док — разлика између измена
Пређи на навигацију
Пређи на претрагу
| [непроверена измена] | [непроверена измена] |
м (Бот: Замена иконицe/a: BRÜCKE→hSTRae) |
м (1 измена увезена) |
(нема разлике)
| |
Тренутна верзија на датум 5. фебруар 2021. у 13:29
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
Usage
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
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.
Examples
BScvt
Result:
Input:
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{BScvt|0}}
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{BScvt|1.50|x}}
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{BScvt|16.3|align=left}}
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{BScvt|100.0|alt=italic}}
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{BScvt|150|line=-}}
Шаблон:BScvt/sandbox
{{BScvt|56; 12|in=mi; ch}}
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{BScvt|125|in=yd}}
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{BScvt|150|in=m}}
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{BScvt|50|in=ch}}
Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
{{BScvt|250|in=ch|x}}
See also
- {{BSsplit}}, for placing two lines of text in a text field.