Super Markup Manual
Throughout the years, Milwaukee Electric Tool Corporation has made numerous models of power tools, many of which are still in existence and occasionally are in need of service. Service Parts List Bulletins, Wiring Instructions and Operators Manuals can generally be obtained through this section of our website.
This is an explanatory supplement to the various Manual of Style pages linked below. This page is intended to provide additional information about concepts in the page(s) it supplements. This page is not one of Wikipedia's policies or guidelines, as it has not been thoroughly vetted by the community. |
A Superscript or a Subscript is text that is positioned slightly above or below the normal line of type and is sometimes rendered in a smaller font. This part of the Manual of Style aims to achieve consistency in the use and formatting of superscripts and subscripts in Wikipedia articles.
General guidelines[edit]
Subscripts and superscripts should be wrapped in <sub>
and <sup>
HTML tags, respectively, with no other formatting info. The {{sup}}
and {{sub}}
templates are useful shortcuts to the HTML markup. Do not use the Unicode subscripts and superscripts² and ³, or XML/HTML character entity references (²
etc). Rather, write <sup>2</sup>
and <sup>3</sup>
to produce the superscripts 2 and 3. The superscripted 2 and 3 are easier to read, especially on small displays, and ensure that exponents are properly aligned. Compare:
- wⁱx²z⁽ⁿ⁺⁶⁾ (Unicode superscripts) to
- wix2z(n + 6) (
w<sup>i</sup>x<sup>2</sup>z<sup>(n + 6)</sup>
) or - wix2z(n + 6) (
w{{sup i}}x{{sup 2}}z{{sup (n + 6)}}
)
- 1 + x² + y³ (
²
) to - 1 + x2 + y3 (
<sup>2</sup>
) or - 1 + x2 + y3 (
{{sup 2}}
)
Titles[edit]
One exception where Unicode superscripts and subscripts are used is in the title of articles, though this is only rarely necessary. See Wikipedia:Manual of Style/Titles § Typographic effects.
Dates and numbers[edit]
- The ordinal suffix (e.g., th) is not superscripted (23rd and 496th, not 23rd and 496th).
- Centuries and millennia are written using ordinal numbers, without superscripts and without Roman numerals: the second millennium, the 19th century, a 19th-century book (see also Wikipedia:Manual of Style#Numbers as figures or words).
- Non-base-10 notations in non-computer-related articles use subscript notation. For example: 1379, 2416, 2A912, A87D16 (use
{{sub radix}}
or<sub>radix</sub>
).
Music[edit]
- In figured bass, superscript and subscript may be combined by using math markup or by using the
{{su}}
template:<math>C_6^4</math>
= ,'C'{{su b=6 p=4}}
= C4
6; (see also Wikipedia:TeX markup or m:Help:Formula). - A superscript circle, or degree sign, which indicates a diminished chord, that may not display correctly for everyone, '°', can be produced by typing
°
,°
, or by keying Alt+0176 (Windows PCs). A superscript lower case 'o' ({{sup o}}
) may be used instead. The slashed o, 'ø', which may not display correctly for all readers, is produced by superscripting the character produced by typingø
, orø
, or by keying Alt+0248 (Windows PCs). - For inversions and the degree sign superscript and subscript may be done thus:
vii{{sup o}}
,I{{sub 6}}
. This looks like: viio, I6.
Unit symbols and abbreviations[edit]
- Squared and cubic metric-symbols are always expressed with a superscript exponent (5km2, 2cm3); squared imperial and US unit abbreviations may be rendered with sq, and cubic with cu (15sqmi, 3cuft).
A template is available to render consistently. The above example is coded with the template syntax {{sup 2}} rather than <sup>2</sup> or the special Unicode superscript digit '²'.
Science[edit]
Chemistry[edit]
Descriptions of:
- C2H5OH using
C{{sub 2}}H{{sub 5}}OH
- 3
2He
using{{Nuclide2 He 3}}
Mathematics[edit]
- Exponentiation is indicated using a superscript:
- 22 = 4 using
2{{sup 2}} = 4
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:
- (correct—typeset from
<math> x_text{this one} = y_text{that one},!</math>
),
and
- (correct—typeset from
<math>sum_{i=1}^n { y_i^2 }!</math>
),
but not
- (incorrect—typeset from
r = x_{predicted} - x_{observed}
).
Moreover, the TeX engine used on Wikipedia may format simple superscripts using <sup>..</sup>
depending on user preferences. Thus, instead of the image , many users see x2. Formulae formatted without using TeX should use the same syntax to maintain the same appearance.
This is intended as a quick reference and showcase. For more complete info, see John Gruber's original spec and the Github-flavored Markdown info page.
Note that there is also a Cheatsheet specific to Markdown Here if that's what you're looking for. You can also check out more Markdown tools.
Table of Contents
Headers
Emphasis
Lists
Links
Images
Code and Syntax Highlighting
Tables
Blockquotes
Inline HTML
Horizontal Rule
Line Breaks
YouTube Videos
Headers
H2
H3
H4
H5
H6
Alternatively, for H1 and H2, an underline-ish style:
Alt-H2
Emphasis
Emphasis, aka italics, with asterisks or underscores.
Strong emphasis, aka bold, with asterisks or underscores.
Combined emphasis with asterisks and underscores.
Strikethrough uses two tildes. Scratch this.
Lists
(In this example, leading and trailing spaces are shown with with dots: ⋅)
- First ordered list item
- Another item
- Unordered sub-list.
Actual numbers don't matter, just that it's a number
Ordered sub-list
And another item.
You can have properly indented paragraphs within list items. Notice the blank line above, and the leading spaces (at least one, but we'll use three here to also align the raw Markdown).
To have a line break without a paragraph, you will need to use two trailing spaces.
Note that this line is separate, but within the same paragraph.
(This is contrary to the typical GFM line break behaviour, where trailing spaces are not required.)
- Unordered list can use asterisks
- Or minuses
- Or pluses
Links
There are two ways to create links.
Or leave it empty and use the link text itself.
URLs and URLs in angle brackets will automatically get turned into links.http://www.example.com or http://www.example.com and sometimesexample.com (but not on Github, for example).
Some text to show that the reference links can follow later.
Images
Here's our logo (hover to see the title text):
Inline-style: Ragnarok path of heroes mercenary compound.
Reference-style:
Code and Syntax Highlighting
Code blocks are part of the Markdown spec, but syntax highlighting isn't. However, many renderers -- like Github's and Markdown Here -- support syntax highlighting. Which languages are supported and how those language names should be written will vary from renderer to renderer. Markdown Here supports highlighting for dozens of languages (and not-really-languages, like diffs and HTTP headers); to see the complete list, and how to write the language names, see the highlight.js demo page.
Inline code
has back-ticks around
it.
Blocks of code are either fenced by lines with three back-ticks ```
, or are indented with four spaces. I recommend only using the fenced code blocks -- they're easier and only they support syntax highlighting.
Tables
Tables aren't part of the core Markdown spec, but they are part of GFM and Markdown Here supports them. They are an easy way of adding tables to your email -- a task that would otherwise require copy-pasting from another application.
Colons can be used to align columns.
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
There must be at least 3 dashes separating each header cell. The outer pipes ( ) are optional, and you don't need to make the raw Markdown line up prettily. You can also use inline Markdown.
Markdown | Less | Pretty |
---|---|---|
Still | renders | nicely |
1 | 2 | 3 |
Blockquotes
Blockquotes are very handy in email to emulate reply text.This line is part of the same quote.
Quote break.
This is a very long line that will still be quoted properly when it wraps. Oh boy let's keep writing to make sure this is long enough to actually wrap for everyone. Oh, you can putMarkdown into a blockquote.
Inline HTML
You can also use raw HTML in your Markdown, and it'll mostly work pretty well.
- Definition list
- Is something people use sometimes.
- Markdown in HTML
- Does *not* work **very** well. Use HTML tags.
Horizontal Rule
Three or more..
Hyphens
Asterisks
Underscores
Line Breaks
My basic recommendation for learning how line breaks work is to experiment and discover -- hit <Enter> once (i.e., insert one newline), then hit it twice (i.e., insert two newlines), see what happens. You'll soon learn to get what you want. 'Markdown Toggle' is your friend.
Here are some things to try out:
Here's a line for us to start with.
This line is separated from the one above by two newlines, so it will be a separate paragraph.
This line is also begins a separate paragraph, but..
This line is only separated by a single newline, so it's a separate line in the same paragraph.
(Technical note: Markdown Here uses GFM line breaks, so there's no need to use MD's two-space line breaks.)
YouTube Videos
They can't be added directly but you can add an image with a link to the video like this:
Or, in pure Markdown, but losing the image sizing and border:
Referencing a bug by #bugID in your git commit links it to the slip. For example #1.
License: CC-BY