Template:Kg to st lb

From MidsouthMakers - Memphis Area Hackerpace
Revision as of 05:48, 23 February 2010 by Dan9186 (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Usage
{{Kg to st lb | num| abbr| spell| precision| wiki}}
Examples
Manual of Style notation: {{Kg to st lb|100}} → 100 kilograms (220 lb / 15 st 10 lb)
Short notation: {{Kg to st lb|100|abbr=yes}} → 100 kg (220 lb / 15 st 10 lb)
Full notation: {{Kg to st lb|abbr=no|spell=Commonwealth|precision=2|wiki=yes}} → 100 kilogrammes (220.46 pounds / 15 stone 10.46 pounds)

Italicized parameters are optional:

  • num is a required parameter, which specifies the number of kilograms to be converted to pounds. 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 (kilograms, lb); yes will show the abbreviated names of the units (kg, lb); and no will show the full names of the units (kilograms, pounds). 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 "kilograms", and Commonwealth—"kilogrammes". The default value is American.
  • precision is the number of decimal digits in the converted value. The default value is 0.
  • 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