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
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>&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:
|