Template:Convert

From Working With Glass
Revision as of 06:01, 24 October 2025 by Claycorp (talk | contribs) (I will eventually find this stupid stray space this template adds.... Also updated some info for the measured value.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Basic measurement conversion template for displaying both metric and imperial units at the same time regardless of input type.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
fromUnitfromUnit

Origin unit this measurement was made in.

Suggested values
foot inch mm cm m f c
Example
inch
Stringrequired
toUnittoUnit

The unit that the measured value should be converted to.

Suggested values
foot inch mm cm m c f
Example
cm
Stringrequired
valuevalue

The measured value to convert from. NO FRACTIONS! Decimal only! 1/2 = 0.5, 1/4 = 0.25, 1/8th = 0.125, 1/16th = 0.0625

Example
12
Numberrequired