Template:NM to km
From Wikipedia, the free encyclopedia
- Usage
- {{NM to km | num | abbr | spell | precision | wiki}}
- Examples
- Short notation: {{NM to km|100}} → 100 NM (185.2 km)
- Full notation: {{NM to km|num=100|abbr=no|spell=Commonwealth|precision=2|wiki=yes}} → 100 nautical miles (185.2 kilometres)
Italicized parameters are optional:
- num is a required parameter, which specifies the number of nautical miles, NM, to be converted to kilometres. Please do not format this parameter; i.e., use 1234 instead of 1,234.
- abbr can take values of either yes or no. Yes will show the abbreviated names of the units (NM, km), and no will show the full names of the units (nautical miles, kilometres). The default value is yes.
- spell can take values of American or Commonwealth and is only meaningful when abbr is set to no. American will use "kilometers", and Commonwealth—"kilometres". The default value is American.
- precision is the number of decimal digits in the converted value. The default value is 1.
- wiki specifies whether the names of the units should be wikified or not and can take values of either yes or no. The default value is no.
[edit] See also
- {{km to NM}}