Wikipedia:Manual of Style (dashes)
Wikipedia should use standard rules of English punctuation for dashes. However, some current or future automated Wiki tools make it important to understand how to represent these dashes.
True dashes convey semantic meaning the hyphen lacks, and some feel it makes the rendered text easier to read. They may not display consistently in all browsers. (Please see the talk page.)
Now that Wikipedia uses UTF-8, these can be entered directly into the article markup. To enter an em dash or an en dash after your cursor, for instance, you can click the "—" or "–" link, respectively, below the edit box. See Help:Special characters.
Contents |
Dashes and hyphens used on Wikipedia
The hyphen, or more accurately the hyphen-minus (-)[1], is the shortest dash-like character visually. Traditionally, this was used only for hyphenating words, creating line breaks, or as the minus sign. For historical reasons, it is the only dash-like character on the keyboard. (Typewriters used two hyphens to render a regular dash.) Dashes have been implemented in various ways that do not display consistently in all software, leading the hyphen to be used in place of dashes.
The minus sign or figure dash (−) is designed to be the same width and height as a plus or equals sign, and should be used in non-TeX equations or to designate negative numbers. It is supported in almost all browsers, and can be used in Wikipedia. It is possible to use the HTML entity −
or the numeric form −
.
The en dash (–) is slightly longer than the hyphen and figure dash and about half the width of an em dash. In any font, an en dash is approximately equal in length to the capital 'N'. It indicates duration, such as when you could substitute the word "to" (as in a range of dates). An en dash placed between numbers or in compounds does not have spaces around it: for example Paris–Brussels timetable, Ages 7–77. Some writers, however, prefer to place a space on either side in complex ranges: 1 January 2003 – 31 December 2004. The en dash can also be used as a hyphen in compound adjectives in which one part consists of two words or a hyphenated word: for example, pre–World War II period; and it is used in compound adjectives referring to multiple people, so as to clarify that for example the name of the Poincaré–Birkhoff–Witt theorem refers to three people while the Birch–Swinnerton-Dyer conjecture refers to two (one of them called Swinnerton-Dyer). The Guide for the Use of the International System of Units (SI) recommends that the word "to" be used instead of an en dash when a number range might be misconstrued as subtraction, such as a range of units. The en dash is supported in almost all browsers, and can be used in Wikipedia. Use the HTML entity –
(not the numeric form –
; see below) or type it in directly if your keyboard allows it.
The em dash (—) the em dash is a doubled en dash, just as the letter 'm' is like a doubled letter 'n'. The em dash is twice as long as the en dash and about the length of the capital 'M' in any particular font. The em dash is used in much the same way as a colon or set of parentheses: it can show an abrupt change in thought or be used where a period is too strong and a comma too weak. An em dash can have spaces on either side or not, depending on the writer's preference or in-house style rules; and many writers prefer to use the en dash (spaced) for this parenthetical use, with many of those also preferring a spaced en dash as a colon substitute. Em dashes are sometimes used incorrectly to separate lists of items from their definitions. (A colon should be used instead. Wikipedia also has a defined syntax for definitions, which is often preferable to colons. See How to edit for details.)
The em dash is supported in almost all browsers, and can be used in Wikipedia. Use the HTML entity —
, which the MediaWiki engine automatically converts into a numeric entity in the rendered HTML. The numeric entities, —
and —
, should be avoided in the wikitext: they produce the same result in the rendered HTML, but are more difficult for editors to interpret. You may also type an em dash directly if your keyboard allows it.
Historically, a double hyphen (--) was used to represent an em dash because on a typewriter the hyphens tend to connect, creating a dash in appearance. This is still an acceptable way of representing the em dash as it will not cause misreads across platforms or with different language encoding.
See also Dash (punctuation) for detailed discussion of usage and more dashes.
Dashes not used on Wikipedia
The figure dash ("‒") should not be used on Wikipedia. It is slightly longer than the hyphen, usually the same length as the en dash. It is the same width as a number, and is used in telephone numbers (e.g. 012‒3456‒7890), to indicate a missing value in numeric data, etc. It can be typed with the numeric form ‒
. Since browser support for it is lacking in some combinations of operating system, browser and font, use a hyphen in the Wikipedia instead.
The quotation dash ("―") should not be used on Wikipedia. This dash is used to introduce quoted text. If rendered at all, in most fonts it is rendered identically to the em dash. On some systems it can be typed only with the numeric form, ―
. Since browser support for it is currently limited, use the em dash in Wikipedia instead.
The following are not dashes:
- The macron ("¯") is a diacritic mark. Do not use it as a dash.
- The underscore or lowline ("_") is another diacritic mark in some languages. It is also used as a non-breaking space or as a space replacement in some computer operating systems. Do not use it as a dash.
Dash guidelines for Wikipedia editors
Simply click the dash buttons below the edit window, or insert the dash with any software supporting these punctuations. If possible, avoid typing their related codes (e.g., – for en dash) to display dashes, as this clutters the text when editing and may not be understood by new editors.
As with any guideline that permits multiple styles, editors are encouraged not to convert others' dash styles without good reason. However, a significant number of editors feel that to maintain a respectable feel, Wikipedia should use only traditional dash styles; many advocate changing hyphen-based dash styles (a legacy of the days of typewriters and early computers, when true dashes were hard to produce) to more traditional styles based on en and em dashes. Others, however, dispute this, either because they prefer the look of hyphens, think traditional dashes are too ugly or confusing in the edit box, or fear that conflict will arise if editors change each other's styles. A moderate approach is only to change the style of dashes where this is required for consistency within an article.
The following five dash styles are currently in use on Wikipedia:
- Tight (unspaced) em dashes—like this. Entered by means of
—
, or, if your keyboard allows it, you can type it in directly, or you can retrieve it from below the edit window (as discussed above). - Spaced em dashes — like this.
- Spaced en dashes – like this. Entered by means of
–
, directly if your keyboard allows it, or retrieved from below the edit window. (Note: an unspaced en dash is properly used to indicate a range of numbers; unspaced en dashes should not be used for the parenthetical or colon-type uses, as discussed above.) - A pair of hyphens -- either spaced or unspaced--like that. These are simple to type, but are regarded as ugly by some; many feel that an editor who wishes to may freely convert them to em dashes or spaced en dashes. (This may be taken care of in the future by the software.) All agree, of course, that editors who do not want to bother keying in special characters or HTML entities are free to type their dashes in this fashion; it's just disputed whether other editors should change them. A pair of hyphens is equivalent to an em dash, or to a spaced en dash.
- A single spaced hyphen - like this. Like a double hyphen, this is not traditional, and a substantial number of Wikipedians favor changing them to spaced en dashes (or to em dashes) on sight.
Some editors who use spaced dashes include a nonbreaking space before the dash: with —
for an em dash; or with –
for an en dash. This keeps dashes from appearing at the start of a line. (A very rare variant of this style separates the dash from the surrounding words using hair spaces; since many browsers cannot display hair spaces, these may appear on the display as simple tight dashes. See warnings in what follows.)
For page names:
- Hyphens and dashes are generally rather avoided in page names (e.g., year of birth and death are generally not used in a page name to disambiguate two people with the same name).
- If hyphens and dashes are needed to write a page name correctly (e.g., Piano-Rag-Music, Jack-in-the-box, Nineteen Eighty-Four), prefer simple hyphens, and avoid hair spaces, even in the odd case of a range forming part of the title, e.g., History of the Soviet Union (1985-1991).
- If for greater precision another type of dash is used, always provide a redirect from the variant with simple hyphens and without hair spaces. Note however that using less common types of dashes in non-redirect page names can easily break Wikipedia:Naming conventions (common names), for the reasons given in the Rationale section of that guideline.
Dashes on keyboards
The standard US 101 key keyboard layout does not provide dedicated keys for entering dashes and other typographic punctuation signs missing from ASCII. However, some operating systems have extended these standards and some permit users to customize the keyboard layout. Many Wikipedia editors find that customizing their keyboard to provide additional Unicode characters is by far the most convenient and efficient method of entering them.
Macintosh
The U.S. English keyboard layout on all Macintosh computers (since 1984) allows a user to type dashes:
- en dash: option-hyphen
- em dash: option-shift-hyphen
Windows
Under Microsoft Windows, various special characters can be entered by holding down the Alt key while typing a sequence of four digits on the numeric keypad. For dashes, these digits are:
- en dash: alt-0-1-5-0
- em dash: alt-0-1-5-1
X Window System
Under recent versions of X11, you can obtain the em dash (—) by pressing the Compose key followed by - - - (triple hyphen-minus), and the en dash (–) can be obtained by pressing the Compose key followed by - - . (hyphen-minus, hyphen-minus, dot).
Notes
- ^ Note: Technically, in the Unicode table, hyphen means U+2010 HYPHEN (‐), not U+002D HYPHEN-MINUS. However, in this page, the word hyphen always means U+002D HYPHEN-MINUS. For example, “use a hyphen instead” would mean “use U+002D” (not U+2010). You can use the real hyphen instead of the hyphen-minus as
‐
, but some browsers may not display it properly. The same is true about U+2011 NON-BREAKING HYPHEN (‑) or‑
.