Template:Km2 to mi2
Jump to navigation
Jump to search
0 square kilometers (0.0 sq mi)
[edit] [ ] Template documentation
Usage
- {{km2 to mi2 | num | abbr | spell | precision | wiki}}
Examples
- Manual of Style notation: {{km2 to mi2|100}} → 100 square kilometers (38.6 sq mi)
- Short notation: {{km2 to mi2|258.99|abbr=yes}} → 258.99 km2 (100.0 sq mi)
- Full notation: {{km2 to mi2|num=100|abbr=no|spell=Commonwealth|precision=2|wiki=yes}} → 100 square kilometres (38.61 sq mi)
Italicized parameters are optional:
- num is a required parameter, which specifies the number of square kilometers to be converted to square miles. Please do not format this parameter; i.e., use 1234 instead of 1,234.
- abbr can take values of either mos, yes, or no. Mos will show the names of the units as specified in the Manual of Style for dates and numbers (square kilometers, sq mi); yes will show the abbreviated names of the units (km2, sq mi); and no will show the full names of the units (square kilometers, square miles). The default value is mos.
- 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.
Capitalization of the parameters is unimportant.
See also
- This set of templates contains many useful convert a given number and display both in WP:MOS format
- in a family of consistently named templates:
- {{ft to m}}, {{m to ft}}, {{ft2 to m2}}, {{m2 to ft2}}, {{ft3 to m3}}, {{m3 to ft3}}
as well as: - {{mi to km}}
- {{mi2 to km2}}
- {{mi3 to km3}}
- {{km to mi}}
- {{km2 to mi2}}
- {{km3 to mi3}}
The above documentation is transcluded from Template:Km2 to mi2/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |