Template:Mtf

From FEInfobase

Jump to: navigation, search
[edit] 50px Template documentation

This is a convenience method. It is implemented simply by calling {{ftm}}.

Contents

Usage

{{mtf|feet|metres|switch|round|link}}

Ordinarily produces: feet ft (metres m).

If one of feet and metres is omitted, it will be calculated by conversion of the other (which must be numerical or an error will be displayed).

Setting switch to any non-empty value causes the metric value to be displayed first.

Set round to define the degree of rounding (e.g. 0 for no decimal places, 1 for one place, etc.).

Setting link to any non-empty value causes the units to be wikilinked to foot (unit of length) and metre.

Example

Examples

{{mtf|29}} produces:

29 m (95 ft)

{{mtf||34}} produces:

10 m (34 ft)

{{mtf|8.91|29.23}} produces:

8.91 m (29.23 ft)

{{mtf|15||1}} produces:

49 ft (15 m)

{{mtf|5.34|||2|1}} produces:

5.34 m (17.52 ft)

{{mtf|5.3|1|2|1}} produces:

17.39 ft (5.3 m)

See also

Personal tools