Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Wikipedia:Manual of Style/Superscripts and subscripts

From Wikipedia, the free encyclopedia
<Wikipedia:Manual of Style
Not to be confused withMOS:ORDINAL.
Thisguideline is a part of the English Wikipedia'sManual of Style.
Editors should generally follow it, thoughexceptions may apply.Substantive edits to this pageshould reflect consensus.
Manual of Style

Asuperscript orsubscript is text that is positioned slightly above or below the normal line of type. Superscripts and subscripts are often rendered in a smaller font size than the adjacent normal text. This part of theManual of Style aims to achieve consistency in the use and formatting of superscripts and subscripts in Wikipedia articles.

General guidelines

[edit]

Subscripts and superscripts should be wrapped in<sub> and<sup>HTML tags, respectively, with no other formatting info, with some exceptions (seebelow). The{{sup}} and{{sub}} templates are useful shortcuts to the HTML markup. Do not use theUnicode subscripts and superscripts² and³, orXML/HTML character entity references (&sup2; etc.). Rather, write<sup>2</sup> and<sup>3</sup> to produce the superscripts2 and3. The superscripted 2 and 3 are easier to read, especially on small displays, and ensure that exponents are properly aligned. Compare:

wⁱx²z⁽ⁿ ⁺ ⁶⁾ (Unicode superscripts) to
wix2z(n + 6) (w<sup>i</sup>x<sup>2</sup>z<sup>(n + 6)</sup>) or
wix2z(n + 6) (w{{sup|i}}x{{sup|2}}z{{sup|(n + 6)}})


1 +x² +y³ (&sup2;) to
1 +x2 +y3 (<sup>2</sup>) or
1 +x2 +y3 ({{sup|2}})

These guidelines also apply in citations and template parameters; templates are responsible for cleaning up markup if needed for external consumption, e.g. forCOinS.

Exceptions

[edit]

Phonetic transcriptions

[edit]

Phonetic transcriptions in theInternational Phonetic Alphabet andUralic Phonetic Alphabet (which are most often inside{{IPA}},{{IPA link}},{{UPA}}, and related templates) should useUnicode subscripts and superscripts. This follows the recommendation of theInternational Phonetic Association[1] and is done by the tools, help pages, and articles referenced inWikipedia:Manual of Style/Pronunciation. Tone should usually be marked with diacritics or IPA tone symbols, according toWikipedia:Manual of Style/Pronunciation#Tone. Use{{Needs IPA}} for any non-compliant articles.

Orthographies

[edit]

Superscript and subscript symbols inorthographies of languages, such as in theProto-Indo-European language, someSalishan languages, and theWade–Giles romanization of Mandarin, should use Unicode subscripts and superscripts.

Titles

[edit]

Another exception is where Unicode superscripts and subscripts are used is in thetitle of articles, though this is only rarely necessary. SeeWikipedia:Manual of Style/Titles § Typographic effects.

Short descriptions

[edit]

PerWP:SDFORMAT,{{short description}} cannot use HTML or wikitext formatting, leaving Unicode characters as the only option for superscripts and subscripts.

Dates and numbers

[edit]
Main page:Wikipedia:Manual of Style (dates and numbers)
  • Theordinal suffix (e.g.,th) is not superscripted (23rd and496th, not23rd and496th). (Exception: Non-English languages; seeMOS:ORDINAL.)
  • Centuries and millennia are written using ordinal numbers, without superscripts and without Roman numerals:the second millennium,the 19th century,a 19th-century book perMOS:CENTURY.
  • Non-base-10 notations in non-computer-related articles use subscript notation. For example:1379,2416,2A912,A87D16 (use{{sub|radix}} or<sub>radix</sub>).

Music

[edit]
Main page:Wikipedia:Manual of Style/Music

Unit symbols and abbreviations

[edit]
Main page:Wikipedia:Manual of Style (dates and numbers) § Unit names and symbols
  • Powers of unit symbols such as squares and cubes are expressed with a superscript exponent (5 km2,2 cm3). Use the<sup> tag or{{sup}} template rather than the Unicode superscript characters such as². Squared imperial and US unit abbreviations may be rendered withsq, and cubic withcu (15 sq mi,3 cu ft).

Science

[edit]

Chemistry

[edit]
Main page:Wikipedia:Manual of Style (chemistry)

Descriptions of:

C2H5O using{{chem2|C2H5O-}}
3
2
He
using{{Nuclide|He|3}} or3
He
using{{tlx|SimpleNuclide|He|3}}

Mathematics

[edit]
Main page:Wikipedia:Manual of Style (mathematics) § Superscripts and subscripts
Further information:Help:Displaying a formula § Subscripts, superscripts, integrals
22 = 4 using2{{sup|2}} = 4

Special care is needed with subscripted labels to distinguish the purpose of the subscript (as this is a common error): variables and constants in subscripts should be italic, while textual labels should be in normal text font (Roman, upright). For example:

xthis one=ythat one{\displaystyle x_{\text{this one}}=y_{\text{that one}}}   (correct—typeset from<math> x_\text{this one} = y_\text{that one} </math>),

and

i=1nyi2{\displaystyle \sum _{i=1}^{n}{{y_{i}}^{2}}}   (correct—typeset from<math>\sum_{i=1}^n{{y_i}^2}</math>),

but not

r=xpredictedxobserved{\displaystyle r=x_{predicted}-x_{observed}}   (incorrect—typeset fromr = x_{predicted} - x_{observed}).

Moreover, the TeX engine used on Wikipedia may format simple superscripts using<sup>...</sup> depending on user preferences. Thus, instead of the imagex2{\displaystyle x^{2}\,}, many users seex2. Formulae formatted without using TeX should use the same syntax to maintain the same appearance.

Notes

[edit]
  1. ^Esling, John (1999). "Appendix 2: Computer coding of IPA symbols". In International Phonetic Association (ed.).Handbook of the International Phonetic Association: A Guide to the Use of the International Phonetic Alphabet. Cambridge University Press. pp. 161–185.ISBN 0-521-63751-1.

See also

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Wikipedia:Manual_of_Style/Superscripts_and_subscripts&oldid=1317509231"
Category:
Hidden category:

[8]ページ先頭

©2009-2025 Movatter.jp