Template:Fraction/doc

This template builds an alternative form of common fractions. The template takes one, two, or three parameters: the optional integer (may be signed), the optional numerator and the required denominator; in this order.

Please do not subst:itute it. This template should also not be used in certain situations; see MOS:FRAC and MOS:MATH ยง Fractions. For science or mathematical articles, use {{sfrac}} instead. To allow numerical sorting of a column containing fractions, use data-sort-value="X.YYY" where X.YYY is a rounded decimal equivalent. See Help:Sorting for more information and options. Inside citation templates, use the cleaner {{citefrac}}.

{{fraction|A|B|C}}
A+BC (integer, numerator and denominator)
{{fraction|B|C}}
BC (numerator and denominator)
{{fraction|C}}
1C (denominator only)
{{fraction}}
(fraction slash only)