172:
To start a table, type{|. This tells
Knowledge (XXG) that all the following data refers to a table. Next, leave a line, and then type |-. This indicator tells Knowledge (XXG) that you are now typing a new line. Leave another line, and press |. The pipes shows the start of a new row. Type the cell
116:
The
Players section likewise consists mainly of text, but the bottom of the section has a list of positions and the players that fill them. This section should remain mostly text, but the bottom of the page could be arranged into a simple table.
937:
UserBob would now like to highlight the
Rutland Cup entries on the table in a different colours, as these are considered the most important of all the tournaments in Rutland. As a result, he must now dive into the murky world of Style:
1032:
Note that commands which change a Whole row go after the |- (the green ones), while those for a single cell go between the start || and an extra | (the blue ones). For more info on the funny "#7700DD" codes, see
648:
Suppose UserBob considers his current table looks a bit narrow. Adding a Width parameter, defined by a percentage of the total page width, can improve the table and make it look much better:
83:"Crimblehampstead United was formed in 1898 by the joining of Crimble Orient and Hampstead Athletic. This allowed a cash strapped CUFC to buy it's now famous Walingtonington Park stadium..."
265:
This is very basic, and hardly an improvement on the original! To make the text easier to read, the next step is to make the top row into a header row, by replacing | with !, like so:
843:
The table can also be moved around on the page with align. Align can have three options: Left, Right and Center (note that
British English "Centre" will not work with the table).
162:
Knowledge (XXG) supports two methods of table layout: <DIV> and {|Curly braces|}. This tutorial will focus on the more intuitive curly braces, but both method are similar.
444:
It's getting better, but it's still a bit ugly. Luckily, Bob knows a shortcut. The colours of tables can be changed to make the layout simpler, and the easiest way is to use
1037:, which explain these in great depth. Note that such hideously bright colours are not recommended for normal articles; if colour must be used, try one of the following:
146:, as a part of the Crimbleside Christmas celebrations. The stadium has a capacity of 20,000, which is often reached during the more competitive home games..."
87:
The
History section is mainly long paragraphs of prose, split into subsections. This would make a poor table, as there is only one set of data: the text.
41:. They provide an easy and effective way to arrange numbers, lists, pictures, timelines and all the other stuff that won't work in normal prose.
639:
HTML table attributes are relatively simple. The three important attributes needed for tables on
Knowledge (XXG) are Align, Style and Width.
130:
The Cup Titles section is just a long list of years, and should definitely be made into a table; this is clearer and easier to sort.
96:"Crimblehampstead has some of the best players in Rutland, many of whom earn in excess of £20 a year. The team plays
742:
Of course, 70% is a bit drastic for such a narrow table; the space could be better filled by text or an image.
126:"1921 - Rutland Cup, 1925 - Rutland U25s Cup, 1931 - Rutland Cup, 1941 - Crimblehampstead Borough Champions..."
74:, all which are currently nothing but text. He wants to know where he should use a table to arrange this data.
632:
To add more advanced options, such as custom colours or sizes for your table, you'll need to add some simple
154:
can be used. This is perhaps beyond the scope of this tutorial, but a tutorial on infoboxes is pending.
17:
97:
151:
37:
In
Knowledge (XXG), a table is a way of arranging data into rows and columns, such as those seen in
139:"The stadium was built on Walingtonington Park in 1901, and the inaugural match was played on the
58:, a famous (but alas entirely ficticious) football club. The article currently has sections about
105:
448:. Wikitable is the Knowledge (XXG) standard table, and it's as easy as pie to use. Simply put
150:
This section is trickier, as there is numbers data mixed in with the prose. As a result, an
633:
166:
49:
38:
1132:
140:
109:
101:
29:
1034:
173:
contents, and then type ||. This starts another cell on the same row.
350:
To add a caption to the table, put |+, followed by the caption.
143:
28:
This is just a beginners guide. For the technical details, see
452:
straight after the {|, and the table automatically reformats!
642:
Following is a simple advice guide for these bits of code.
940:
845:
694:
1025:| 1941 || | Crimblehampstead Borough Champions
8:
930:| 1941 || Crimblehampstead Borough Champions
786:| 1941 || Crimblehampstead Borough Champions
688:| 1941 || Crimblehampstead Borough Champions
489:| 1941 || Crimblehampstead Borough Champions
390:| 1941 || Crimblehampstead Borough Champions
299:| 1941 || Crimblehampstead Borough Champions
210:| 1941 || Crimblehampstead Borough Champions
1039:
792:
745:Individual columns can also be widened:
550:
495:
1131:More help and advice can be found at
7:
982:Crimblehampstead Borough Champions
887:Crimblehampstead Borough Champions
834:Crimblehampstead Borough Champions
736:Crimblehampstead Borough Champions
537:Crimblehampstead Borough Champions
438:Crimblehampstead Borough Champions
344:Crimblehampstead Borough Champions
259:Crimblehampstead Borough Champions
176:Using these processes, Bob writes:
24:
628:Adding formatting with attributes
104:as the team's goalkeeeper, while
52:has just finished his article on
1013:| 1925 || Rutland Under-25s Cup
918:| 1925 || Rutland Under-25s Cup
774:| 1925 || Rutland Under-25s Cup
676:| 1925 || Rutland Under-25s Cup
477:| 1925 || Rutland Under-25s Cup
378:| 1925 || Rutland Under-25s Cup
287:| 1925 || Rutland Under-25s Cup
198:| 1925 || Rutland Under-25s Cup
1:
543:Now that looks professional!
169:must rearrange the Cup data.
989:{| class="db-d2lraXRhYmxl"
894:{| class="db-d2lraXRhYmxl"
652:{| class="db-d2lraXRhYmxl"
1152:
749:{| class="db-d2lraXRhYmxl"
456:{| class="db-d2lraXRhYmxl"
112:fill the forward roles..."
55:Crimblehampstead United FC
847:Look! It's on the right!
798:
91:Players - Text and tables
121:Cup Titles - List tables
966:Rutland Under-25s Cup
871:Rutland Under-25s Cup
818:Rutland Under-25s Cup
720:Rutland Under-25s Cup
581:First cell of new row
521:Rutland Under-25s Cup
422:Rutland Under-25s Cup
328:Rutland Under-25s Cup
243:Rutland Under-25s Cup
45:When do I use a table?
1019:| 1931 || Rutland Cup
1007:| 1921 || Rutland Cup
924:| 1931 || Rutland Cup
912:| 1921 || Rutland Cup
780:| 1931 || Rutland Cup
768:| 1921 || Rutland Cup
682:| 1931 || Rutland Cup
670:| 1921 || Rutland Cup
483:| 1931 || Rutland Cup
471:| 1921 || Rutland Cup
384:| 1931 || Rutland Cup
372:| 1921 || Rutland Cup
293:| 1931 || Rutland Cup
281:| 1921 || Rutland Cup
204:| 1931 || Rutland Cup
192:| 1921 || Rutland Cup
18:User:Smurrayinchester
1042:
943:
848:
795:
697:
605:More heading cells
498:
399:
78:History - Text only
1040:
1001:! Year !! Cup
941:
906:! Year !! Cup
846:
793:
762:| Year !! Cup
695:
664:! Year !! Cup
645:First is "Width".
496:
465:! Year !! Cup
397:
366:! Year !! Cup
275:! Year !! Cup
106:Neville Longbottom
1129:
1128:
1097:MediumAquamarine
986:
985:
891:
890:
838:
837:
740:
739:
625:
624:
541:
540:
450:class="wikitable"
446:class="wikitable"
442:
441:
348:
347:
263:
262:
134:Stadium - Infobox
1143:
1043:
944:
849:
796:
698:
551:
499:
400:
396:
306:
305:
221:
220:
57:
1151:
1150:
1146:
1145:
1144:
1142:
1141:
1140:
634:HTML attributes
630:
565:Start of table
549:
353:
217:
160:
136:
123:
93:
80:
53:
47:
22:
21:
20:
12:
11:
5:
1149:
1147:
1127:
1126:
1123:
1120:
1117:
1113:
1112:
1109:
1106:
1103:
1099:
1098:
1095:
1092:
1089:
1085:
1084:
1081:
1078:
1075:
1074:Yellows/Browns
1071:
1070:
1067:
1064:
1061:
1057:
1056:
1053:
1050:
1047:
1030:
1029:
1026:
1023:
1020:
1017:
1014:
1011:
1008:
1005:
1002:
999:
996:
993:
984:
983:
980:
976:
975:
972:
968:
967:
964:
960:
959:
956:
952:
951:
948:
935:
934:
931:
928:
925:
922:
919:
916:
913:
910:
907:
904:
901:
898:
889:
888:
885:
881:
880:
877:
873:
872:
869:
865:
864:
861:
857:
856:
853:
836:
835:
832:
828:
827:
824:
820:
819:
816:
812:
811:
808:
804:
803:
800:
791:
790:
787:
784:
781:
778:
775:
772:
769:
766:
763:
756:
753:
750:
738:
737:
734:
730:
729:
726:
722:
721:
718:
714:
713:
710:
706:
705:
702:
693:
692:
689:
686:
683:
680:
677:
674:
671:
668:
665:
662:
659:
656:
629:
626:
623:
622:
619:
615:
614:
611:
607:
606:
603:
599:
598:
595:
591:
590:
587:
583:
582:
579:
575:
574:
571:
567:
566:
563:
559:
558:
555:
548:
545:
539:
538:
535:
531:
530:
527:
523:
522:
519:
515:
514:
511:
507:
506:
503:
494:
493:
490:
487:
484:
481:
478:
475:
472:
469:
466:
463:
460:
457:
451:
447:
440:
439:
436:
432:
431:
428:
424:
423:
420:
416:
415:
412:
408:
407:
404:
395:
394:
391:
388:
385:
382:
379:
376:
373:
370:
367:
364:
361:
358:
346:
345:
342:
338:
337:
334:
330:
329:
326:
322:
321:
318:
314:
313:
310:
304:
303:
300:
297:
294:
291:
288:
285:
282:
279:
276:
273:
270:
261:
260:
257:
253:
252:
249:
245:
244:
241:
237:
236:
233:
229:
228:
225:
215:
214:
211:
208:
205:
202:
199:
196:
193:
190:
187:
184:
181:
159:
156:
148:
147:
135:
132:
128:
127:
122:
119:
114:
113:
92:
89:
85:
84:
79:
76:
46:
43:
35:
34:
23:
15:
14:
13:
10:
9:
6:
4:
3:
2:
1148:
1139:
1136:
1134:
1124:
1121:
1118:
1115:
1114:
1110:
1107:
1104:
1101:
1100:
1096:
1093:
1090:
1087:
1086:
1083:LemonChiffon
1082:
1079:
1076:
1073:
1072:
1068:
1065:
1063:PaleTurquoise
1062:
1059:
1058:
1054:
1051:
1048:
1045:
1044:
1038:
1036:
1027:
1024:
1021:
1018:
1015:
1012:
1009:
1006:
1003:
1000:
997:
994:
992:
991:align="right"
988:
987:
981:
978:
977:
973:
970:
969:
965:
962:
961:
957:
954:
953:
949:
946:
945:
939:
932:
929:
926:
923:
920:
917:
914:
911:
908:
905:
902:
899:
897:
896:align="right"
893:
892:
886:
883:
882:
878:
875:
874:
870:
867:
866:
862:
859:
858:
854:
851:
850:
844:
841:
833:
830:
829:
825:
822:
821:
817:
814:
813:
809:
806:
805:
801:
797:
788:
785:
782:
779:
776:
773:
770:
767:
764:
761:
757:
754:
751:
748:
747:
746:
743:
735:
732:
731:
727:
724:
723:
719:
716:
715:
711:
708:
707:
703:
700:
699:
690:
687:
684:
681:
678:
675:
672:
669:
666:
663:
660:
657:
655:
651:
650:
649:
646:
643:
640:
637:
635:
627:
620:
617:
616:
612:
609:
608:
604:
601:
600:
597:Heading cell
596:
593:
592:
588:
585:
584:
580:
577:
576:
572:
569:
568:
564:
561:
560:
556:
553:
552:
546:
544:
536:
533:
532:
528:
525:
524:
520:
517:
516:
512:
509:
508:
504:
501:
500:
491:
488:
485:
482:
479:
476:
473:
470:
467:
464:
461:
458:
455:
454:
453:
449:
445:
437:
434:
433:
429:
426:
425:
421:
418:
417:
413:
410:
409:
405:
402:
401:
392:
389:
386:
383:
380:
377:
374:
371:
368:
365:
362:
359:
356:
355:
354:
351:
343:
340:
339:
335:
332:
331:
327:
324:
323:
319:
316:
315:
311:
308:
307:
301:
298:
295:
292:
289:
286:
283:
280:
277:
274:
271:
268:
267:
266:
258:
255:
254:
250:
247:
246:
242:
239:
238:
234:
231:
230:
226:
223:
222:
219:
212:
209:
206:
203:
200:
197:
194:
191:
188:
186:| Year || Cup
185:
182:
179:
178:
177:
174:
170:
168:
163:
157:
155:
153:
145:
142:
138:
137:
133:
131:
125:
124:
120:
118:
111:
107:
103:
99:
95:
94:
90:
88:
82:
81:
77:
75:
73:
69:
65:
61:
56:
51:
44:
42:
40:
33:
31:
26:
25:
19:
1137:
1130:
1094:DarkSeaGreen
1055:LightSalmon
1031:
995:|+ Colourful
990:
974:Rutland Cup
958:Rutland Cup
936:
895:
879:Rutland Cup
863:Rutland Cup
842:
839:
826:Rutland Cup
810:Rutland Cup
759:
744:
741:
728:Rutland Cup
712:Rutland Cup
653:
647:
644:
641:
638:
631:
542:
529:Rutland Cup
513:Rutland Cup
443:
430:Rutland Cup
414:Rutland Cup
352:
349:
336:Rutland Cup
320:Rutland Cup
264:
251:Rutland Cup
235:Rutland Cup
216:
175:
171:
164:
161:
149:
129:
115:
86:
71:
67:
63:
59:
54:
48:
39:spreadsheets
36:
27:
1133:Help:Tables
1122:FloralWhite
1041:Web Colors
900:|+ Cups Won
752:|+ Cups Won
658:|+ Cups Won
459:|+ Cups Won
360:|+ Cups Won
218:Producing:
141:25 December
110:Jimmy Wales
102:Barry Scott
30:Help:Tables
1116:Off-Whites
1069:LightBlue
1066:PowderBlue
1052:DarkSalmon
1049:LightCoral
1035:web colors
942:Colourful
613:End table
68:Cup Titles
1125:Honeydew
1111:Lavender
1091:PaleGreen
794:Cups Won
760:width=70%
696:Cups Won
654:width=70%
589:New cell
573:New line
497:Cups Won
398:Cups Won
165:Firstly,
1119:Seashell
1077:Cornsilk
621:Caption
557:Meaning
158:The code
1108:Thistle
1102:Purples
840:Yikes!
547:Summary
167:UserBob
152:Infobox
100:, with
72:Stadium
64:Players
60:History
50:UserBob
1088:Greens
1080:Bisque
554:Symbol
1060:Blues
98:4-4-2
16:<
1105:Plum
1046:Reds
979:1941
971:1931
963:1925
955:1921
950:Cup
947:Year
884:1941
876:1931
868:1925
860:1921
855:Cup
852:Year
831:1941
823:1931
815:1925
807:1921
802:Cup
799:Year
733:1941
725:1931
717:1925
709:1921
704:Cup
701:Year
534:1941
526:1931
518:1925
510:1921
505:Cup
502:Year
435:1941
427:1931
419:1925
411:1921
406:Cup
403:Year
341:1941
333:1931
325:1925
317:1921
312:Cup
309:Year
256:1941
248:1931
240:1925
232:1921
227:Cup
224:Year
144:1901
108:and
70:and
1138:]
1135:.
1028:|}
1022:|-
1016:|-
1010:|-
1004:|-
998:|-
933:|}
927:|-
921:|-
915:|-
909:|-
903:|-
789:|}
783:|-
777:|-
771:|-
765:|-
758:!
755:|-
691:|}
685:|-
679:|-
673:|-
667:|-
661:|-
636:.
618:|+
610:|}
602:!!
586:||
570:|-
562:{|
492:|}
486:|-
480:|-
474:|-
468:|-
462:|-
393:|}
387:|-
381:|-
375:|-
369:|-
363:|-
357:{|
302:|}
296:|-
290:|-
284:|-
278:|-
272:|-
269:{|
213:|}
207:|-
201:|-
195:|-
189:|-
183:|-
180:{|
66:,
62:,
594:!
578:|
32:.
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.