Search results
Results from the WOW.Com Content Network
[[Category:Superscript and subscript templates]] to the <includeonly> section at the bottom of that page. Otherwise, add <noinclude>[[Category:Superscript and subscript templates]]</noinclude> to the end of the template code, making sure it starts on the same line as the code's last character.
This template may be listed at Wikipedia:Subst as a good candidate for substituting (i.e. {{subst:sub}}). On a page that uses the template many times, however, this is likely to clutter and lengthen the page significantly. Text can also be subscripted simply by using the <sub> and </sub> tags, so that:
To change this template's initial visibility, the |state= parameter may be used: {{Sup and sub-related templates | state = collapsed}} will show the template collapsed, i.e. hidden apart from its title bar. {{Sup and sub-related templates | state = expanded}} will show the template expanded, i.e. fully visible.
Example of subscript and superscript. In each example the first "2" is professionally designed, and is included as part of the glyph set; the second "2" is a manual approximation using a small version of the standard "2". The visual weight of the first "2" matches the other characters better.
This template provides a simple means of coding inline mathematical material that has subscripts and superscripts, for display in the same typeface as the surrounding text. The rendering is always done in HTML ; this offers an alternative to using the TeX preprocessor via the <math>...</math> tags, which display the material in a serif typeface ...
Subscripts and superscripts should be wrapped in <sub> and <sup> HTML tags, respectively, with no other formatting info, with some exceptions (see below). The {} and {} templates are useful shortcuts to the HTML markup. Do not use the Unicode subscripts and superscripts ² and ³, or XML/HTML character entity references (² etc.).
Superscripts and Subscripts Official Unicode Consortium code chart (PDF) ... {Unicode chart Superscripts and Subscripts}} This template does not take any parameters.
Spaces within a formula must be directly managed (for example by including explicit hair or thin spaces). Variable names must be italicized explicitly, and superscripts and subscripts must use an explicit tag or template. Except for short formulas, the source of a formula typically has more markup overhead and can be difficult to read.