Template:Em dash/doc
Appearance
This is a documentation subpage for Template:Em dash. It may contain usage information, categories and other content that is not part of the original template page. |
This template is safe for use in citation templates that produce COinS metadata; see Wikipedia:COinS. If HTML or other markup is added, then the template must be reevaluated. |
This template is used on approximately 15,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
[edit]This template produces an em dash (—). It is longer than both a hyphen (-) and an en dash (–). The primary uses of an em dash are:
- To link clauses, as an alternative to a colon or semicolon (eg. Three alkali metals are the usual substituents—sodium, potassium, and lithium.)
- To set off a phrase or list, as an alternative to a pair of commas or parentheses (eg. Three alkali metals—sodium, potassium, and lithium—are the usual substituents.)
For further detail on dash usage, see MOS:DASH.
TemplateData
[edit]This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Em dash in articles based on its TemplateData.
TemplateData for Em dash
Generates an em dash (—) character.
See also
[edit]- {{En dash}}