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

From blackwiki
Jump to navigation Jump to search
(→‎See also: mdash marked for deletion)
imported>Sardanaphalus
(categories)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
 
__NOTOC__
 
__NOTOC__
  
 
The '''long dash''' template produces a 3-em dash, which looks like this: "{{long dash}}". 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.
 
The '''long dash''' template produces a 3-em dash, which looks like this: "{{long dash}}". 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==
+
== Use ==
 
To use, replace the author's name with:
 
To use, replace the author's name with:
 
  <nowiki>{{long dash}}</nowiki>
 
  <nowiki>{{long dash}}</nowiki>
  
==Example usage ==
+
== Example ==
 
This mark-up:
 
This mark-up:
 
  <nowiki>* Cook, Nicholas. ''A Guide to Musical Analysis''. Oxford University Press, 1987.</nowiki>
 
  <nowiki>* Cook, Nicholas. ''A Guide to Musical Analysis''. Oxford University Press, 1987.</nowiki>
Line 26: Line 26:
  
 
== See also ==
 
== See also ==
 
 
For other types of dash, see:
 
For other types of dash, see:
 
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
Line 46: Line 44:
  
 
<includeonly>
 
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
+
<!-- CATEGORIES BELOW THIS LINE, PLEASE: -->
[[Category:Wikipedia formatting and function templates]]
+
[[Category:Typing-aid templates]]
 
+
[[Category:Wikipedia character-substitution templates]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
 
 
</includeonly>
 
</includeonly>

Revision as of 15:40, 16 November 2014


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

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;or
thecharacter in the "Insert" edit box tool
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 half the width of an em dash)
&mdash;  or
thecharacter in the "Insert" edit box tool
Em dash
(M-dash)
 —  A long dash (one em wide, typically equivalent to the height of the font size)
- 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: