Template:Spaced en dash/doc: Difference between revisions
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) No edit summary |
||
Line 7:
This is the '''spaced en dash''' template; it renders like this (without the quote marks): " – "
It works similarly to the HTML markup sequence <code>'''&nbsp;&ndash;''' </code> i.e. a [[Wikipedia:non-breaking space]] (which will not line-break and will not collapse together with normal spaces that come before the template), a short dash (known as an [[Wikipedia:Dash#En dash|en dash]]), and a normal space (which ''will'' line-break and ''will'' collapse together with normal spaces that come after the template).
Among other uses, this template may be used in lists to provide something stronger than a [[Template:·|bold middot]] "'''·'''" or a [[Template:•|bullet]] "•", but shorter than an [[Wikipedia:Dash#Em dash|em dash]] "—". For horizontal lists, use {{tl|flatlist}} or <code>class="hlist"</code> instead (see [[Wikipedia:WP:HLIST]]). Here, the recommended usage is to use ''no'' space before the template and one space after the template, like this:
::<nowiki>[[Wikipedia:Salt]]{{spaced en dash}} [[Wikipedia:Pepper]]</nowiki>
:This will render one space on each side of the dash, like this:
| |||