Template:Sfrac/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly><hr><small>Documentation transcluded from [[/doc]]</small></includeonly>
{{dochead}}
This template renders fractions in vertical form.
 
=== Usage ===
=== Usage ===
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.
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.
Line 19: Line 17:
| {{sfrac|C}} (just denominator)
| {{sfrac|C}} (just denominator)
|}
|}
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 14:11, 20 May 2024

Usage

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.

Examples

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