The code for this template

For discussions and motivations why we have the code we have for this template see Template talk:·, since it uses the same or similar code.

--David Göthberg 12:48, 15 August 2007 (UTC)[reply]

Rename to Template:Mdash? (or similar)

It seems like this code should be left alone but renamed to Template:Mdash as a spaced en dash should only be used as a stylistic variation on an em dash. Any spaced en dash should have a non-breaking space before it, and there should be no spaced em dashes. So it makes sense to make this the M dash template. (these rules are all described on WP:DASH) —TedPavlic | (talk) 01:30, 6 January 2009 (UTC)[reply]

Following the discussion at ((mdash)), maybe it's best to rename ((ndash)) to something like ((spacedndash)). —TedPavlic | (talk) 14:57, 6 January 2009 (UTC)[reply]

Wrong spacing

Where neither element has an internal space, this template makes the spacing wrong. It should generally be unspaced. Can someone fix it, or it will need to be discontinued? 1911–13, not 1911–13. Tony (talk) 06:31, 28 September 2009 (UTC)[reply]

In those cases, – (or –) would be used instead of ((ndash)). The ((ndash)) is supposed to handle the spaced case. It's much shorter than  –. Spaced en dashes are used in ranges of spaced elements (e.g., January 4–December 2) or as a stylistic alternative to unspaced em dashes. —TedPavlic (talk/contrib/@) 17:40, 28 September 2009 (UTC)[reply]

Usage

"Also, this template should not routinely be used in regular article text and certainly not where an em-dash would be more appropriate. As a rule, this template should not be used between clauses of a sentence."

Why? I understand not using it instead of an emdash but why can't it be used in normal text to replace  –? McLerristarr | Mclay1 04:34, 18 November 2010 (UTC)[reply]

Just two reasons are that on many browsers it makes the spacing before and after different; and it is misused in many places where a space is proscribed; i.e., 2010–11. The template, in my view, should be deleted. Tony (talk) 07:48, 18 November 2010 (UTC)[reply]

MOS conflict

The examples given for the template contradict the guidance in the Wikipedia Manual of Style "dashes" section and should really be changed accordingly. ► Philg88 ◄ talk 22:36, 9 April 2011 (UTC)[reply]

The examples are not real examples; they're just to illustrate a point. However, this template is not for use in prose; it's for separating items in navboxes and the like in which case the examples are perfectly fine. McLerristarr | Mclay1 03:03, 11 April 2011 (UTC)[reply]

Requested move

The following discussion is an archived discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. No further edits should be made to this section.

The result of the move request was: page moved. I've also created template:spnd as a redirect. Someone make a bot fix the ~1000 articles fast! *grins* UtherSRG (talk) 21:51, 30 March 2012 (UTC)[reply]



Template:NdashTemplate:Spaced ndash – Twice this template has gone to TfD because it is often used incorrectly. The consensus is that it's a useful template and that we should correct misuse, not delete the template entirely. My proposal is to move this template to ((spaced ndash)), then have a bot go and change all instances of ((ndash)) to ((spaced ndash)). Once that is done, ((ndash)) could become what it says on the box, and what many editors expect it be, which is just an en dash. I know that this could cause a little confusion just after the changeover period, but I would be prepared to monitor the usage of the template and let people know that the template has changed if they are still expecting the spaced version. I think in the long run this will reduce confusion and end calls for the template to be deleted. Jenks24 (talk) 03:24, 20 March 2012 (UTC)[reply]

The above discussion is preserved as an archive of a requested move. Please do not modify it. Subsequent comments should be made in a new section on this talk page. No further edits should be made to this section.


Template replacement

Replacements of most ((ndash)) templates have been completed by SD5bot. 11895 pages were edited. Replacement criteria was:

On pages where ((ndash)) was misused (resulting in a replacement by the bot), editors will still need to change ((spaced ndash)) to the appropriate html equivalent (or back to ((ndash)) if it becomes a separate template). Regards, SD5 23:36, 2 April 2012 (UTC)[reply]

