Knowledge

Template:\

Source 📝

24: 55: 161:
To maintain good linewrapping, there should be no space between the template and whatever precedes it. There's also no need to include a space after the template, although doing so should not affect its function.
776: 395:
The space after the slash is a normal space. That means it wraps (allows line breaks) and it will collapse together with normal spaces that come after the template to form one single space.
299:
If the template is used slightly wrong, it will, in some cases, still behave well. For instance, if there are zero or several spaces after the template, like these examples:
398:
Under some circumstances, slashed link lists misbehave. They might get unexpected line wraps or they might expand outside the box they are enclosed in. The how-to guide:
71: 67: 784: 772: 529:
to prevent wraps in both text and links. For the really tricky wrapping cases when you need full control, for instance in very complex link lists.
812: 507:
to prevent wraps inside links and only allows wraps between the links and in normal text, very useful for link lists and easy to use.
465:, primarily used in the same way as this "slash" template to produce linewrap-friendly textual asides and/or emphasized phrases. 204:
For long slashed lists, each list item can be put on its own line with no spaces between each item and the template, like this:
150: 763: 39: 822: 392:. That means it will not line break and will not collapse together with normal spaces that come before the template. 796: 759: 745: 35: 62: 817: 535: 399: 305:
Both of them will render exactly as before, with just one space on each side of the slash, like this:
43: 339:
However, putting one or more spaces before the template will cause problems, like these examples:
460: 241:(It doesn't matter if there are no or some spaces at the end of the lines, after the templates.) 106:. It is most often used to indicate alternatives within a (horizontal) list of items, such as: 75: 513: 501: 8: 523: 495:
When making dotted lists, you might need to handle proper word wrapping (line breaking):
103: 389: 99: 749: 479: 79: 792: 753: 470: 450: 31: 442: 806: 416: 244:
As before, it will render one space on each side of the slashes, like this:
424: 377: 357: 333: 313: 278: 252: 198: 174: 18: 411:
Other templates using non-breaking spaces to format inline presentation:
430: 538:, the how-to guide detailing how to handle line wrapping at Knowledge. 181: 138: 485:, a template that can be used to create horizontal ("flat") lists. 66:
and changes may be widely noticed. Test changes in the template's
288: 260: 284: 256: 371: 353: 327: 309: 274: 248: 192: 170: 266:
Also, if it line breaks, then the line break will come
455:, used to produce the Unicode-style bullet character. 542: 769:Editors can experiment in this template's sandbox 473:, which addresses h(orizontal) lists in Knowledge. 349:spaces before the slash and one after, like this: 804: 402:, explains when that happens and how to fix it. 184:) is required, the template ensures it occurs 88:This is the "slash" template, which produces " 437:") formerly used to create horizontal lists. 342:] {{\}}] ] {{\}}] ] {{\}} ] ] {{\}} ] 270:one of the slashes, not before, like this: 21: 489: 363:Also, if it line breaks, it might break 805: 78:. Consider discussing changes on the 383: 49: 120:item 3a / 3b / 3c 13: 319:And it will still only line break 294: 14: 834: 813:Character-substitution templates 543:Dot and dash size reference list 388:The space before the slash is a 137:The template is named using the 53: 22: 626:<b>&middot;</b> 63:approximately 31,000 pages 1: 536:Knowledge:Line-break handling 534:For further information, see 433:" template (producing "  400:Knowledge:Line-break handling 600:{{small|'''&middot;'''}} 7: 710:<b>{{bull}}</b> 405: 169: ...produces...  10: 839: 743: 345:Then, it will render with 797:Subpages of this template 104:(forward-)slash character 82:before implementing them. 74:subpages, or in your own 61:This template is used on 823:Inline spacing templates 206: 180:If linewrapping (i.e. a 156: 188:the slash, not before: 791:Add categories to the 570:{{small|&middot;}} 490:Wrap control templates 367:the slash, like this: 323:the slash, like this: 151:slashes cannot be used 27:Template documentation 818:Typing-aid templates 644:{{small|&bull;}} 302:]{{\}}] ]{{\}} ] 652:{{small|{{bull}}}} 618:'''&middot;''' 583:'''&middot;''' 390:non-breaking space 100:non-breaking space 741: 740: 596:small bold middot 384:Technical details 86: 85: 830: 788: 780: 767: 737: 724: 711: 703: 695: 694:'''&bull;''' 692: 677: 669: 666: 653: 645: 642: 634: 627: 619: 616: 601: 593: 584: 571: 563: 553:HTML effect name 547: 546: 528: 522: 518: 512: 506: 500: 484: 478: 464: 454: 446: 428: 420: 237: 234: 231: 228: 225: 222: 219: 216: 213: 210: 168: 148: 144: 97: 94: 91: 57: 56: 50: 47: 28: 26: 25: 838: 837: 833: 832: 831: 829: 828: 827: 803: 802: 801: 800: 790: 782: 770: 768: 757: 742: 735: 722: 709: 704: 701: 696: 693: 690: 675: 670: 667: 664: 651: 646: 643: 640: 632: 625: 620: 617: 614: 599: 589: 582: 569: 561: 545: 526: 520: 516: 510: 504: 498: 492: 482: 476: 458: 448: 440: 422: 414: 408: 386: 343: 303: 297: 295:Incorrect usage 239: 238: 235: 232: 229: 226: 223: 220: 217: 214: 211: 208: 166: 159: 153:in page names. 146: 142: 132: 95: 92: 89: 54: 48: 29: 23: 12: 11: 5: 836: 826: 825: 820: 815: 781:and testcases 754:Template:\/doc 739: 738: 733: 730: 726: 725: 720: 717: 713: 712: 702:'''{{bull}}''' 688: 685: 679: 678: 662: 659: 655: 654: 638: 635: 629: 628: 612: 609: 603: 602: 597: 594: 586: 585: 580: 577: 573: 572: 567: 564: 558: 557: 554: 551: 544: 541: 540: 539: 532: 531: 530: 508: 491: 488: 487: 486: 474: 468: 467: 466: 461:spaced en dash 456: 438: 407: 404: 385: 382: 381: 380: 374: 361: 360: 341: 337: 336: 331: 317: 316: 301: 296: 293: 292: 291: 282: 264: 263: 207: 202: 201: 196: 178: 177: 158: 155: 135: 134: 131: 130: 127: 124: 121: 118: 115: 111: 102:followed by a 84: 83: 58: 20: 19: 9: 6: 4: 3: 2: 835: 824: 821: 819: 816: 814: 811: 810: 808: 798: 794: 786: 778: 774: 765: 761: 755: 751: 747: 746:documentation 734: 731: 728: 727: 721: 718: 715: 714: 707: 699: 689: 686: 684: 681: 680: 673: 663: 660: 657: 656: 649: 639: 636: 631: 630: 623: 613: 610: 608: 605: 604: 598: 595: 592: 588: 587: 581: 578: 575: 574: 568: 565: 560: 559: 555: 552: 549: 548: 537: 533: 525: 515: 509: 503: 497: 496: 494: 493: 481: 475: 472: 469: 462: 457: 452: 444: 439: 436: 432: 426: 418: 413: 412: 410: 409: 403: 401: 396: 393: 391: 379: 375: 373: 370: 369: 368: 366: 359: 355: 352: 351: 350: 348: 340: 335: 332: 329: 326: 325: 324: 322: 315: 311: 308: 307: 306: 300: 290: 286: 283: 280: 276: 273: 272: 271: 269: 262: 258: 254: 250: 247: 246: 245: 242: 205: 200: 197: 194: 191: 190: 189: 187: 183: 176: 172: 165: 164: 163: 154: 152: 140: 133: 128: 125: 122: 119: 116: 113: 112: 109: 108: 107: 105: 101: 81: 77: 73: 69: 65: 64: 59: 52: 51: 45: 41: 37: 33: 17: 16: / 705: 697: 682: 671: 647: 637:small bullet 621: 606: 590: 566:small middot 527:}} 521:{{ 517:}} 514:nowrap begin 511:{{ 505:}} 499:{{ 483:}} 477:{{ 434: 429:, the "bold 397: 394: 387: 364: 362: 346: 344: 338: 320: 318: 304: 298: 267: 265: 243: 240: 203: 185: 179: 173: / 160: 141:character (" 136: 110: 87: 76:user subpage 60: 15: 750:transcluded 736:&mdash; 723:&ndash; 687:bold bullet 611:bold middot 556:Code to use 502:nowraplinks 42:] [ 38:] [ 34:] [ 807:Categories 744:The above 668:&bull; 524:nowrap end 182:line-break 98:", i.e. a 72:/testcases 795:subpage. 139:backslash 80:talk page 676:{{bull}} 480:flatlist 471:WP:HLIST 406:See also 376: / 356: / 68:/sandbox 775:| 764:history 762:| 729:— 716:– 708:  700:  683:• 674:  658:• 650:  633:• 624:  289:Saffron 261:Saffron 167:]{{\}}] 147:  143:  96:  93: / 90:  40:history 789:pages. 785:create 777:mirror 773:create 691:  665:  661:bullet 641:  615:  607:· 591:· 579:middot 576:· 562:· 550:Output 451:bullet 435:· 431:middot 378:Pepper 365:before 358:Pepper 334:Pepper 314:Pepper 279:Pepper 253:Pepper 199:Pepper 175:Pepper 149:") as 126:item 5 123:item 4 117:item 2 114:item 1 752:from 732:mdash 719:ndash 321:after 285:Curry 268:after 257:Curry 186:after 157:Usage 129:(etc) 46:] 44:purge 30:[ 793:/doc 760:edit 372:Salt 354:Salt 328:Salt 310:Salt 275:Salt 249:Salt 193:Salt 171:Salt 36:edit 32:view 748:is 519:... 447:or 425:dot 421:or 347:two 227:]{{ 218:]{{ 209:]{{ 70:or 809:: 756:. 706:or 698:or 672:or 648:or 622:or 463:}} 459:{{ 453:}} 449:{{ 445:}} 441:{{ 427:}} 423:{{ 419:}} 415:{{ 312:/ 287:/ 277:/ 259:/ 255:/ 251:/ 233:}} 224:}} 215:}} 799:. 787:) 783:( 779:) 771:( 766:) 758:( 443:• 417:· 330:/ 281:/ 236:] 230:\ 221:\ 212:\ 195:/ 145:\

Index

view
edit
history
purge
approximately 31,000 pages
/sandbox
/testcases
user subpage
talk page
non-breaking space
(forward-)slash character
backslash
slashes cannot be used
Salt
Pepper
line-break
Salt
Pepper
Salt
Pepper
Curry
Saffron
Salt
Pepper
Curry
Saffron
Salt
Pepper
Salt
Pepper

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