Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Sfrac

Permanently protected template
From Wikipedia, the free encyclopedia

1/1

Template documentation[view] [edit] [history] [purge]
WarningThis template is used onapproximately 4,800 pages and changes may be widely noticed. Test changes in the template's/sandbox or/testcases subpages, or in your ownuser subpage. Consider discussing changes on thetalk page before implementing them.
This template shouldnot besubstituted.
This template usesLua:
CSSThis template usesTemplateStyles:

This template builds an alternative form of common or mixedfractions, using avinculum (horizontal line), forscientific 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.

{{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

This is theTemplateData for this template used byTemplateWizard,VisualEditor and other tools.See a monthly parameter usage report forTemplate:Sfrac in articles based on its TemplateData.

TemplateData for Sfrac

A template builds an alternative form of common or mixed fractions, using a vinculum (horizontal line), for scientific and mathematical text. It supports 1–3 anonymous parameters with positional meaning.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
leftmost part1

Denominator if only parameter supplied. Numerator if 2 parameters supplied. Integer if 3 parameters supplied.

Lineoptional
middle-right part2

Denominator if 2 parameters supplied. Numerator if 3 parameters supplied.

Lineoptional
rightmost part3

Denominator, always.

Lineoptional
font sizefont-size

Set customized font size.

Lineoptional

See also


Math templates
  • Functions
  • Numeral systems
Functions
Numeral systems
Conversions
convert many units (see:list)
cvt abbreviated{{convert}}
convinfobox{{convert}} for infoboxes
bbl to t barrels of oil to tonnes
long ton long hundredweights, quarters and pounds to kilograms;
long tons and hundredweights to pounds and metric tons
miles-chains miles and chains to kilometres linking "chains"
decdeg degrees, minutes, and seconds todecimal degrees
deg2dms decimal degrees to degrees, minutes, and seconds
deg2hms decimal degrees tohour angle (in hours, minutes, and seconds)
hms2deghour angle (in hours, minutes, and seconds) to decimal degrees
inflation calculate inflation of Consumer Price Index-related prices
pop density population density in an area
track gauge railway track gauges
Notation andformatting
bigmath bigger font to matchTeX\displaystyle (standalone formulas only)
bra–ket notation
ceil,floor calculations:mw:Help:#expr; formatting indicators⌈3.14⌉,3.14 (no calculation performed)
fraction slant fractions35 (not for maths/science articles; usestanding or upright fractions{{sfrac}} instead)
intmathintegral symbols
  • langle
  • rangle
  • angbr
  • angular brackets
  • ldelim
  • rdelim
  • multiline delimiters (2–5 lines inclusive)
    abs absolute values (paired vertical lines)
    math short text-based formulas
    mathcal [mathematical] calligraphic font; alternative toLaTeX\mathcal{...}
    mvar individual italicized maths variables in normal text
  • overline
  • underline
  • a line set above/below a sequence of characters
    overarc an arc set above a sequence of characters
  • overset
  • underset
  • arbitrary characters/diacritics set above/below one another
    pars parentheses that can be resized()
    sfrac "standing" or upright fractions3/5 (use in maths/science articles instead of{{fraction}})
  • sub
  • sup
  • su
  • subscripts and superscripts
    tmath WrapTeX in<math> tags
    tombstone symbol indicating theend of a proof
    val measurement values, uncertainties and units
    vec various overarrows, underarrows, etc.
  • Boxes
  • Tags
  • Notices
  • The abovedocumentation istranscluded fromTemplate:Sfrac/doc.(edit |history)
    Editors can experiment in this template'ssandbox(edit |diff) andtestcases(edit) pages.
    Add categories to the/doc subpage.Subpages of this template.
    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Sfrac&oldid=1277959524"
    Category:
    Hidden categories:

    [8]ページ先頭

    ©2009-2025 Movatter.jp