Template:Spaced en dash/doc

From Timelines
< Template:Spaced en dash
Revision as of 07:42, 23 May 2007 by David Kernow (talk) (expanded)
Jump to: navigation, search

Template:Template doc page viewed directly This template substitutes for the html markup sequence &nbsp;&ndash;, i.e. a short dash ("–") preceded by a non-breaking space.

Use

...blah{{ndash}} blah...
produces
...blahTemplate:Ndash blah...

Examples

Two possible uses for this template are (1) to avoid linewrap before a dash within a sentence, i.e.

...blah blah blah –
blah blah...

rather than

...blah blah blah
– blah blah...

...and (2) as a stronger list separator than the bold middot used by the {{·}} template. For something even stronger than {{ndash}}, try {{mdash}}, which uses the slightly longer mdash character ("—").