β 1/1β
Template documentation[view] [edit] [history] [purge]
| π Warning | This template is used on approximately 5,100 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| π Image | This template should not be substituted. |
| π Image | This template uses Lua: |
| π CSS | This template uses TemplateStyles: |
This template builds an alternative form of common or mixed fractions, using a vinculum (horizontal line), for scientific and mathematical text. It takes one, two or three parameters: the optional integer (may be signed), the optional numerator and the required denominator; in this order. Note that the three-parameter version is ambiguous and can be taken to mean A + β B/Cβ or A Β· β B/Cβ .
{{sfrac|A|B|C}}- β A+B/Cβ (integer, numerator and denominator)
{{sfrac|B|C}}- β B/Cβ (numerator and denominator)
{{sfrac|C}}- β 1/Cβ (denominator only)
Examples
β 1/2β , β 1/3β , β 2/3β , β 1/4β , β 3/4β , β 1/5β , β 2/5β , β 3/5β , β 4/5β , β 1/6β , β 5/6β , β 1/7β , β 2/7β , β 3/7β , β 4/7β , β 5/7β , β 6/7β , β 1/8β , β 3/8β , β 5/8β , β 7/8β , β 1/16β , β 3/16β , β 5/16β , β 7/16β , β 9/16β , β 11/16β , β 13/16β , β 15/16β , β 22/7β , β 1+1/16β , β 16+2/3β ,β 2Ο/a2bβ
Inside the {{math}} template (for inline math):
β 1/2β , β 1/3β , β 2/3β , β 1/4β , β 3/4β , β 1/5β , β 2/5β , β 3/5β , β 4/5β , β 1/6β , β 5/6β , β 1/7β , β 2/7β , β 3/7β , β 4/7β , β 5/7β , β 6/7β , β 1/8β , β 3/8β , β 5/8β , β 7/8β , β 1/16β , β 3/16β , β 5/16β , β 7/16β , β 9/16β , β 11/16β , β 13/16β , β 15/16β , β 22/7β , β 1+1/16β , β 16+2/3β , β 2Ο,/a2bβ
Inside the {{bigmath}} template (for standalone math):
β 1/2β , β 1/3β , β 2/3β , β 1/4β , β 3/4β , β 1/5β , β 2/5β , β 3/5β , β 4/5β , β 1/6β , β 5/6β , β 1/7β , β 2/7β , β 3/7β , β 4/7β , β 5/7β , β 6/7β , β 1/8β , β 3/8β , β 5/8β , β 7/8β , β 1/16β , β 3/16β , β 5/16β , β 7/16β , β 9/16β , β 11/16β , β 13/16β , β 15/16β , β 22/7β , β 1+1/16β , β 16+2/3β , β 2Ο,/a2bβ
Parameters
TemplateData for Sfrac
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| leftmost part | 1 | Denominator if only parameter supplied. Numerator if 2 parameters supplied. Integer if 3 parameters supplied. | Line | optional |
| middle-right part | 2 | Denominator if 2 parameters supplied. Numerator if 3 parameters supplied. | Line | optional |
| rightmost part | 3 | Denominator, always. | Line | optional |
| font size | font-size | Set customized font size. | Line | optional |
See also
- Wikipedia:Rendering math
- {{frac}}, displays common fractions using a fraction slash
- {{BSsplit}}, for two lines of text, with formatting options
- {{BScvt}}, for two distances
- {{su}} (superscript
subscript text) β to align both b=subscript & p=superscript - {{sub}} (subscript text) β to show a subscript
- {{sup}} (superscript text) β to show a superscript
- {{sup sub}} (textsup
sub) β for both 1=superscript & 2=subscript - Help:Displaying a formula#Fractions, matrices, multilines
- Help:Convert#Fractions
- Number Forms, a Unicode block consisting primarily of vulgar fractions
- OpenType fonts feature afrc, CSS
font-variant-numeric:stacked-fractionswith little support as of 2020
