21:
52:
596:
537:
36:
570:
533:
32:
586:
40:
65:
519:
246:, using the classes may not work well on those rows because the alignment appears in wrong cells. Normal table code like
566:
527:
495:
28:
461:
507:
591:
471:
203:
classes never affect the header cells (column, row, or anywhere) if the wikitable class is used. The
483:
255:
can be added to individual cells, both to get the wanted alignment and override unwanted alignment.
192:
With the wikitable class the header cell content is always centered unless individually adjusted.
58:
523:
235:
are supported. A table can have more columns but they cannot be aligned with this method.
477:- Makes column headers stick to the top of the page while scrolling through table data.
580:
446:
51:
453:
15:
81:
To make it simpler to align the columns in tables with less wikicode.
501:- adds row hover highlighting, and option for white background.
93:
just before the table and then add some classes to the table.
46:
597:
Templates using
TemplateStyles to style external elements
558:
550:
546:
285:"wikitable defaultcenter col1left col4right"
543:Editors can experiment in this template's sandbox
452:– Can be used to help narrow columns by adding a
489:- moves the sorting arrows under the headers.
8:
513:- adds a column of row numbers to a table.
375:
214:If the wikitable class is not used, then
249:style="text-align: left/center/right;"|
122:Align all table cells center by default
95:
132:Align all table cells right by default
112:Align all table cells left by default
7:
66:Template:Table alignment/tables.css
14:
50:
19:
587:Templates using TemplateStyles
456:to a word to allow it to wrap.
1:
528:Template:Table alignment/doc
168:center, where N is a number
186:right, where N is a number
613:
517:
182:Align the cells in column
164:Align the cells in column
150:left, where N is a number
146:Align the cells in column
571:Subpages of this template
264:
565:Add categories to the
24:Template documentation
231:Column numbers up to
222:affect header cells.
207:class overrides the
496:row hover highlight
91:{{Table alignment}}
57:This template uses
508:static row numbers
434:
433:
190:
189:
74:
73:
604:
562:
554:
541:
512:
506:
500:
494:
488:
482:
476:
470:
451:
445:
376:
370:
366:
362:
358:
354:
351:
347:
343:
339:
335:
332:
328:
324:
320:
316:
313:
310:
307:
304:
301:
298:
295:
292:
289:
286:
283:
280:
277:
274:
271:
268:
254:
253:
245:
241:
238:On tables using
234:
179:
161:
143:
129:
119:
109:
96:
92:
54:
47:
44:
25:
23:
22:
612:
611:
607:
606:
605:
603:
602:
601:
592:Table templates
577:
576:
575:
574:
564:
556:
544:
542:
531:
516:
510:
504:
498:
492:
486:
480:
474:
468:
462:template styles
449:
443:
440:
435:
373:
372:
371:
368:
364:
360:
356:
352:
349:
345:
341:
337:
333:
330:
326:
322:
318:
314:
311:
308:
305:
302:
299:
296:
293:
290:
287:
284:
281:
278:
275:
272:
270:Table alignment
269:
266:
262:
248:
247:
243:
239:
232:
228:
173:
155:
137:
127:
117:
107:
90:
87:
79:
70:
45:
26:
20:
18:
12:
11:
5:
610:
608:
600:
599:
594:
589:
579:
578:
555:and testcases
515:
514:
502:
490:
478:
458:
457:
439:
436:
432:
431:
428:
425:
422:
418:
417:
414:
411:
408:
404:
403:
400:
397:
394:
390:
389:
386:
383:
380:
374:
265:
263:
261:
258:
257:
256:
236:
227:
224:
188:
187:
180:
170:
169:
162:
152:
151:
144:
134:
133:
130:
124:
123:
120:
114:
113:
110:
104:
103:
100:
86:
83:
78:
75:
72:
71:
69:
68:
62:
59:TemplateStyles
55:
17:
16:
13:
10:
9:
6:
4:
3:
2:
609:
598:
595:
593:
590:
588:
585:
584:
582:
572:
568:
560:
552:
548:
539:
535:
529:
525:
521:
520:documentation
509:
503:
497:
491:
485:
479:
473:
472:sticky header
467:
466:
465:
463:
455:
448:
442:
441:
437:
429:
426:
423:
420:
419:
415:
412:
409:
406:
405:
401:
398:
395:
392:
391:
387:
384:
381:
378:
377:
259:
252:
237:
230:
229:
225:
223:
221:
217:
212:
210:
206:
202:
198:
193:
185:
181:
177:
172:
171:
167:
163:
159:
154:
153:
149:
145:
141:
136:
135:
131:
126:
125:
121:
118:defaultcenter
116:
115:
111:
106:
105:
101:
98:
97:
94:
84:
82:
76:
67:
64:
63:
60:
56:
53:
49:
48:
42:
38:
34:
30:
511:}}
505:{{
499:}}
493:{{
487:}}
481:{{
475:}}
469:{{
464:for tables:
459:
450:}}
444:{{
251:cell content
250:
219:
215:
213:
208:
204:
200:
196:
194:
191:
183:
175:
165:
157:
147:
139:
128:defaultright
88:
80:
524:transcluded
454:soft hyphen
226:Limitations
108:defaultleft
39:] [
35:] [
31:] [
581:Categories
518:The above
484:sort under
430:322313.00
367:322313.00
99:classname
569:subpage.
438:See also
427:113-125
416:5563.35
396:100-200
363:113-125
348:5563.35
321:100-200
102:Purpose
549:|
538:history
536:|
393:AAAAAA
317:AAAAAA
260:Example
244:colspan
240:rowspan
220:default
211:class.
209:default
201:default
77:Purpose
37:history
563:pages.
559:create
551:mirror
547:create
402:53.43
388:Item4
385:Item3
382:Item2
379:Item1
329:53.43
160:center
89:Place
526:from
460:More
424:9-10
359:9-10
309:Item4
303:Item3
297:Item2
291:Item1
279:class
233:col29
178:right
85:Usage
43:]
41:purge
27:[
567:/doc
534:edit
413:7-8
410:5-6
407:BBB
399:3-4
344:7-8
340:5-6
336:BBB
325:3-4
218:and
199:and
195:The
142:left
33:edit
29:view
522:is
447:shy
421:CC
355:CC
242:or
216:col
205:col
197:col
174:col
156:col
138:col
583::
530:.
369:|}
350:|-
331:|-
312:|-
276:{|
273:}}
267:{{
61::
573:.
561:)
557:(
553:)
545:(
540:)
532:(
365:|
361:|
357:|
353:|
346:|
342:|
338:|
334:|
327:|
323:|
319:|
315:|
306:!
300:!
294:!
288:!
282:=
184:N
176:N
166:N
158:N
148:N
140:N
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.