Template:Ft to m/doc

From MidsouthMakers - Memphis Area Hackerpace
Revision as of 06:22, 24 November 2010 by Ocigiqy (talk | contribs)
Jump to navigation Jump to search


UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY


CLICK HERE


<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->

This template is intended to perform foot-to-meter conversions. It converts single values, ranges, as well as two- and three-dimensional measurements.

Accepted parameters

Italicized parameters are optional:

  • num, or l (length), or from, or first unnamed parameter is a required parameter, which specifies the number of feet to be converted to meters (for single value conversions), or length (for two- and three-dimensional conversions), or start of range (for range conversions). Please do not format this parameter; i.e., use 1234 instead of 1,234.
  • w (width), or to, or second unnamed parameter is a parameter specifying width (for dimensional conversions) or end of range (for range conversions) in feet to be converted to meters. Please do not format this parameter; i.e., use 1234 instead of 1,234.
  • h (height) or third unnamed parameter is a parameter specifying height (for three-dimensional conversions) in feet to be converted to meters. Please do not format this parameter; i.e., use 1234 instead of 1,234.
  • convtype (conversion type) can take values of either range or dim. Range is only meaningful when two values are supplied for conversion. The default value is dim.
  • 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 (feet, m); yes will show the abbreviated names of the units (ft, m); and no will show the full names of the units (feet, meters). With dimensional conversions, all values will be separated with the "by" preposition when the parameter is set to no, and with the "×" sign when the parameter is set to yes. When the parameter is set to mos, feet values will be separated with the "by" preposition, and the converted values in meters&mdash;with the "×" sign. The default value is mos.
  • spell can take values of Commonwealth, Com, C, BrE or UK. For any of these values the spelling metre(s) will be used. The default spelling is meter(s). This is only meaningful when abbr is set to no.
  • precision is the number of decimal digits in the converted value. Defaulting to conversions to the most precise of the following.
  • conversions rounded down one decimal place as compared to the input value
    • note: Where a range is given the most precise of the inputs is used.
    • note: One square meter is of comparable size to ten square feet.
or
  • conversions rounded to two significant figures
  • sigfig specifies the number of significant figures in the converted value.
    • This overrides precision.
    • Where the conversion is of a range it is the number of significant figures in the first value which is specified with the second being rounded to the same level of precision.
  • max precision specifies the maximum precision to round to.
  • min precision specifies the minimum precision to round to.
  • 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.

Usage and examples

Single value conversion

Usage
<nowiki>num feet by abbr feet by spell feet ({{rnd/bExpression error: Unrecognized word "num".|Expression error: Unrecognized word "num".|Expression error: Unexpected < operator.|Expression error: Unexpected < operator. }} m × {{rnd/bExpression error: Unrecognized word "abbr".|Expression error: Unrecognized word "abbr".|Expression error: Unexpected < operator.|Expression error: Unexpected < operator. }} m × {{rnd/bExpression error: Unrecognized word "spell".|Expression error: Unrecognized word "spell".|Expression error: Unexpected < operator.|Expression error: Unexpected < operator. }} m)</nowiki>
Examples
Manual of Style notation: <nowiki>100 feet (30 m)</nowiki>&nbsp;&rarr; 100 feet (30 m)
Short notation: <nowiki>100 ft (30 m)</nowiki>&nbsp;&rarr; 100 ft (30 m)
Full notation: <nowiki>100 feet (30.48 metres)</nowiki>&nbsp;&rarr; 100 feet (30.48 metres)

Range conversions

Usage
<nowiki>from feet by to feet by convtype feet ({{rnd/bExpression error: Unrecognized word "from".|Expression error: Unrecognized word "from".|Expression error: Unexpected < operator.|Expression error: Unexpected < operator. }} m × {{rnd/bExpression error: Unrecognized word "to".|Expression error: Unrecognized word "to".|Expression error: Unexpected < operator.|Expression error: Unexpected < operator. }} m × {{rnd/bExpression error: Unrecognized word "convtype".|Expression error: Unrecognized word "convtype".|Expression error: Unexpected < operator.|Expression error: Unexpected < operator. }} m)</nowiki>
Examples
Manual of Style notation: <nowiki>100–200 feet (30–61 m)</nowiki>&nbsp;&rarr; 100–200 feet (30–61 m)
Short notation: <nowiki>100–200 ft (30–61 m)</nowiki>&nbsp;&rarr; 100–200 ft (30–61 m)
Full notation: <nowiki>100–200 feet (30.48–60.96 metres)</nowiki>&nbsp;&rarr; 100–200 feet (30.48–60.96 metres)

Two-dimensional conversions

Usage
<nowiki>l feet by w feet by convtype feet ({{rnd/bExpression error: Unrecognized word "l".|Expression error: Unrecognized word "l".|Expression error: Unexpected < operator.|Expression error: Unexpected < operator. }} m × {{rnd/bExpression error: Unrecognized word "w".|Expression error: Unrecognized word "w".|Expression error: Unexpected < operator.|Expression error: Unexpected < operator. }} m × {{rnd/bExpression error: Unrecognized word "convtype".|Expression error: Unrecognized word "convtype".|Expression error: Unexpected < operator.|Expression error: Unexpected < operator. }} m)</nowiki>
Examples
Manual of Style notation: <nowiki>100 feet by 200 feet (30 m × 61 m)</nowiki>&nbsp;&rarr; 100 feet by 200 feet (30 m × 61 m)
Short notation: <nowiki>100 ft × 200 ft (30 m × 61 m)</nowiki>&nbsp;&rarr; 100 ft × 200 ft (30 m × 61 m)
Full notation: <nowiki>100 feet by 200 feet (30.48 metres by 60.96 metres)</nowiki>&nbsp;&rarr; 100 feet by 200 feet (30.48 metres by 60.96 metres)

Three-dimensional conversions

Usage
<nowiki>l feet by w feet by h feet ({{rnd/bExpression error: Unrecognized word "l".|Expression error: Unrecognized word "l".|Expression error: Unexpected < operator.|Expression error: Unexpected < operator. }} m × {{rnd/bExpression error: Unrecognized word "w".|Expression error: Unrecognized word "w".|Expression error: Unexpected < operator.|Expression error: Unexpected < operator. }} m × {{rnd/bExpression error: Unrecognized word "h".|Expression error: Unrecognized word "h".|Expression error: Unexpected < operator.|Expression error: Unexpected < operator. }} m)</nowiki>
Examples
Manual of Style notation: <nowiki>1 foot by 2 feet by 3 feet (0.30 m × 0.61 m × 0.91 m)</nowiki>&nbsp;&rarr; 1 foot by 2 feet by 3 feet (0.30 m × 0.61 m × 0.91 m)
Short notation: <nowiki>1 ft × 2 ft × 3 ft (0.30 m × 0.61 m × 0.91 m)</nowiki>&nbsp;&rarr; 1 ft × 2 ft × 3 ft (0.30 m × 0.61 m × 0.91 m)
Full notation: <nowiki>1 foot by 2 feet by 3 feet (0.30 metres by 0.61 metres by 0.91 metres)</nowiki>&nbsp;&rarr; 1 foot by 2 feet by 3 feet (0.30 metres by 0.61 metres by 0.91 metres)

See also

<includeonly> no:Mal:Ft to m zh:Template:Ft to m </includeonly>