Template:Sfrac/doc

Revision as of 13:52, 23 April 2024 by ArrowHead294 (talk | contribs) (Oops, this and Template:Fraction were copied over from Template:15-odd-limit and I forgot to update the heading)

This template renders fractions in vertical form.

Usage

This template takes anywhere between none and three arguments: A mixed number is notated with three (integer part and fraction), a normal fraction with two, and entering just one will notate a reciprocal.

Examples

You type You get
{{fraction|A|B|C}} ⁠A+B/C⁠ (integer, numerator, and denominator)
{{fraction|B|C}} ⁠B/C⁠ (numerator and denominator)
{{fraction|C}} ⁠1/C⁠ (just denominator)