Wikipedia:Manual of Style/Superscripts and subscripts: Difference between revisions

Content deleted Content added
Replaced html markup with standard WP templates; Copyedit;
m Flipped order of Subscript and Superscript in lede to match article title;
Line 1:
{{shortcut|WP:SUPSCRIPT|WP:SUBSCRIPT}}
{{proposed}}
A '''[[subscript and superscript|Superscript]]''' or a '''[[subscript and superscript|Subscript]]''' is text that is positioned slightly belowabove or abovebelow the normal line of type and is sometimes rendered in a smaller font. This part of the [[Wikipedia:Manual of Style|Manual of Style]] aims to achieve consistency in the use and formatting of superscripts and subscripts in Wikipedia articles.
 
Subscripts and superscripts should be wrapped in <code><nowiki><sub></nowiki></code> and <code><nowiki><sup></nowiki></code> [[HTML]] tags, respectively, with no other formatting info. The {{tlx|sup}} and {{tlx|sub}} templates are useful shortcuts to the HTML markup. Do not use the [[Unicode subscripts and superscripts]] {{!xt|²}} and {{!xt|³}}, or [[List of XML and HTML character entity references|XML/HTML character entity references]] ({{!xt|<code>&amp;sup2;</code>}} etc). Rather, write {{xt|<code><nowiki><sup>2</sup></nowiki></code>}} and {{xt|<code><nowiki><sup>3</sup></nowiki></code>}} to produce the superscripts {{xt|{{sup|2}}}} and {{xt|{{sup|3}}}}. The superscripted 2 and 3 are easier to read, especially on small displays, and ensure that exponents are properly aligned. Compare: