Template:Lb to kg
From FEInfobase
(Difference between revisions)
m (Protected Template:Lb to kg: frequently transcluded template, tempting target for vandalism [edit=autoconfirmed:move=autoconfirmed]) |
m (1 revision) |
Latest revision as of 15:18, 20 February 2009
- Usage
- {{lb to kg | num | abbr | spell | precision | wiki}}
- Examples
- Manual of Style notation:{{lb to kg|100}} → 100 pounds (45 kg)
- Short notation: {{lb to kg|100|abbr=yes}} → 100 lb (45 kg)
- Full notation: {{lb to kg|num=100|abbr=no|spell=Commonwealth|precision=2|wiki=yes}} → 100 pounds (45.36 kilogrammes)
Italicized parameters are optional:
- num is a required parameter, which specifies the number of pounds to be converted to kilograms. 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 (pounds, kg); yes will show the abbreviated names of the units (lb, kg); and no will show the full names of the units (pounds, kilograms). 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
- {{lb to st lb}}
- {{kg to lb}}
- {{kg to st lb}}
- {{st lb to kg}}