so a space after the template is no longer the "recommended usage"? 65.88.89.32 (talk) 00:02, 3 April 2012 (UTC)[reply]
Documentation probably hasn't been updated yet. Also wait to see if ((ndash)) becomes a separate template. SD5 00:11, 3 April 2012 (UTC)[reply]
Thanks for doing this, SD5, I really appreciate it. Regarding the trailing spaces (or lack thereof), take a look at the "Incorrect usage" section of the documentation – it doesn't matter whether there are trailing spaces after this template or not, the same result is produced. I've also had a crack at updating the documentation a little. ((ndash)) is indeed going to become a separate template, producing just and en dash, but are we really sure it's ready to change yet? Looking at Special:WhatLinksHere/Template:Ndash I still see it is used on maybe 2000 pages. I picked one article at random, H. V. Evatt, and I'm struggling to see why the bot didn't replace ((ndash)) with ((spaced ndash)) there? Jenks24 (talk) 04:21, 3 April 2012 (UTC)[reply]
No idea why it wasn't replaced. The bot simply scanned pages shown on "What links here" for ndash, so if the page wasn't scanned it presumably didn't show up on the list for whatever reason. Most of those 2000 probably contain things like total ((ndash)) were. I was told not to replace the ndash template where there were spaces both sides so that when ndash becomes it's own template nothing needs changing back. SD5 18:59, 3 April 2012 (UTC)[reply]
OK. Did you also change over the redirects, such as ((endash)) and (())? What I'm really trying to figure out is when it will be OK to switch over the ((ndash)) template. Jenks24 (talk) 05:05, 4 April 2012 (UTC)[reply]
I'd say, not until Special:WhatLinksHere/Template:Ndash is empty. ― A. di M.​  14:33, 4 April 2012 (UTC)[reply]
But what about articles where that template is currently used incorrectly, but changing the ndash template would be a correction? Jenks24 (talk) 15:35, 4 April 2012 (UTC)[reply]
OK, so let's say, not until Special:WhatLinksHere/Template:Ndash is short enough that someone could check each of them. ― A. di M.​  17:56, 12 April 2012 (UTC)[reply]
As of this timestamp, the 46 remaining transclusions are used as ndashes (without the need for a non-breaking space). DrKiernan (talk) 19:33, 18 April 2012 (UTC)[reply]


This diff is unacceptable. Refactoring other users comments isn't on. Fifelfoo (talk) 23:33, 18 April 2012 (UTC)[reply]

In the diff you provide, DrKiernan changed ((ndash)) to ((spaced ndash)) in another users comment. However, the whole point of this is that ((ndash)) used to "act" like ((spaced ndash)), so I'm not seeing the problem with that edit. SD5 03:07, 22 April 2012 (UTC)[reply]

incorrect redirect

((dash)) redirects to this template. this is incorrect, it should redirect to ((ndash)). spaced ndash is a templated application of a MOS guideline and does not represent an actual dash. 65.88.88.127 (talk) 20:12, 13 May 2012 (UTC)[reply]

Why extra trailing space?

The recommended usage is:
     xxx((snd)) yyy
but:
     xxx((snd))yyy
makes more sense. The template already includes a trailing space – why should we add another? —[AlanM1 (talk)]— 11:25, 7 August 2012 (UTC)[reply]

I dunno – perhaps to allow the WikiText in the edit box to wrap after each item of a long list? As you can see in the WikiText for the previous sentence, I usually omit it, too. — A. di M.  11:28, 8 August 2012 (UTC)[reply]

Why use HTML characters instead of the actual characters?

Why are the HTML characters – and   used instead of the "–" and " " characters themselves? When substituting this template, it would make for more readable text in edit mode with the actual characters, e.g.:

lorem – ipsum

instead of

lorem – ipsum

—[AlanM1 (talk)]— 21:29, 22 August 2012 (UTC)[reply]

Entities are used to ensure they survive ohter templates they may transclude through. If regular spaces were used and used in another template, the parser might see them as extranious and remove them. Edokter (talk) — 07:47, 23 August 2012 (UTC)[reply]
In general, I understand there can be an issue with multiple trailing spaces being compressed to one space, though this should not present a problem in this case, since the one space would remain, and the MOS says to use a single space between the endash and the word that follows (in the case of a spaced endash).

I created my own User:AlanM1/Template/Snd, using the actual endash and space characters, and then created templates that both substitute and transclude it, and used the various combinations here:

Trans Subst
A – C A – C
A – C A – C
A – C A – C
A – C A – C
A – C A – C
A – C A – C
I cannot get it to fail in any of these situations. —[AlanM1 (talk)]— 05:04, 24 August 2012 (UTC)[reply]
Parser function may be a different story; they are notorious with spaces (even single ones!). However, this template is not ment to be substituted, and with the nbsp also being there, I do not see an issue. Edokter (talk) — 07:31, 24 August 2012 (UTC)[reply]
Perhaps I am missing something, but all I'm trying to do is have an easy way to insert a spaced endash (without having to type  , scroll down to the list below the edit window, move my hand to the mouse to click on the endash, etc.). I do this with a keyboard macro that sends "((subst:snd))". Now, I suppose I could just as easily set the macro to send " ((subst:ndash)) ", but its doc page says it's deprecated, so... I guess I'll just set it to use my own version when I know that it won't be used in anything that could break. —[AlanM1(talk)]— 20:25, 24 August 2012 (UTC)[reply]
Why not simply set your macro to send " – "? Edokter (talk) — 20:30, 24 August 2012 (UTC)[reply]
Hmmm. I didn't think it was possible to compose that character on Windows PC keyboard, since it is U+2013, but apparently Alt-0-1-5-0 will produce it, at least in the WP editor. Cool. Thanks. —[AlanM1(talk)]— 20:50, 24 August 2012 (UTC)[reply]

