Difference between revisions of "Template:Long dash/doc"
Jump to navigation
Jump to search
imported>SMcCandlish (→See also: Actually the "width of 'M'" stuff is obsolete; I momentarily forgot that.) |
imported>Procyonidae (→See also: link wiki page for ref) |
||
| (8 intermediate revisions by 8 users not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
| − | <!-- PLEASE ADD CATEGORIES | + | <!-- 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 | + | Synonyms: {{tlc|longdash}}, {{tlc|---}} |
| + | |||
| + | == 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 28: | ||
== See also == | == See also == | ||
| − | |||
For other types of dash, see: | For other types of dash, see: | ||
| − | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Code !! Name !! Display !! Explanation | ! Code !! Name !! Display !! Explanation | ||
|- | |- | ||
| − | | <code>&minus;</code><small>or</small><br /><small>the</small> − <small>character in the "Insert" edit box tool</small> || Minus || − || A mathematical operation symbol (display varies depending on font) | + | | <code>&minus;</code> <small>or</small><br /><small>the</small> "−" <small>character in the "Insert" edit box tool</small> || Minus || − || A mathematical operation symbol (display varies depending on font) |
|- | |- | ||
| − | | {{tl|ndash}} | + | | {{tl|ndash}} <small>or</small><br /><code>&ndash;</code> <small>or</small><br /><small>the</small> "–" <small>character in the "Insert" edit box tool</small> || En dash || – || A short dash (typically half the width of an em dash) |
|- | |- | ||
| − | | {{tl|mdash}} | + | | {{tl|mdash}} <small>or</small><br /><code>&mdash;</code> <small>or</small><br /><small>the</small> "—" <small>character in the "Insert" edit box tool</small> || Em dash || — || A long dash (one [[Em (typography)|em]] wide, typically equivalent to the height of the font size) |
|- | |- | ||
| − | | <code>-</code> || Hyphen || - ||The hyphen character on most keyboards, used to hyphenate compound words (display varies depending on font) | + | | <code>-</code> || 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: | For guidance on usage of the various kinds of dash, see: | ||
* [[WP:Manual of Style#Dashes]] (or [[MOS:DASH]] for short) | * [[WP:Manual of Style#Dashes]] (or [[MOS:DASH]] for short) | ||
| + | * [[Dash#Types of dash]] | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
| − | <!-- | + | <!-- CATEGORIES BELOW THIS LINE, PLEASE: --> |
| − | [[Category: | + | [[Category:Typing-aid templates]] |
| − | + | [[Category:Character-substitution templates]] | |
| − | + | }}</includeonly> | |
| − | </includeonly> | ||
Latest revision as of 09:48, 2 December 2020
| This is a documentation subpage for Template:Long dash. It contains usage information, categories and other content that is not part of the original template page. |
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}}
Synonyms: {{longdash}}, {{---}}
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 |
|---|---|---|---|
− orthe "−" character in the "Insert" edit box tool |
Minus | − | A mathematical operation symbol (display varies depending on font) |
{{ndash}} or– orthe "–" character in the "Insert" edit box tool |
En dash | – | A short dash (typically half the width of an em dash) |
{{mdash}} or— orthe "—" character in the "Insert" edit box tool |
Em 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:
- WP:Manual of Style#Dashes (or MOS:DASH for short)
- Dash#Types of dash