21:
86:
1015:
and the other helper templates should not have any spaces or newlines before them or they will render two spaces before the dot. They tolerate anything from no to several spaces and even a newline after them and they will still only render one space after the dot. If a wrap occurs then the wrap will
47:
This template prevents word wraps (line breaks) in text and links with spaces in. It is designed to handle the really tricky wrapping cases where you need full control. It works similarly to
589:
Here are the above examples in actual running code in a table. Try dragging the width of your web browser window so it becomes smaller and smaller and watch how the line wrapping behaves:
1073:
1265:
36:
1298:
1261:
32:
1059:
1136:
prevents wraps in both text and links. For the trickier wrapping cases when you need full control, for instance in very complex link lists.
397:
To make your code readable and easy to edit, you can put each wrappable "line" on its own line. And let's use some dots too. Like this:
40:
1314:
1247:
1066:
1114:
prevents wraps inside links while allowing wraps between links and in normal text. Very useful for link lists and easy to use.
142:
This template has a number of helper templates which allows you to tell the web browser exactly where line breaks may occur:
1294:
1255:
28:
1049:
and the other helper templates only have this problem if the section is bolded and italicised at the same time.
1229:
1172:
does the same and allows further style customization, but does not automatically add the "avoidwrap" CSS class.
1108:
1204:
1092:
prevents wrapping within a single template (i.e. not suitable for relatively complex or lengthy content).
1166:
130:
set has been made ambient, while hlist provides a more appropriate structure and improved accessibility.
1142:
1098:
1029:
causes problems if inside sections of bolded and/or italicised text. Do end the bold text before the
61:
1154:
1130:
162:
107:
71:
1235:
In particular, to avoid line wrapping when quoting a passage such as a poem or computer code, see
1251:
1180:
1086:
111:
100:
51:
1219:
1043:
1236:
1308:
1215:
1192:
1033:
1023:
1009:
175:
118:
899:
871:
836:
792:
764:
729:
671:
660:
632:
604:
550:
544:
500:
494:
380:
362:
333:
315:
1160:
prevents wraps unless the space is too narrow to display the text on one line.
1223:
15:
1016:
come after the dot, even if there are spaces before the helper template.
917:
885:
853:
810:
778:
746:
701:
690:
646:
618:
574:
566:
522:
516:
390:
372:
343:
325:
1198:
can be used to provide a (brief) exception within a no-wrapping area.
67:. This template takes no parameters; instead, it works in tandem with
906:
878:
842:
799:
771:
735:
686:
675:
639:
611:
562:
556:
512:
504:
386:
366:
339:
319:
148:
These helper templates may only be used in sections surrounded by
1232:, Knowledge's how-to guide about word wrapping and line breaks.
928:
892:
864:
830:
821:
785:
757:
723:
705:
656:
625:
597:
578:
540:
526:
490:
376:
358:
329:
311:
79:
1239: – e.g. Template:Blockquote with "poem" tag.
1039:
and continue the bold text after it to avoid the problems.
943:
The actual code that does the job is this HTML+CSS code:
1186:
produces multiple non-breaking spaces (or a single one).
1286:
1278:
1274:
1210:
allows links to wrap when they otherwise would not.
715:An example demonstrating all the helper templates:
1271:Editors can experiment in this template's sandbox
1148:prevents wraps for both two adjacent characters.
168:or they may cause weird behaviour of your page.
181: – Marks where a wrap may occur.
1067:
8:
1074:
1060:
124:. The nowrap behaviour implemented by the
106:and similar templates is deprecated; see
717:
591:
7:
486:It will render something like this:
307:It will render something like this:
114:and, when occasionally necessary,
14:
1237:Template:Quote § Line breaks
84:
19:
127:{{nowrap}}
96:The use of these templates in
1:
1222:, spaced and wrap-sensitive
108:Template:Navbox/doc#See also
1331:
1245:
1299:Subpages of this template
1256:Template:Nowrap begin/doc
1220:{{•}}
1216:{{·}}
1230:Help:Line-break handling
945:
399:
189:
1315:Line-handling templates
1293:Add categories to the
24:Template documentation
993:More text and links
960:"nowrap"
888: –
881: –
874: •
867: •
781: –
774: –
767: •
760: •
536:render like this:
354:render like this:
1226:(dot) and bullet.
939:Technical details
936:
935:
713:
712:
135:
134:
1322:
1290:
1282:
1269:
1209:
1203:
1197:
1191:
1185:
1179:
1171:
1165:
1159:
1153:
1147:
1141:
1135:
1129:
1125:
1119:
1113:
1107:
1103:
1097:
1091:
1085:
1076:
1069:
1062:
1048:
1042:
1038:
1032:
1028:
1022:
1014:
1008:
1002:
999:
996:
992:
989:
986:
983:
980:
979:"wrap"
977:
974:
971:
968:
964:
961:
958:
955:
952:
949:
931:
927:
916:
905:
898:
891:
884:
877:
870:
863:
852:
841:
835:
824:
820:
809:
798:
791:
784:
777:
770:
763:
756:
745:
734:
728:
718:
708:
700:
685:
670:
650:
645:
638:
631:
624:
617:
610:
603:
592:
482:
479:
476:
473:
469:
466:
463:
460:
457:
454:
450:
447:
444:
441:
438:
435:
431:
428:
425:
422:
419:
416:
412:
409:
406:
403:
303:
300:
297:
293:
290:
287:
284:
280:
277:
274:
271:
267:
264:
261:
258:
254:
251:
248:
245:
241:
238:
235:
232:
228:
225:
222:
219:
215:
212:
209:
206:
202:
199:
196:
193:
180:
174:
167:
161:
157:
151:
138:Helper templates
129:
128:
123:
117:
105:
99:
88:
87:
80:
76:
70:
66:
60:
56:
50:
44:
25:
23:
22:
1330:
1329:
1325:
1324:
1323:
1321:
1320:
1319:
1305:
1304:
1303:
1302:
1292:
1284:
1272:
1270:
1259:
1244:
1207:
1201:
1195:
1189:
1183:
1177:
1169:
1163:
1157:
1151:
1145:
1139:
1133:
1127:
1123:
1117:
1111:
1109:nowraplinks end
1105:
1101:
1095:
1089:
1083:
1080:
1055:
1046:
1040:
1036:
1030:
1026:
1020:
1012:
1006:
1004:
1003:
1000:
997:
994:
990:
987:
984:
981:
978:
975:
972:
969:
966:
965:Text and links
962:
959:
956:
953:
950:
947:
941:
925:
914:
903:
896:
889:
882:
875:
868:
861:
850:
839:
833:
829:
818:
807:
796:
789:
782:
775:
768:
761:
754:
743:
732:
726:
722:
698:
683:
668:
655:
643:
636:
629:
622:
615:
608:
601:
596:
587:
484:
483:
480:
477:
474:
471:
467:
464:
461:
458:
455:
452:
448:
445:
442:
439:
436:
433:
429:
426:
423:
420:
417:
414:
410:
407:
404:
401:
305:
304:
301:
298:
295:
291:
288:
285:
282:
278:
275:
272:
269:
265:
262:
259:
256:
252:
249:
246:
243:
239:
236:
233:
230:
226:
223:
220:
217:
213:
210:
207:
204:
200:
197:
194:
191:
188:
178:
172:
165:
159:
155:
149:
140:
131:
126:
125:
121:
115:
103:
97:
89:
85:
74:
68:
64:
58:
54:
48:
45:
26:
20:
18:
12:
11:
5:
1328:
1326:
1318:
1317:
1307:
1306:
1283:and testcases
1243:
1242:
1241:
1240:
1227:
1213:
1212:
1211:
1205:normalwraplink
1187:
1175:
1174:
1173:
1149:
1137:
1115:
1093:
1079:
1078:
1071:
1064:
1056:
1054:
1051:
946:
940:
937:
934:
933:
826:
711:
710:
652:
586:
583:
582:
581:
569:
553:
530:
529:
510:
400:
395:
394:
383:
369:
348:
347:
337:
323:
190:
187:
184:
183:
182:
139:
136:
133:
132:
92:
90:
83:
17:
16:
13:
10:
9:
6:
4:
3:
2:
1327:
1316:
1313:
1312:
1310:
1300:
1296:
1288:
1280:
1276:
1267:
1263:
1257:
1253:
1249:
1248:documentation
1238:
1234:
1233:
1231:
1228:
1225:
1221:
1217:
1214:
1206:
1200:
1199:
1194:
1188:
1182:
1176:
1168:
1162:
1161:
1156:
1150:
1144:
1138:
1132:
1122:
1116:
1110:
1100:
1094:
1088:
1082:
1081:
1077:
1072:
1070:
1065:
1063:
1058:
1057:
1052:
1050:
1045:
1035:
1025:
1017:
1011:
944:
938:
932:
930:
923:
919:
912:
908:
901:
894:
887:
880:
873:
866:
859:
855:
848:
844:
838:
832:
827:
825:
823:
816:
812:
805:
801:
794:
787:
780:
773:
766:
759:
752:
748:
741:
737:
731:
725:
720:
719:
716:
709:
707:
703:
696:
692:
688:
681:
677:
673:
666:
662:
658:
653:
651:
648:
641:
634:
627:
620:
613:
606:
599:
594:
593:
590:
584:
580:
576:
573:
570:
568:
564:
561:
558:
554:
552:
549:
546:
542:
539:
538:
537:
535:
528:
524:
521:
518:
514:
511:
509:
506:
502:
499:
496:
492:
489:
488:
487:
398:
392:
388:
384:
382:
378:
374:
370:
368:
364:
360:
357:
356:
355:
353:
345:
341:
338:
335:
331:
327:
324:
321:
317:
313:
310:
309:
308:
185:
177:
171:
170:
169:
164:
154:
147:
143:
137:
120:
113:
109:
102:
95:
91:
82:
81:
78:
73:
63:
53:
42:
38:
34:
30:
1208:}}
1202:{{
1196:}}
1190:{{
1184:}}
1178:{{
1170:}}
1167:inline block
1164:{{
1158:}}
1152:{{
1146:}}
1140:{{
1134:}}
1128:{{
1124:}}
1121:nowrap begin
1120:
1118:{{
1112:}}
1106:{{
1102:}}
1096:{{
1090:}}
1084:{{
1047:}}
1041:{{
1037:}}
1031:{{
1027:}}
1021:{{
1018:
1013:}}
1007:{{
1005:
942:
921:
910:
857:
846:
828:
814:
803:
750:
739:
721:
714:
694:
679:
664:
654:
595:
588:
571:
559:
547:
533:
532:But it will
531:
519:
507:
497:
485:
405:nowrap begin
396:
351:
350:But it will
349:
306:
195:nowrap begin
179:}}
173:{{
166:}}
160:{{
156:}}
153:nowrap begin
152:
150:{{
145:
144:
141:
122:}}
116:{{
104:}}
98:{{
93:
75:}}
69:{{
65:}}
59:{{
55:}}
49:{{
46:
1252:transcluded
1143:word joiner
1099:nowraplinks
112:hlist class
62:nowraplinks
39:] [
35:] [
31:] [
1246:The above
1224:interpunct
1155:avoid wrap
1131:nowrap end
478:nowrap end
299:nowrap end
163:nowrap end
110:. Use the
72:nowrap end
1297:subpage.
1309:Category
1053:See also
585:Examples
1277:|
1266:history
1264:|
918:Saffron
886:Saffron
854:Saffron
811:Saffron
779:Saffron
747:Saffron
702:Saffron
691:Saffron
647:Saffron
619:Saffron
575:Saffron
567:Saffron
523:Saffron
517:Saffron
391:Saffron
373:Saffron
344:Saffron
326:Saffron
37:history
1291:pages.
1287:create
1279:mirror
1275:create
1181:spaces
1087:nowrap
922:·
920:
911:·
909:
900:Pepper
872:Pepper
858:·
856:
847:·
845:
837:Pepper
815:·
813:
804:·
802:
793:Pepper
765:Pepper
751:·
749:
740:·
738:
730:Pepper
695:·
693:
680:·
678:
672:Pepper
665:·
663:
661:Pepper
633:Pepper
605:Pepper
551:Pepper
545:Pepper
501:Pepper
495:Pepper
381:Pepper
363:Pepper
334:Pepper
316:Pepper
101:Navbox
52:nowrap
1254:from
995:</
985:</
973:class
954:class
926:
924:
915:
913:
907:Curry
904:
897:
890:
883:
879:Curry
876:
869:
862:
860:
851:
849:
843:Curry
840:
834:
819:
817:
808:
806:
800:Curry
797:
790:
783:
776:
772:Curry
769:
762:
755:
753:
744:
742:
736:Curry
733:
727:
699:
697:
687:Curry
684:
682:
676:Curry
669:
667:
644:
640:Curry
637:
630:
623:
616:
612:Curry
609:
602:
563:Curry
557:Curry
513:Curry
505:Curry
387:Curry
367:Curry
340:Curry
320:Curry
186:Usage
146:Note:
94:Note:
43:]
41:purge
27:[
1295:/doc
1262:edit
1218:and
1193:wrap
1126:...
1104:...
1075:edit
1068:talk
1061:view
1019:The
1001:>
998:span
991:>
988:span
982:>
970:span
967:<
963:>
951:span
948:<
929:Salt
893:Salt
865:Salt
831:Salt
822:Salt
786:Salt
758:Salt
724:Salt
706:Salt
704:and
689:and
674:and
659:and
657:Salt
626:Salt
598:Salt
579:Salt
577:and
565:and
555:and
543:and
541:Salt
527:Salt
525:and
515:and
503:and
493:and
491:Salt
470:and
462:wrap
459:}}{{
451:and
443:wrap
440:}}{{
432:and
424:wrap
421:}}{{
413:and
389:and
385:and
379:and
377:Salt
371:and
365:and
361:and
359:Salt
342:and
332:and
330:Salt
318:and
314:and
312:Salt
286:wrap
273:wrap
260:wrap
247:wrap
234:wrap
221:wrap
208:wrap
176:wrap
158:and
119:wrap
57:and
33:edit
29:view
1250:is
642:and
635:and
628:and
614:and
607:and
600:and
534:not
453:]{{
434:]{{
415:]{{
352:not
336:and
322:and
281:and
268:and
255:and
229:and
216:and
203:and
1311::
1258:.
649:.
481:}}
475:{{
465:}}
446:}}
427:}}
408:}}
402:{{
375:.
328:.
302:}}
296:{{
294:.
289:}}
283:{{
276:}}
270:{{
263:}}
257:{{
250:}}
244:{{
237:}}
231:{{
224:}}
218:{{
211:}}
205:{{
198:}}
192:{{
77:.
1301:.
1289:)
1285:(
1281:)
1273:(
1268:)
1260:(
1044:•
1034:·
1024:·
1010:·
976:=
957:=
902:|
895:|
795:|
788:|
621:.
572:·
560:·
548:·
520:·
508:·
498:·
472:]
468:]
456:·
449:]
437:·
430:]
418:·
411:]
393:.
346:.
292:]
279:]
266:]
253:]
242:.
240:]
227:]
214:]
201:]
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.