"Incorrect" use..?

According to the current documentation, [[Salt]]((spaced ndash))[[Pepper]] (i.e. no space between the template's closing braces and subsequent word) is an incorrect use of the template (that "still behave[s] well"). Why is this incorrect..? Sardanaphalus (talk) 12:33, 9 August 2014 (UTC)[reply]
PS Just realized this thread above asks the same – if, therefore, there's no objection, I'm inclined to remove this description from the documentation. Sardanaphalus (talk) 12:37, 9 August 2014 (UTC)[reply]

Requested move 29 June 2015

The following is a closed discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review. No further edits should be made to this section.

The result of the move request was: moved by Anthony Appleyard (talk · contribs). Jenks24 (talk) 01:56, 6 July 2015 (UTC)[reply]



Template:Spaced ndashTemplate:Spaced en dash – Align with ((Em dash)) and ((En dash)). – Alakzi (talk) 17:58, 29 June 2015 (UTC)[reply]

This is a contested technical request (permalink). EdJohnston (talk) 00:11, 30 June 2015 (UTC)[reply]

The above discussion is preserved as an archive of a requested move. Please do not modify it. Subsequent comments should be made in a new section on this talk page or in a move review. No further edits should be made to this section.

COinS

The HTML output of ((Spaced en dash)) is identical to the output given[1] when hardcoding the template’s contents ( – ). Is there another reason why this template is considered COinS‑unsafe? —LLarson (said & done) 23:56, 7 February 2016 (UTC)[reply]

  1. ^
    Markup Renders as
    ((cite book |author=Juice – Queen of Hearts |title=Title – Subtitle))

    Juice – Queen of Hearts. Title – Subtitle.((cite book)): CS1 maint: multiple names: authors list (link) CS1 maint: numeric names: authors list (link)
    '"`UNIQ--templatestyles-00000021-QINU`"'<cite id="CITEREFJuice_–_Queen_of_Hearts" class="citation book cs1">Juice&nbsp;&ndash;&#32;Queen of Hearts. ''Title&nbsp;&ndash;&#32;Subtitle''.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Title+%26ndash%3B%26%2332%3BSubtitle&rft.au=Juice+%26ndash%3B%26%2332%3BQueen+of+Hearts&rfr_id=info%3Asid%2Fen.wikipedia.org%3ATemplate+talk%3ASpaced+en+dash" class="Z3988"></span><span class="cs1-maint citation-comment"><code class="cs1-code">(([[Template:cite book|cite book]]))</code>: CS1 maint: multiple names: authors list ([[:Category:CS1 maint: multiple names: authors list|link]]) CS1 maint: numeric names: authors list ([[:Category:CS1 maint: numeric names: authors list|link]])</span>

    ((cite book |author=Juice((Spaced en dash))Queen of Hearts             |title=Title((Spaced en dash))Subtitle))

    Juice – Queen of Hearts. Title – Subtitle.((cite book)): CS1 maint: multiple names: authors list (link) CS1 maint: numeric names: authors list (link)
    '"`UNIQ--templatestyles-00000025-QINU`"'<cite id="CITEREFJuice_–_Queen_of_Hearts" class="citation book cs1">Juice&nbsp;&ndash;&#32;Queen of Hearts. ''Title&nbsp;&ndash;&#32;Subtitle''.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=Title+%26ndash%3B%26%2332%3BSubtitle&rft.au=Juice+%26ndash%3B%26%2332%3BQueen+of+Hearts&rfr_id=info%3Asid%2Fen.wikipedia.org%3ATemplate+talk%3ASpaced+en+dash" class="Z3988"></span><span class="cs1-maint citation-comment"><code class="cs1-code">(([[Template:cite book|cite book]]))</code>: CS1 maint: multiple names: authors list ([[:Category:CS1 maint: multiple names: authors list|link]]) CS1 maint: numeric names: authors list ([[:Category:CS1 maint: numeric names: authors list|link]])</span>