Template:Fraction/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
No edit summary
Line 1: Line 1:
<includeonly><hr><small>Documentation transcluded from [[/doc]]</small></includeonly>
{{dochead}}
{{Wikipedia}}
This template renders fractions in diagonal form.
This template renders fractions in diagonal form.
{{clear}}


=== Usage ===
=== Usage ===
Line 22: Line 24:
| {{fraction}}&nbsp; (just the fraction slash character)
| {{fraction}}&nbsp; (just the fraction slash character)
|}
|}
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 17:30, 20 May 2024

English Wikipedia has an article on:

This template renders fractions in diagonal form.

Usage

Anywhere between zero and three arguments can be passed: A mixed number is notated with three (integer part, numerator, and denominator), a normal fraction with two, and entering just one will notate a reciprocal. Not passing any arguments will result in the output consisting only of the slash itself: U+2215  ∕  DIVISION SLASH.

Examples

You type You get
{{fraction|A|B|C}} A+BC (integer, numerator, and denominator)
{{fraction|B|C}} BC (numerator and denominator)
{{fraction|C}} 1C (just denominator)
{{fraction}}   (just the fraction slash character)