Wikipedia:Manual of Style/Superscripts and subscripts: Difference between revisions
Content deleted Content added
→Music: example not yielding an inline picture |
fix |
||
Line 3:
Subscripts and superscripts should be wrapped in <code><sub></code> and <code><sup></code> tags, respectively, with no other formatting info. Do not use the [[Unicode subscripts and superscripts]] <span class="bad_example" style="color: #B20000;">²</span> and <span class="bad_example" style="color: #B20000;">³</span>, or [[List of XML and HTML character entity references|XML/HTML character entity references]] (<code>&sup2;</code>). Rather write <code><nowiki><sup>2</sup></nowiki></code> and <code><nowiki><sup>3</sup></nowiki></code> to produce the superscripts <span class="example" style="color: #006F00;"><sup>2</sup></span> and <span class="example" style="color: #006F00;"><sup>3</sup></span>. The superscripted 2 and 3 are easier to read, especially on small displays, and ensure that exponents are properly aligned. Compare:
: <span class="bad_example" style="color: #B20000;">wⁱx²
: <span class="example" style="color: #006F00;">w<sup>i</sup>x<sup>2
<br />
: <span class="bad_example" style="color: #B20000;">1
: <span class="example" style="color: #006F00;">1
Font sizes and such should be entrusted to be handled with stylesheets.<!--see discussion on Talk:Template:Sup-->
|