Template:Cm to in

From FEInfobase

Jump to: navigation, search
Usage
{{cm to in | num | abbr | spell | precision | wiki | ft}}
Examples
Manual of Style notation: {{cm to in|10}} → 10 centimeters (3.9 in)
Short notation: {{cm to in|10|abbr=yes}} → 10 cm (3.9 in)
Full notation: {{cm to in|num=10|abbr=no|spell=Commonwealth|precision=2|wiki=yes}} → 10 centimetres (3.94 inches)

Italicized parameters are optional:

  • num is a required parameter, which specifies the number of centimeters to be converted to inches. 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 (centimeters, in); yes will show the abbreviated names of the units (cm, in); and no will show the full names of the units (centimeters, inches). 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 "centimeters", and Commonwealth—"centimetres". 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.
  • ft specifies whether the conversion should be given in feet and inches or just inches. Setting this to yes will include feet. The default is not to include feet. Note: in ft=yes mode precision works as if there were ten inches to the foot.

Capitalization of the parameters is unimportant.

See also

Personal tools