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.
![](//upload.wikimedia.org/wikipedia/en/thumb/1/1d/Information_icon4.svg/40px-Information_icon4.svg.png) | This template should not be used in science or mathematical articles, use {{sfrac}} instead. |
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+B⁄C (integer, numerator and denominator)
{{fraction|B|C}}
- B⁄C (numerator and denominator)
{{fraction|C}}
- 1⁄C (denominator only)
{{fraction}}
- ⁄ (fraction slash only)