Knowledge (XXG)

Template:Spaced en dash

Source 📝

370: , or  – symbol, they can use any of these as a simple macro. The idea being that if you have a table with a list of items, you can insert a spaced short dash (or the other symbols) between items that will appear correct, in that the items always have just one separator between them, and when a list crawls to the next line, the dash hangs onto the prior item instead of rolling over to the next line. Notice on the end of this box, the symbol hangs on the end of the last item that will fit on the line indicating that additional items follow on the next line as part of this list, but the item only stays on the line if the item and the dash will fit. See the column on the right. In code it is 35: 98: 66: 381:
Item1 – A – B – Item2 – Item3 – Item4 – Item5 – extra item – E – 1 – 2 – 3 – 4 –
386:
Q – A slightly longer item – KK – An obviously really even longer item that the dash will hang at its end – Item6 – C – Item7 – Item8 – Item9 –
374:
etc. (with some smaller items squeezed in to show that the list does not have to be the same number of items per line) but in the box they all fold perfectly once it runs out of space on the line to fit the next item and the dash following.
387:
Item10 – Item11 – Item12 – D – Item13 – Item14 – Item15 – Item16 – Item17 – Item18
345:
One use of template "spaced en dash" is within other templates, tables, lists, and similar things to provide a separator between items. It is also to be consistent so that the article editor can use their choice of
219:
Typical uses of dashes are to mark a break in a sentence, or to set off an explanatory remark (similar to parenthesis), or to show spans of time or ranges of values. The
627: 50: 660: 623: 46: 686: 54: 609: 204:(which will not line-break and will not collapse together with normal spaces that come before the template), a short dash (known as an 676: 681: 124: 372:
Item1{{spaced en dash}} Item2{{spaced en dash}} Item3{{spaced en dash}} Item4{{spaced en dash}} Item5{{spaced en dash}}
116: 656: 617: 42: 112: 231:
for the same purpose). Among other uses, this template may be used in lists to provide something stronger than a
193:; it renders like this (without the quote marks): " – " It works similarly to the HTML markup sequence 120: 76: 72: 134: 224: 123:. The tested changes can be added to this page in a single edit. Consider discussing changes on the 201: 268: 84: 613: 251: 65: 551: 535: 489: 473: 384:
item that won't attach to prior line unless it fits in the remaining space –
572:
Inserts a spaced en dash; it renders like this (without the quote marks): " – ".
447: 421: 111:
To avoid major disruption and server load, any changes should be tested in the template's
520: 240: 261: 220: 227:" typography (older British and recent American typography generally uses an unspaced 670: 506: 232: 389:
The space on the end makes sure the dash doesn't touch the edge of the box, either.
311: 293: 526: 304:
one of the dashes, not before, when the spacing is used as suggested, like this:
510: 105: 17: 379:
Normally, in a real box these items would be links, but this is an example.
29: 558: 542: 321: 275:
space before the template and one space after the template, like this:
228: 216:
collapse together with normal spaces that come after the template).
317: 80: 564: 307: 289: 286:
This will render one space on each side of the dash, like this:
244: 205: 71:
This template should not be used in citation templates such as
92: 60: 523:, which produces a spaced bullet-point: " • " 382:
5 – 6 – 7 –
529:, which produces a spaced (forward-)slash: " / " 648: 640: 636: 179: 170: 161: 152: 143: 362:
and not have to insert the  • ,  
79:, because it includes markup that will pollute the 633:Editors can experiment in this template's sandbox 8: 569: 575: 271:). Here, the recommended usage is to use 336: 247:"—". For horizontal lists, use 7: 340:Here's an example of use for lists 223:is generally preferred in modern " 25: 687:Character-substitution templates 106:approximately 240,000 pages 96: 64: 33: 557:, which produces an (unspaced) 541:, which produces an (unspaced) 509:, which produces a spaced bold 243:"•", but shorter than an 1: 208:), and a normal space (which 618:Template:Spaced en dash/doc 565:Dash#En dash versus em dash 331:{{snd}} 83:metadata they produce; see 703: 607: 485: 469: 461: 443: 435: 416: 406: 132: 661:Subpages of this template 599: 583: 527:{{\}} 521:{{•}} 507:{{·}} 339: 127:before implementing them. 119:subpages, or in your own 104:This template is used on 677:Inline spacing templates 600:No parameters specified 300:A line break will come 191:spaced en dash template 655:Add categories to the 38:Template documentation 281:]{{spaced en dash}} ] 196: – 85:Knowledge (XXG):COinS 682:Typing-aid templates 334:is a handy synonym. 225:Commonwealth English 605: 580: 578:Template parameters 513:("middot"): "  27: – 576: 574: 360:{{spaced en dash}} 202:non-breaking space 604: 603: 596: 570: 498: 497: 433: 394: 393: 131: 130: 91: 90: 16:(Redirected from 694: 652: 644: 631: 597: 581: 556: 550: 540: 534: 494: 488: 478: 472: 452: 446: 431: 426: 420: 401: 400: 385: 337: 333: 332: 266: 260: 256: 250: 199: 182: 173: 164: 155: 146: 100: 99: 93: 77:Citation Style 2 73:Citation Style 1 68: 61: 58: 39: 37: 36: 21: 702: 701: 697: 696: 695: 693: 692: 691: 667: 666: 665: 664: 654: 646: 634: 632: 621: 606: 554: 548: 538: 532: 503: 492: 486: 476: 470: 450: 444: 424: 418: 399: 383: 330: 329: 264: 258: 254: 248: 212:line-break and 194: 187: 186: 178: 169: 160: 151: 142: 137: 110: 97: 59: 40: 34: 32: 23: 22: 15: 12: 11: 5: 700: 698: 690: 689: 684: 679: 669: 668: 645:and testcases 602: 601: 595: 594: 591: 588: 585: 568: 567: 562: 546: 530: 524: 518: 502: 499: 496: 495: 484: 480: 479: 468: 464: 463: 460: 454: 453: 442: 438: 437: 434: 428: 427: 415: 409: 408: 405: 398: 395: 392: 391: 376: 342: 341: 327: 326: 325: 324: 315: 298: 297: 296: 284: 283: 282: 221:spaced en dash 185: 184: 175: 166: 157: 148: 138: 133: 129: 128: 101: 89: 88: 69: 31: 30: 24: 14: 13: 10: 9: 6: 4: 3: 2: 699: 688: 685: 683: 680: 678: 675: 674: 672: 662: 658: 650: 642: 638: 629: 625: 619: 615: 611: 610:documentation 598: 592: 589: 586: 582: 579: 573: 566: 563: 560: 553: 547: 544: 537: 531: 528: 525: 522: 519: 516: 512: 508: 505: 504: 500: 491: 482: 481: 475: 466: 465: 459: 456: 455: 449: 440: 439: 436:small bullet 430: 429: 423: 414: 411: 410: 403: 402: 396: 390: 380: 377: 373: 369: 366: ,   365: 361: 357: 353: 349: 344: 343: 338: 335: 323: 319: 316: 313: 309: 306: 305: 303: 299: 295: 291: 288: 287: 285: 280: 279: 278: 277: 276: 274: 270: 267:instead (see 263: 253: 246: 242: 238: 234: 230: 226: 222: 217: 215: 211: 207: 203: 197: 192: 181: 176: 172: 167: 163: 158: 154: 149: 145: 140: 139: 136: 126: 122: 118: 114: 108: 107: 102: 95: 94: 86: 82: 78: 74: 70: 67: 63: 62: 56: 52: 48: 44: 28: 19: 577: 571: 555:}} 549:{{ 539:}} 533:{{ 514: 493:}} 487:{{ 477:}} 471:{{ 462:bold bullet 457: 451:}} 445:{{ 425:}} 419:{{ 412: 388: 378: 371: 367: 363: 359: 355: 351: 347: 328: 301: 272: 265:}} 259:{{ 255:}} 249:{{ 236: 218: 213: 209: 195: 190: 189:This is the 188: 183:}} 177:{{ 174:}} 168:{{ 165:}} 159:{{ 156:}} 150:{{ 147:}} 141:{{ 121:user subpage 103: 26: 18:Template:Snd 614:transcluded 587:Description 233:bold middot 53:] [ 49:] [ 45:] [ 671:Categories 608:The above 511:interpunct 356:{{middot}} 117:/testcases 659:subpage. 584:Parameter 397:Dot sizes 135:Shortcuts 125:talk page 501:See also 483:— 467:– 348:{{bull}} 320:– 310:– 292:– 269:WP:HLIST 252:flatlist 113:/sandbox 639:| 628:history 626:| 559:em dash 552:em dash 543:en dash 536:en dash 490:em dash 474:en dash 407:middot 352:{{dot}} 322:Saffron 314:– 245:em dash 239:" or a 229:em dash 206:en dash 200:i.e. a 180:spndash 51:history 653:pages. 649:create 641:mirror 637:create 593:Status 517: " 515:· 448:bullet 422:middot 368:· 364:· 358:, or 312:Pepper 294:Pepper 241:bullet 237:· 198:  171:sndash 616:from 417:bold 318:Curry 302:after 262:Hlist 81:COinS 57:] 55:purge 41:[ 657:/doc 624:edit 590:Type 308:Salt 290:Salt 214:will 210:will 162:spnd 144:dash 75:and 47:edit 43:view 612:is 257:or 153:snd 115:or 673:: 620:. 441:• 404:· 354:, 350:, 273:no 87:. 663:. 651:) 647:( 643:) 635:( 630:) 622:( 561:. 545:. 458:• 432:• 413:· 235:" 109:. 20:)

Index

Template:Snd
view
edit
history
purge

Citation Style 1
Citation Style 2
COinS
Knowledge (XXG):COinS
approximately 240,000 pages
/sandbox
/testcases
user subpage
talk page
Shortcuts
dash
snd
spnd
sndash
spndash
non-breaking space
en dash
spaced en dash
Commonwealth English
em dash
bold middot
bullet
em dash
flatlist

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.