Template:Frac
Template:Fraction
⁄
This template is used on approximately 37,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template should not be substituted. |
This template should not be used in science or mathematical articles, use {{sfrac}} instead. |
This template uses TemplateStyles: |
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+B⁄C (integer, numerator and denominator)
{{fraction|B|C}}
- B⁄C (numerator and denominator)
{{fraction|C}}
- 1⁄C (denominator only)
{{fraction}}
- ⁄ (fraction slash only)