21:
776:
52:
92:
909:
That is, choose your style and title as usual (or omit the title with two pipes), but instead of actual content, write "DUMMYCONTENT". Then, save the page and reopen it for editing. You'll see the box code in all its gory detail, and the placeholder DUMMYCONTENT, followed by the HTML division closing
430:
Radius of the rounded edges, along with a valid unit, such as px, pt or em. The parameter works on styles that innately have both sharp or round edges, overriding their default edge roundness. You can forgo this entire parameter and its value; but if used, you cannot omit "radius=", which is case
832:
does not take effect in preview, but only after saving a page. The template's inclusion is replaced by the code of the template itself, which will continue to write the box as before, but without an additional server call.
203:
provides a straightforward method of presenting any text within a box. Colors are selected using a private style keyword, which sets both box border and background, already chosen to work together, in a visual sense.
994:
There are a couple of good reasons for specifying these values, and in these units. Most users who "roll their own" make choices with unintended consequences; {divbox} is meant to help you avoid these pitfalls.
423:
Mandatory. Any text, including markup, that is to form the body of the message. You can forgo "3=", as long as this is the third unnamed parameter in the list, and the content does not contain an equals sign
926:
I'd rather hope you were able to find joy within the existing set of styles, but if not, you can create new ones. Follow these instructions to be sure your new style will "play nice" with {{
950:
1026:
1203:
119:
Please note that this is intended to be a decorative template and not for use on the general encyclopedia. It will not display on articles.
850:
there remains a "live" call to the underlying style template. This means that viewing the page risks a server call to the style template,
211:
puts your content inside an invisible box. This is available to offer the identical box model for your content, without a visible box.
1214:
1199:
1242:
1187:
36:
795:. Please help update this template to reflect recent events or newly available information. Relevant discussion may be found on
431:
sensitive. However, like any named parameter, it may appear in any position (i.e. it does not need to be the last parameter).
918:, save, and move on. Since almost anything may be placed within division tags, this should not break no matter what you do.
846:
itself calls a template based on your choice of style keyword, you will find that even after saving an instance of use with
663:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
630:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
584:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
538:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
492:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
456:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
1226:
1183:
32:
885:
1163:}}, a simple full-width box with default ivory background intended to frame important messages or notices.
59:
1169:
1019:
946:, and decide what colors you want for your new box style. You need to find out the HTML color codes for each color.
854:
also means that changes to the style template automatically propagate to all pages where it is used. This way, all
187:
Boxes may not always be appropriate; they can be obtrusive. But when boxes are used, they are generally formatted
699:
dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
971:
Paste in the "borrowed" code and replace the color codes with your new, chosen colors. Save the new template.
40:
874:
Since the contents are given in the form of two parameter values, for the content you may place within
783:
105:
1209:
1160:
793:
substing the current version leaves behind if statements, category checks, and other undesirable code
417:
and centered at top. You can forgo "2=", as long as this is the second unnamed parameter in the list.
70:
77:. The tested changes can be added to this page in a single edit. Consider discussing changes on the
1194:
66:
98:
1247:
931:
74:
867:
Just paste in your content and, when you're finished, be sure to close the template call with
796:
78:
65:
To avoid major disruption and server load, any changes should be tested in the template's
8:
1222:
1177:
1124:
28:
1035:
901:
If the contents do not satisfy the restrictions, insert this code in your page first:
1173:
1007:
939:
167:
943:
134:
1150:
1138:
1105:
1093:
1081:
1069:
1057:
1045:
864:-type boxes, wherever they are in the project, keep the same consistent look.
407:
You can forgo "1=", as long as this is the first unnamed parameter in the list.
116:
This template can be used to create simple, flexible coloured text background.
1236:
1117:
156:
178:
145:
15:
217:
template may be used within another template; or as part of another page.
982:
documentation. Remember, a job's not over until the paperwork is done!
888:
apply. For example, if you put content that includes template calls,
91:
60:
approximately 387,000 pages, or roughly 1% of all pages
930:}}. Note that this requires some understanding of
949:
Open an existing box style template, such as {{
1156:, for messageboxes on disambiguation or set-index pages.
990:even change the division box margins and paddings.
766:
789:may be compromised due to out-of-date information
1234:
127:Knowledge abounds in boxed templates, such as:
1123:, for messageboxes that are used in different
228:{{divbox|1=style|2=title|3=content|radius=}}
921:
905:{{subst:divbox|keyword|title|DUMMYCONTENT}}
898:cannot tell where its last parameter ends.
1193:Editors can experiment in this template's
1127:and change their presentation accordingly.
1111:, for messageboxes on other types of page.
1027:
1020:
960:be located in main Template namespace and
18:
1075:, for messageboxes on file (image) pages.
956:Create a new box style template page. It
938:Experiment in a drawing program, such as
968:, where "XXXXX" is your new style name.
225:Template general syntax is as follows:
1235:
1099:, for header and footer messageboxes.
1063:, for messageboxes on category pages.
1034:There are seven metatemplates in the
1144:, for messageboxes in article stubs.
1051:, for messageboxes on article pages.
978:Talk page and add your new style to
770:
240:Mandatory. Use any of the following:
86:
46:
13:
691:
626:
580:
534:
488:
452:
191:. This leads to inconsistencies.
14:
1259:
1087:, for messageboxes on talk pages.
953:}}. Copy out the code.
886:restrictions on parameter values
774:
625:Without a border or background:
90:
50:
19:
1131:Closely related metatemplates:
767:Using subst: with this template
1243:Templates using TemplateStyles
413:Optional. Plain text; appears
1:
826:This may be highly desirable.
231:
7:
998:
966:Template:divbox/style/XXXXX
435:
10:
1264:
1167:
122:
106:Template:Divbox/styles.css
1227:Subpages of this template
910:tag. Now, you may simply
703:
667:
634:
588:
542:
496:
460:
445:
442:
81:before implementing them.
73:subpages, or in your own
58:This template is used on
992:This is not recommended.
922:Making new divbox styles
220:
791:. The reason given is:
741:"color:#F00;"
1221:Add categories to the
814:atom may be used with
690:Content contains '=':
24:Template documentation
681:Lorem ipsum dolor...
652:Lorem ipsum dolor...
616:Lorem ipsum dolor...
570:Lorem ipsum dolor...
524:Lorem ipsum dolor...
478:Lorem ipsum dolor...
1178:Template:Divbox/doc
97:This template uses
1036:Module:Message box
914:DUMMYCONTENT with
808:
807:
804:
787:of this template
764:
763:
402:
401:
114:
113:
85:
84:
1255:
1218:
1207:
1191:
1155:
1149:
1143:
1137:
1122:
1116:
1110:
1104:
1098:
1092:
1086:
1080:
1074:
1068:
1062:
1056:
1050:
1044:
1029:
1022:
1012:
1006:
967:
951:divbox/style/red
940:GraphicConverter
906:
897:
891:
883:
877:
870:
863:
857:
849:
845:
839:
831:
823:
817:
813:
800:
784:factual accuracy
778:
777:
771:
760:
759:
755:
752:
749:
745:
742:
739:
736:
733:
730:
726:
723:
720:
716:
712:
709:
706:
698:
685:
684:
680:
676:
673:
670:
656:
655:
651:
647:
643:
640:
637:
620:
619:
615:
611:
607:
603:
600:
597:
594:
591:
574:
573:
569:
565:
561:
557:
554:
551:
548:
545:
528:
527:
523:
519:
515:
511:
508:
505:
502:
499:
482:
481:
477:
473:
469:
466:
463:
440:
439:
246:
245:
210:
202:
196:
183:
177:
172:
166:
161:
155:
150:
144:
139:
133:
94:
87:
54:
53:
47:
44:
25:
23:
22:
1263:
1262:
1258:
1257:
1256:
1254:
1253:
1252:
1233:
1232:
1231:
1230:
1220:
1212:
1197:
1192:
1181:
1166:
1153:
1147:
1141:
1135:
1120:
1114:
1108:
1102:
1096:
1090:
1084:
1078:
1072:
1066:
1060:
1054:
1048:
1042:
1039:
1033:
1010:
1004:
1001:
965:
944:Adobe Photoshop
924:
904:
895:
889:
881:
875:
868:
861:
855:
847:
843:
837:
829:
821:
815:
811:
775:
769:
757:
753:
750:
747:
743:
740:
737:
734:
731:
728:
724:
721:
718:
714:
710:
707:
704:
700:
696:
694:
682:
678:
674:
671:
668:
664:
653:
649:
645:
641:
638:
635:
631:
629:
617:
613:
609:
605:
601:
598:
595:
592:
589:
585:
583:
571:
567:
563:
559:
555:
552:
549:
546:
543:
539:
537:
525:
521:
517:
513:
509:
506:
503:
500:
497:
493:
491:
479:
475:
471:
467:
464:
461:
457:
455:
438:
398:
393:
388:
383:
376:
371:
366:
361:
354:
349:
344:
339:
332:
327:
322:
317:
310:
305:
300:
295:
288:
283:
278:
273:
266:
261:
256:
251:
234:
229:
223:
208:
200:
194:
181:
175:
170:
164:
159:
153:
148:
142:
137:
131:
125:
110:
64:
51:
45:
26:
20:
12:
11:
5:
1261:
1251:
1250:
1245:
1165:
1164:
1157:
1145:
1129:
1128:
1112:
1100:
1088:
1076:
1064:
1052:
1032:
1031:
1024:
1016:
1015:
1014:
1013:
1000:
997:
986:Note that you
984:
983:
972:
969:
954:
947:
923:
920:
806:
805:
779:
768:
765:
762:
761:
701:
692:
687:
686:
665:
662:
661:Without title
658:
657:
632:
627:
622:
621:
586:
581:
576:
575:
540:
535:
530:
529:
494:
489:
484:
483:
458:
453:
448:
447:
446:What you type
444:
437:
434:
433:
432:
428:
425:
421:
418:
411:
408:
404:
403:
400:
399:
396:
394:
391:
389:
386:
384:
381:
378:
377:
374:
372:
369:
367:
364:
362:
359:
356:
355:
352:
350:
347:
345:
342:
340:
337:
334:
333:
330:
328:
325:
323:
320:
318:
315:
312:
311:
308:
306:
303:
301:
298:
296:
293:
290:
289:
286:
284:
281:
279:
276:
274:
271:
268:
267:
264:
262:
259:
257:
254:
252:
249:
242:
241:
238:
233:
230:
227:
222:
219:
185:
184:
173:
162:
151:
140:
124:
121:
112:
111:
109:
108:
102:
99:TemplateStyles
95:
83:
82:
55:
17:
16:
9:
6:
4:
3:
2:
1260:
1249:
1248:Box templates
1246:
1244:
1241:
1240:
1238:
1228:
1224:
1216:
1211:
1205:
1201:
1196:
1189:
1185:
1179:
1175:
1171:
1170:documentation
1162:
1158:
1152:
1146:
1140:
1134:
1133:
1132:
1126:
1119:
1113:
1107:
1101:
1095:
1089:
1083:
1077:
1071:
1065:
1059:
1053:
1047:
1041:
1040:
1037:
1030:
1025:
1023:
1018:
1017:
1009:
1003:
1002:
996:
993:
989:
981:
977:
973:
970:
963:
959:
955:
952:
948:
945:
941:
937:
936:
935:
933:
929:
919:
917:
913:
907:
902:
899:
894:
887:
880:
872:
865:
860:
853:
842:
834:
827:
820:
803:
798:
797:the talk page
794:
790:
786:
785:
780:
773:
772:
702:
689:
688:
666:
660:
659:
633:
624:
623:
587:
578:
577:
541:
532:
531:
495:
486:
485:
459:
450:
449:
443:What you see
441:
429:
426:
422:
419:
416:
412:
409:
406:
405:
395:
390:
385:
380:
379:
373:
368:
363:
358:
357:
351:
346:
341:
336:
335:
329:
324:
319:
314:
313:
307:
302:
297:
292:
291:
285:
280:
275:
270:
269:
263:
258:
253:
248:
247:
244:
243:
239:
236:
235:
226:
218:
216:
212:
205:
199:
192:
190:
180:
174:
169:
163:
158:
152:
147:
141:
136:
130:
129:
128:
120:
117:
107:
104:
103:
100:
96:
93:
89:
88:
80:
76:
72:
68:
62:
61:
56:
49:
48:
42:
38:
34:
30:
1159:{{
1154:}}
1148:{{
1142:}}
1136:{{
1130:
1121:}}
1115:{{
1109:}}
1103:{{
1097:}}
1091:{{
1085:}}
1079:{{
1073:}}
1067:{{
1061:}}
1055:{{
1049:}}
1043:{{
1011:}}
1005:{{
991:
987:
985:
979:
975:
961:
957:
927:
925:
916:your content
915:
911:
908:
903:
900:
896:}}
892:
890:{{
882:}}
878:
876:{{
873:
866:
862:}}
858:
856:{{
851:
844:}}
840:
838:{{
835:
825:
822:}}
818:
816:{{
809:
801:
792:
788:
782:
414:
397:lavender
392:ivory
387:wordperfect
382:double
375:email
370:grayh
365:greenv
360:simar
353:tt
348:fawn
343:yellow
338:white
331:red
326:lilac
321:purple
316:plain
309:orange
304:none
299:navy
294:green
287:gray
282:gold
277:forest
272:brown
265:blue
260:bloodred
255:black
250:amber
224:
214:
213:
207:The keyword
206:
201:}}
197:
195:{{
193:
188:
186:
182:}}
176:{{
171:}}
165:{{
160:}}
154:{{
149:}}
143:{{
138:}}
132:{{
126:
118:
115:
75:user subpage
57:
1174:transcluded
717:Lorem ipsum
693:Lorem ipsum
648:Lorem ipsum
628:Lorem ipsum
612:Lorem ipsum
582:Lorem ipsum
566:Lorem ipsum
536:Lorem ipsum
520:Lorem ipsum
490:Lorem ipsum
474:Lorem ipsum
454:Lorem ipsum
420:3 (Content)
39:] [
35:] [
31:] [
1237:Categories
1168:The above
1125:namespaces
974:Return to
828:Note that
802:(May 2020)
232:Parameters
71:/testcases
1225:subpage.
1210:testcases
964:be named
410:2 (Title)
237:1 (Style)
79:talk page
999:See also
756:dolor...
713:lavender
436:Examples
67:/sandbox
1202:|
1195:sandbox
1188:history
1186:|
1038:family:
1008:divhide
912:replace
579:amber:
168:current
123:Purpose
37:history
1219:pages.
1161:Ivmbox
928:divbox
893:divbox
884:, the
879:divbox
859:divbox
848:subst:
841:divbox
836:Since
830:subst:
819:divbox
812:subst:
727:Lorem
708:divbox
695:Lorem
672:divbox
639:divbox
599:radius
593:divbox
553:radius
547:divbox
533:navy:
507:radius
501:divbox
465:divbox
451:gray:
427:radius
415:strong
198:Divbox
189:ad hoc
135:delete
1176:from
1151:Dmbox
1139:Asbox
1106:Ombox
1094:Fmbox
1082:Tmbox
1070:Imbox
1058:Cmbox
1046:Ambox
748:</
746:ipsum
735:style
697:ipsum
608:amber
487:red:
221:Usage
43:]
41:purge
27:[
1223:/doc
1215:edit
1208:and
1204:diff
1200:edit
1184:edit
1118:Mbox
1028:edit
1021:view
980:this
976:this
962:must
958:must
810:The
781:The
754:>
751:span
744:>
732:span
729:<
677:navy
644:none
604:15px
562:navy
558:10px
470:gray
424:(=).
215:This
209:none
157:GFDL
33:edit
29:view
1172:is
988:may
942:or
934:.
932:CSS
852:but
516:red
512:5px
179:FAC
146:tfd
69:or
1239::
1180:.
871:.
869:}}
824:.
799:.
758:}}
705:{{
683:}}
679:||
669:{{
654:}}
636:{{
618:}}
590:{{
572:}}
544:{{
526:}}
498:{{
480:}}
462:{{
101::
1229:.
1217:)
1213:(
1206:)
1198:(
1190:)
1182:(
738:=
725:=
722:3
719:|
715:|
711:|
675:|
650:|
646:|
642:|
614:|
610:|
606:|
602:=
596:|
568:|
564:|
560:|
556:=
550:|
522:|
518:|
514:|
510:=
504:|
476:|
472:|
468:|
63:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.