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