Template:Fraction/doc: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(9 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 generates the navigation bar for [[prime limit]] pages.


=== Usage ===
{{Shortcut|frac}}
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. Not passing any arguments will produce the fraction slash character: U+2215 &nbsp;&#x2215;&nbsp; <span style="font-size: 10px;">DIVISION SLASH</span>.


=== Examples ===
=== See also ===
{| class="wikitable center-all"
* [[:Template:Sfrac]] – for typesetting vertical fractions.{{clear}}
! You type
! You get
|-
| <code><nowiki>{{fraction|A|B|C}}</nowiki></code>
| {{fraction|A|B|C}} (integer, numerator, and denominator)
|-
| <code><nowiki>{{fraction|B|C}}</nowiki></code>
| {{fraction|B|C}} (numerator and denominator)
|-
| <code><nowiki>{{fraction|C}}</nowiki></code>
| {{fraction|C}} (just denominator)
|-
| <code><nowiki>{{fraction}}</nowiki></code>
| {{fraction}}&nbsp; (just the fraction slash character)
|}
 
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 15:32, 2 June 2025

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

See documentation on Wikipedia.

Note: You can use {{frac}} as a shortcut.

See also