Template:Convert/doc: Difference between revisions

From Wikishire
Jump to navigation Jump to search
Created page with '{{Documentation subpage}} '''THIS DOES NOT WORK YET BUT WE ARE GETTING THERE''' The Template will convert between units of measurement. The basic format is: <nowiki>{{</nowik…'
 
mNo edit summary
Line 16: Line 16:
If one of the units is imperial, the programme will always put that one first.
If one of the units is imperial, the programme will always put that one first.


[[Category:Convert templates|Convert]]
<includeonly>[[Category:Convert templates|Convert]]

Revision as of 12:50, 11 October 2012

Template:Mbox THIS DOES NOT WORK YET BUT WE ARE GETTING THERE

The Template will convert between units of measurement. The basic format is:

{{convert | [value] | [unit] | [unit to convert to] | [how many decimal places] }}

The third and fourth elements (the "output unit" and the rounding figure) may be omitted, in which case the programme will choose a normal counterpart for the input unit and will assume all is rounded to 1 decimal place.

Thus {{convert|1,000|ft}}
will produce: 1,000 feet (304.8 m)

If one of the units is imperial, the programme will always put that one first.