Difference between revisions of "Template:Long dash/doc"

From blackwiki
Jump to navigation Jump to search
imported>SMcCandlish
(→‎See also: Rewrite.)
imported>SMcCandlish
m (→‎See also: tweaks)
Line 33: Line 33:
 
! Code !! Name !! Display !! Explanation
 
! Code !! Name !! Display !! Explanation
 
|-
 
|-
| <code>&amp;minus;</code> || Minus || &minus; || a mathematical operation symbol (display varies depending on font)
+
| <code>&amp;minus;</code> || Minus || &nbsp;&minus;&nbsp; || A mathematical operation symbol (display varies depending on font)
 
|-
 
|-
| {{tl|ndash}}&nbsp;&nbsp;<small>or</small><br /><code>&amp;ndash;</code>&nbsp;&nbsp;<small>or</small><br /><small>the</small> <code>–</code> <small>character in the "Insert" edit box tool</small> || En dash<br />(N-dash) || &ndash; || a short dash (typically the width of the letter "N" in the same typeface)
+
| {{tl|ndash}}&nbsp;&nbsp;<small>or</small><br /><code>&amp;ndash;</code>&nbsp;&nbsp;<small>or</small><br /><small>the</small> – <small>character in the "Insert" edit box tool</small> || En dash<br />(N-dash) || &nbsp;&ndash;&nbsp; || A short dash (typically the width of the letter "N" in the same typeface)
 
|-
 
|-
| {{tl|mdash}}&nbsp;&nbsp;<small>or</small><br /><code>&amp;mdash;</code>&nbsp;&nbsp;<small>or</small><br /><small>the</small> <code>—</code> <small>character in the "Insert" edit box tool</small> || Em dash<br />(M-dash) || &mdash; || a long dash (one [[Em (unit)|em]] wide, typically the width of the letter "M" in the same typeface)
+
| {{tl|mdash}}&nbsp;&nbsp;<small>or</small><br /><code>&amp;mdash;</code>&nbsp;&nbsp;<small>or</small><br /><small>the</small> — <small>character in the "Insert" edit box tool</small> ||Em dash<br />(M-dash) || &nbsp;&mdash;&nbsp; || A long dash (one [[Em (unit)|em]] wide, typically the width of the letter "M" in the same typeface)
 
|-
 
|-
| <code>-</code> || Hyphen || - || the hyphen character on most keyboards, used to hyphenate compound words (display varies depending on font)
+
| <code>-</code> || Hyphen || &nbsp;-&nbsp; ||The hyphen character on most keyboards, used to hyphenate compound words (display varies depending on font)
 
|}
 
|}
  

Revision as of 18:12, 16 March 2012


The long dash template produces a 3-em dash, which looks like this: " ——— ". It is intended for use in bibliographies where there is more than one title by the same author, to avoid repetition of the author's name.

Use

To use, replace the author's name with:

{{long dash}}

Example usage

This mark-up:

* Cook, Nicholas. ''A Guide to Musical Analysis''. Oxford University Press, 1987.
* {{long dash}} ''Music: A Very Short Introduction''. Oxford University Press, 1998.
* {{long dash}} and Mark Everist (eds). ''Rethinking Music''. Oxford University Press, 1999.

gives this:

  • Cook, Nicholas. A Guide to Musical Analysis. Oxford University Press, 1987.
  •  ———  Music: A Very Short Introduction. Oxford University Press, 1998.
  •  ———  and Mark Everist (eds). Rethinking Music. Oxford University Press, 1999.

which avoids the repetitions of:

  • Cook, Nicholas. A Guide to Musical Analysis. Oxford University Press, 1987.
  • Cook, Nicholas. Music: A Very Short Introduction. Oxford University Press, 1998.
  • Cook, Nicholas, and Mark Everist (eds). Rethinking Music. Oxford University Press, 1999.

See also

For other types of dash, see:

Code Name Display Explanation
&minus; Minus  −  A mathematical operation symbol (display varies depending on font)
{{ndash}}  or
&ndash;  or
thecharacter in the "Insert" edit box tool
En dash
(N-dash)
 –  A short dash (typically the width of the letter "N" in the same typeface)
{{mdash}}  or
&mdash;  or
thecharacter in the "Insert" edit box tool
Em dash
(M-dash)
 —  A long dash (one em wide, typically the width of the letter "M" in the same typeface)
- Hyphen  -  The hyphen character on most keyboards, used to hyphenate compound words (display varies depending on font)

For guidance on usage of the various kinds of dash, see: