Difference between revisions of "Template:Mm to in"

From Self-sufficiency
Jump to: navigation, search
m (Changed protection level of Template:Mm to in: Restore move protection ([edit=autoconfirmed] (indefinite) [move=sysop] (indefinite)))
 
m (1 revision: Conversion templates from wikipedia)
 
(No difference)

Latest revision as of 09:02, 19 September 2010

Usage
{{mm to in | num | abbr | spell | precision | wiki}}
Examples
Manual of Style notation: {{mm to in|100}} → 100 millimeters (3.9 in)
Short notation: {{mm to in|100|abbr=yes}} → 100 mm (3.9 in)
Full notation: {{mm to in|num=100|abbr=no|spell=Commonwealth|precision=2|wiki=yes}} → 100 millimetres (3.94 inches)

Italicized parameters are optional:

  • num is a required parameter, which specifies the number of millimeters 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 (millimeters, in); yes will show the abbreviated names of the units (mm, in); and no will show the full names of the units (millimeters, 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 "millimeters", and Commonwealth—"millimetres". 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