మూస:Endurance/doc
Appearance
This is a documentation subpage for మూస:Endurance. It may contain usage information, categories and other content that is not part of the original మూస page. |
This template is designed to provide easier-to-read unit conversions for endurance figures, which are often given as distance @ speed, by using Template:Convert for the unit conversions.
Usage
[మార్చు]{{endurance|distance|from_unit1|to_unit1|speed|from_unit2|to_unit2|[optional note]}}
where:
distance
andspeed
are unformatted numbers (no commas)from_unit
s andto_unit
s are unit abbreviations that are used by Template:Convert. (See Template:Convert/list of units/length and Template:Convert/list of units/speed for units and abbreviations.)optional note
is a notation (like submerged or surfaced) to appear in the conversion
Optional parameters
[మార్చు]There are optional parameters that control the appearance of the output:
abbr
: whenabbr
is set to "on", the input units are abbreviated, which can be useful within infoboxes; the output units are already abbreviatedsp
: whensp
is set to "us", the American spelling of metric units, i.e. meter vs. metre
(Both of these parameters behave the same as they do in Template:Convert
sep
: a value in the parametersep
overrides the default@
symbol
Units supported
[మార్చు]The template currently supports the following units (in any combination or conversion direction):
Distance:
|
Speed:
|
Please add requests for additional units to the talk page
Examples
[మార్చు]{{endurance|450|nmi|km|5|knots|km/h}}
→ 450 nautical miles @ 5 knots (830 కి.మీ. @ 9.3 km/h){{endurance|100|km|nmi|35|km/h|knots}}
→ 100 kilometres @ 35 kilometres per hour (54 nmi @ 19 kn)
- Optional note
{{endurance|450|nmi|km|5|knots|km/h|submerged}}
→ 450 nautical miles @ 5 knots, submerged (830 కి.మీ. @ 9.3 km/h)
- Abbreviated output
{{endurance|450|nmi|km|5|knots|km/h|abbr=on}}
→ 450 nautical miles @ 5 knots (830 కి.మీ. @ 9.3 km/h)
- US spelling of metric units
{{endurance|100|km|nmi|35|km/h|knots|sp=us}}
→ 100 kilometers @ 35 kilometers per hour (54 nmi @ 19 kn)
- Optional separator
{{endurance|2100|nmi|km|16|knots|km/h|sep=at}}
→ 2,100 nautical miles at 16 knots (3,900 కి.మీ. at 30 km/h)
See also
[మార్చు]