Difference between revisions of "Template:M to ft in/doc"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{Documentation subpage}} | {{Documentation subpage}} | ||
− | + | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> | |
=== Usage === | === Usage === | ||
− | : | + | :<nowiki>{{m to ft in| num | abbr | spell | precision | wiki | frac}}</nowiki> |
;Examples | ;Examples | ||
:''[[WP:MOSNUM#Units of measurement|Manual of Style]] notation'': | :''[[WP:MOSNUM#Units of measurement|Manual of Style]] notation'': | ||
− | :* | + | :*<nowiki>{{m to ft in|9}}</nowiki> → {{m to ft in|9}} |
− | :* | + | :*<nowiki>{{m to ft in|9|frac=7}}</nowiki> → {{m to ft in|9|frac=7}} |
− | :* | + | :*<nowiki>{{m to ft in|9|frac=16}}</nowiki> → {{m to ft in|9|frac=16}} |
:''Short notation'': | :''Short notation'': | ||
− | :* | + | :*<nowiki>{{m to ft in|9|abbr=yes}}</nowiki> → {{m to ft in|9|abbr=yes}} |
− | :* | + | :*<nowiki>{{m to ft in|9|abbr=yes|frac=7}}</nowiki> → {{m to ft in|9|abbr=yes|frac=7}} |
− | :* | + | :*<nowiki>{{m to ft in|9|abbr=yes|frac=16}}</nowiki> → {{m to ft in|9|abbr=yes|frac=16}} |
:''Full notation'': | :''Full notation'': | ||
− | :* | + | :*<nowiki>{{m to ft in|num=9|abbr=no|spell=Commonwealth|precision=2|wiki=yes|frac=10}}</nowiki> → {{m to ft in|num=9|abbr=no|spell=Commonwealth|precision=2|wiki=yes|frac=10}} |
− | :* | + | :*<nowiki>{{m to ft in|num=9|abbr=no|spell=Commonwealth|precision=2|wiki=yes|frac=7}}</nowiki> → {{m to ft in|num=9|abbr=no|spell=Commonwealth|precision=2|wiki=yes|frac=7}} |
− | :* | + | :*<nowiki>{{m to ft in|num=9|abbr=no|spell=Commonwealth|precision=2|wiki=yes|frac=16}}</nowiki> → {{m to ft in|num=9|abbr=no|spell=Commonwealth|precision=2|wiki=yes|frac=16}} |
''Italicized'' parameters are optional: | ''Italicized'' parameters are optional: | ||
*'''num''' is a required parameter, which specifies the number of meters to be converted to feet and inches. Please do not format this parameter; i.e., use 1234 instead of 1,234. | *'''num''' is a required parameter, which specifies the number of meters to be converted to feet and 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 [[WP:MOSNUM#Units of measurement|Manual of Style for dates and numbers]] (meters, ft/in); ''yes'' will show the abbreviated names of the units (m, ft/in); and ''no'' will show the full names of the units (meters, feet/inches). The default value is ''mos''. | *'''''abbr''''' can take values of either ''mos'', ''yes'', or ''no''. ''Mos'' will show the names of the units as specified in the [[WP:MOSNUM#Units of measurement|Manual of Style for dates and numbers]] (meters, ft/in); ''yes'' will show the abbreviated names of the units (m, ft/in); and ''no'' will show the full names of the units (meters, feet/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 "meters", and ''Commonwealth''& | + | *'''''spell''''' can take values of ''American'' or ''Commonwealth'' and is only meaningful when ''abbr'' is set to ''no''. ''American'' will use "meters", and ''Commonwealth''—"metres". The default value is ''American''. |
− | *'''''precision''''' is the number of decimal digits in the converted value. The default value is& | + | *'''''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''. | *'''''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''. | ||
*'''''frac''''' specifies whether the output of inches should be decimal or in vulgar fractions and can take integer values. The value of ''10'' will lead to showing fractions of inches as decimals, while any other number will lead to showing fractions of inches as vulgar fractions (e.g., ''16'' will produce sixteenths). Output vulgar fractions are resolved in lower terms whenever possible. | *'''''frac''''' specifies whether the output of inches should be decimal or in vulgar fractions and can take integer values. The value of ''10'' will lead to showing fractions of inches as decimals, while any other number will lead to showing fractions of inches as vulgar fractions (e.g., ''16'' will produce sixteenths). Output vulgar fractions are resolved in lower terms whenever possible. | ||
Line 40: | Line 32: | ||
*{{tl|m to ft}} | *{{tl|m to ft}} | ||
*{{tl|ft to m}} | *{{tl|ft to m}} | ||
− | *{{tlx|convert| | + | *{{tlx|convert|<nowiki>14|m|ftin|sp=us</nowiki>}} |
− | *{{tlx|height| | + | *{{tlx|height|<nowiki>m=1.72</nowiki>}} |
− | + | <includeonly> | |
− | + | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | |
[[Category:Conversion templates|{{PAGENAME}}]] | [[Category:Conversion templates|{{PAGENAME}}]] | ||
− | + | </includeonly> |
Latest revision as of 21:16, 28 November 2010
Usage
- {{m to ft in| num | abbr | spell | precision | wiki | frac}}
- Examples
- Manual of Style notation:
- {{m to ft in|9}} → 9 meters (29 ft 6.3 in)
- {{m to ft in|9|frac=7}} → 9 meters (29 ft 6 2⁄7 in)
- {{m to ft in|9|frac=16}} → 9 meters (29 ft 6 5⁄16 in)
- Short notation:
- {{m to ft in|9|abbr=yes}} → 9 m (29 ft 6.3 in)
- {{m to ft in|9|abbr=yes|frac=7}} → 9 m (29 ft 6 2⁄7 in)
- {{m to ft in|9|abbr=yes|frac=16}} → 9 m (29 ft 6 5⁄16 in)
- Full notation:
- {{m to ft in|num=9|abbr=no|spell=Commonwealth|precision=2|wiki=yes|frac=10}} → 9 metres (29 feet 6.33 inches)
- {{m to ft in|num=9|abbr=no|spell=Commonwealth|precision=2|wiki=yes|frac=7}} → 9 metres (29 feet 6 2⁄7 inches)
- {{m to ft in|num=9|abbr=no|spell=Commonwealth|precision=2|wiki=yes|frac=16}} → 9 metres (29 feet 6 5⁄16 inches)
Italicized parameters are optional:
- num is a required parameter, which specifies the number of meters to be converted to feet and 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 (meters, ft/in); yes will show the abbreviated names of the units (m, ft/in); and no will show the full names of the units (meters, feet/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 "meters", and Commonwealth—"metres". 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.
- frac specifies whether the output of inches should be decimal or in vulgar fractions and can take integer values. The value of 10 will lead to showing fractions of inches as decimals, while any other number will lead to showing fractions of inches as vulgar fractions (e.g., 16 will produce sixteenths). Output vulgar fractions are resolved in lower terms whenever possible.
Capitalization of the parameters is unimportant.
See also
- {{ft in to m}}
- {{m to ft}}
- {{ft to m}}
- {{convert|14|m|ftin|sp=us}}
- {{height|m=1.72}}