Wikipedia:Manual of Style/Superscripts and subscripts: Difference between revisions
Content deleted Content added
No edit summary |
Replaced html markup with standard WP templates; Copyedit; |
||
Line 1:
{{shortcut|WP:SUPSCRIPT|WP:SUBSCRIPT}}
{{proposed}}
A '''[[
Subscripts and superscripts should be wrapped in <code>
:
:
: {{xt|w{{sup|i}}x{{sup|2}}z{{sup|(n + 6)}}}} (<code><nowiki>w{{sup|i}}x{{sup|2}}z{{sup|(n + 6)}}</nowiki></code>)
{{br}}
:
: {{xt|1 + ''x''<sup>2</sup> + ''x''<sup>3</sup>}} (<code><nowiki><sup>2</sup></nowiki></code>) or
: {{xt|1 + ''x''{{sup|2}} + ''x''{{sup|3}}}} (<code><nowiki>{{sup|2}}</nowiki></code>)
Except under extraordinary circumstances, font sizes, color, etc should be controlled with Wikipedia's stylesheets.
==Dates and numbers==
Line 16 ⟶ 18:
* The '''ordinal suffix''' (e.g., ''th'') is not superscripted ({{xt|23rd}} and {{xt|496th}}, not {{!xt|23<sup>rd</sup>}} and {{!xt|496<sup>th</sup>}}).
* '''Centuries and millennia''' are written using ordinal numbers, without superscripts and without Roman numerals: {{xt|the second millennium}}, {{xt|the 19th century}}, {{xt|a 19th-century book}} (see also [[Wikipedia:Manual of Style#Numbers as figures or words]]).
* '''Non-[[
==Music==
{{main|Wikipedia:Manual of Style (music)}}
* In '''[[figured bass]]''', superscript and subscript may be combined
*A '''superscript circle''', or '''degree sign''', which indicates a diminished chord, that may not display correctly for everyone, "°", can be produced by typing <code>&deg;</code>, <code>&#176</code>, or
*For '''inversions''' and the '''degree sign''' superscript and subscript may be done thus: <code><nowiki>vii
==Unit symbols and abbreviations ==
{{main|Wikipedia:Manual of Style (dates and numbers)#Unit names and symbols}}
* '''Squared and cubic metric-symbols''' are always expressed with a superscript exponent ({{xt|5
==Science==
Line 34 ⟶ 36:
Descriptions of:
*'''[[Chemical compound]]s'''
:{{xt|C
*'''[[Isotopes]]'''
:{{xt|{{Nuclide2|He|3}}}} using <code>{{tlx|Nuclide2|He|3}}</code>
Line 43 ⟶ 45:
* '''[[Exponentiation]]''' is indicated using a superscript:
:{{xt|2
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:
Line 53 ⟶ 55:
: <math>r = x_{predicted} - x_{observed}</math>   (''incorrect''—typeset from <code><nowiki><math>r = x_{predicted} - x_{observed}</math></nowiki></code>).
Moreover, the TeX engine used on Wikipedia may format simple superscripts using <code><nowiki><sup>...</sup></nowiki></code> depending on user preferences. Thus, instead of the image <math>x^2\,</math>, many users see ''x''
|