Template:Sfrac/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
m Oops, this and Template:Fraction were copied over from Template:15-odd-limit and I forgot to update the heading
ArrowHead294 (talk | contribs)
mNo edit summary
 
(10 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 ===
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.
* [[Template:Fraction]] – for typesetting oblique fractions.{{clear}}
 
=== Examples ===
{| class="wikitable center-all"
! You type
! You get
|-
| <code><nowiki>{{fraction|A|B|C}}</nowiki></code>
| {{sfrac|A|B|C}} (integer, numerator, and denominator)
|-
| <code><nowiki>{{fraction|B|C}}</nowiki></code>
| {{sfrac|B|C}} (numerator and denominator)
|-
| <code><nowiki>{{fraction|C}}</nowiki></code>
| {{sfrac|C}} (just denominator)
|}
 
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 12:48, 25 May 2025

This template should not be substituted.
English Wikipedia has an article on:

See documentation on Wikipedia.

See also