32:
97:
63:
135:
154:. Omitted sections still have section edit links in the article body. The main use for this template is situations where you want section edit links for ease of editing but don't want a full table of contents.
239:== Level-2 heading (A) == === Level-3 heading (B) === == Level-2 heading (C) == ====== Level-6 heading (D) ====== = Level-1 heading (E) = == Level-2 heading (F) == === Level-3 heading (G) ===
336:
hide header G even though it is a level-3 heading just like header B, because header G is shown at the third level in the TOC while header B is shown at the second level.
572:
532:
520:
47:
401:
Due to the way the TOC is generated with MobileFrontend (mobile/tablet view), this template does not currently affect how the mobile TOC is displayed.
556:
516:
43:
150:
This template inserts a Table of
Contents that omits subheadings beyond a certain depth. The table obeys the same layout rules as the __TOC__
80:
502:
51:
209:
182:
The template defaults to including second- and third-level headings, e.g. those numbered "1" and "1.1" in the TOC. (Note:
76:
527:
109:
113:
332:
hide header D, because even though it is a level-6 heading it is shown at the second level in the TOC. And it
121:
552:
510:
39:
405:
141:
156:
Before using this template, consider whether and why it would be helpful to readers and other editors.
205:
4 allows for fourth-level headings, e.g. "1.1.1", but omits any subheadings below that from the TOC.
117:
492:
368:
228:
will normally generate the second-level ("1.1") TOC headings, and so on. This correspondence does
385:
377:
348:
69:
506:
358:
220:
The heading levels in the TOC normally correspond to the header levels in the wikitext, so a
374:
templates. To achieve the correct effect, use those with a limit parameter. For example,
151:
409:
566:
62:
190:
does nothing: the first-level heading on a page is, by default, the page title.)
17:
104:
26:
422:
Inserts a Table of
Contents that omits subheadings beyond a certain depth.
108:
and changes may be widely noticed. Test changes in the template's
129:
91:
57:
224:
will normally generate the first-level ("1") TOC headings, a
208:
The template works by hiding the lower levels with CSS. See
193:
You can specify a different limit by adding a header level:
236:
or skips header levels. For example, wikitext like this:
462:
Maximum header depth to be included in table of contents
544:
536:
144:skin. Read the documentation for an explanation.
344:This template does not interact well with the
8:
419:
140:This template does not work properly in the
526:Editors can experiment in this template's
425:
456:
216:TOC levels versus wikitext header levels
573:Knowledge table of contents templates
404:This template does not work with the
120:. Consider discussing changes on the
7:
398:would have—if they worked together.
25:
244:
133:
95:
61:
30:
242:will generate a TOC like this:
105:approximately 23,000 pages
1:
210:Template:TOC limit/styles.css
77:Template:TOC limit/styles.css
408:skin. See the bug report at
589:
500:
232:hold if the page contains
557:Subpages of this template
433:
380:|limit=2}}
124:before implementing them.
116:subpages, or in your own
103:This template is used on
551:Add categories to the
511:Template:TOC limit/doc
226:=== Level-3 header ===
35:Template documentation
382:has the effect that
222:== Level-2 header ==
482:
430:
428:Template parameters
396:|2}}
311:Level-3 heading (G)
303:Level-2 heading (F)
295:Level-1 heading (E)
285:Level-6 heading (D)
277:Level-2 heading (C)
267:Level-3 heading (B)
259:Level-2 heading (A)
234:= Level-1 headers =
201:|4}}
188:|1}}
178:|3}}
68:This template uses
426:
424:
481:
480:
446:
420:
322:
321:
148:
147:
128:
127:
90:
89:
18:Template:Toclimit
16:(Redirected from
580:
548:
540:
524:
497:
491:
458:
455:
447:
431:
397:
389:
381:
373:
367:
363:
357:
353:
347:
327:
312:
309:
304:
301:
296:
293:
286:
283:
278:
275:
268:
265:
260:
257:
245:
235:
227:
223:
202:
189:
179:
171:
137:
136:
130:
99:
98:
92:
65:
58:
55:
36:
34:
33:
21:
588:
587:
583:
582:
581:
579:
578:
577:
563:
562:
561:
560:
550:
542:
530:
525:
514:
499:
495:
489:
487:
453:
418:
391:
383:
375:
371:
365:
361:
355:
351:
345:
342:
325:
310:
307:
302:
299:
294:
291:
284:
281:
276:
273:
266:
263:
258:
255:
252:
240:
233:
225:
221:
218:
196:
183:
173:
165:
163:
134:
96:
86:
56:
37:
31:
29:
23:
22:
15:
12:
11:
5:
586:
584:
576:
575:
565:
564:
541:and testcases
486:
483:
479:
478:
475:
472:
471:
470:
467:
459:
451:
445:
444:
441:
438:
435:
417:
414:
412:for details.
394:TOC limit
386:TOC right
378:TOC right
341:
338:
320:
319:
318:
317:
316:
315:
314:
313:
289:
288:
287:
271:
270:
269:
248:
238:
217:
214:
162:
159:
146:
145:
138:
126:
125:
100:
88:
87:
85:
84:
73:
70:TemplateStyles
66:
28:
27:
24:
14:
13:
10:
9:
6:
4:
3:
2:
585:
574:
571:
570:
568:
558:
554:
546:
538:
534:
529:
522:
518:
512:
508:
504:
503:documentation
498:
494:
484:
476:
473:
468:
465:
464:
463:
460:
452:
449:
448:
442:
439:
436:
432:
429:
423:
415:
413:
411:
407:
402:
399:
395:
387:
379:
370:
360:
350:
339:
337:
335:
331:
328:on this page
326:{{TOC limit}}
306:
305:
298:
297:
290:
280:
279:
272:
262:
261:
254:
253:
251:
247:
246:
243:
237:
231:
215:
213:
211:
206:
203:
200:
194:
191:
187:
180:
177:
169:
160:
158:
157:
153:
143:
139:
132:
131:
123:
119:
115:
111:
107:
106:
101:
94:
93:
82:
78:
75:
74:
71:
67:
64:
60:
59:
53:
49:
45:
41:
19:
496:}}
490:{{
488:
461:
427:
421:
416:TemplateData
403:
400:
393:
392:{{
388:}}
384:{{
376:{{
372:}}
366:{{
362:}}
356:{{
352:}}
346:{{
343:
333:
329:
323:
249:
241:
229:
219:
207:
204:
198:
197:{{
195:
192:
185:
184:{{
181:
175:
174:{{
170:}}
167:
166:{{
164:
155:
149:
118:user subpage
102:
507:transcluded
437:Description
406:Vector 2022
142:Vector 2022
50:] [
46:] [
42:] [
501:The above
493:TOC hidden
369:TOC center
152:magic word
114:/testcases
555:subpage.
477:suggested
434:Parameter
349:TOC right
340:Conflicts
330:would not
199:TOC limit
186:TOC limit
176:TOC limit
168:TOC limit
122:talk page
567:Category
485:See also
359:TOC left
250:Contents
110:/sandbox
535:|
528:sandbox
521:history
519:|
466:Default
410:T317818
81:sandbox
48:history
549:pages.
545:create
474:Number
443:Status
324:Using
509:from
457:limit
450:Limit
334:would
308:3.1.1
161:Usage
54:]
52:purge
38:[
553:/doc
537:diff
533:edit
517:edit
440:Type
390:and
44:edit
40:view
505:is
300:3.1
282:2.1
264:1.1
230:not
172:or
112:or
569::
513:.
364:,
354:,
212:.
72::
559:.
547:)
543:(
539:)
531:(
523:)
515:(
469:3
454:1
292:3
274:2
256:1
83:)
79:(
20:)
Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.