|
|
(8 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| <includeonly><hr><small>Documentation transcluded from [[/doc]]</small></includeonly>
| | {{substitute|no}}{{doc head Wikipedia}}{{templatestyles}} |
| This template renders fractions in vertical form.
| |
|
| |
|
| === Usage === | | === See also === |
| One, two, or three arguments can be passed: A mixed number is notated with three (integer part and fraction), a normal fraction with two, and a reciprocal with just one.
| | * [[Template:Fraction]] – for typesetting oblique fractions.{{clear}} |
| | |
| === Examples ===
| |
| {| class="wikitable center-all"
| |
| ! You type
| |
| ! You get
| |
| |-
| |
| | <code><nowiki>{{sfrac|A|B|C}}</nowiki></code>
| |
| | {{sfrac|A|B|C}} (integer, numerator, and denominator)
| |
| |-
| |
| | <code><nowiki>{{sfrac|B|C}}</nowiki></code>
| |
| | {{sfrac|B|C}} (numerator and denominator)
| |
| |-
| |
| | <code><nowiki>{{sfrac|C}}</nowiki></code>
| |
| | {{sfrac|C}} (just denominator)
| |
| |}
| |
| | |
| <noinclude>[[Category:Template documentation]]</noinclude>
| |