Knowledge

Template:TOC left

Source 📝

21: 52: 139: 90: 255:
Do not place this template so that the TOC aligns with a large image or infobox; this breaks the layout on narrow screens (even users with screens as wide as 1024px wide can have problems). Also, a TOC that crosses a section division is probably a poor idea, if that can be avoided.
372:
Sets the CSS clear property, which forces this float underneath the side specified with this attribute. So, clear=left (which is the default) will place the element after all the right floating elements before it. Options are left, right, both, or
396:
Limits the depth of subheadings shown. For instance using limit=4 will hide the fourth level and deeper subheadings in the hierarchy. And limit=2 will hide all subheadings leaving only the main headings. This works by hiding the lower levels with
243:
Do not use this template to just force word wrap around the TOC, as this is an inappropriate method of achieving this. Instead add a CSS class to your current skin's .css file, which will apply site wide. Go to
330:{{TOC left}} forces the auto-generated "Table of Contents" for an article to appear floated to the left side of the page (as seen left), in order to improve article layout. 269:
is placed is long enough, the result may well be undesirable. Note particularly that if the TOC is floated left of a bulleted list, the bullets will be hidden.
192:
forces the auto-generated "Table of Contents" for an article to appear floated to the left side of the page (as seen left), in order to improve article layout.
531: 575: 542: 292:
skin forces the table of contents into a sidebar or a pop-up menu, this template does not control the placement of the TOC in that skin.
527: 272:
It should only be used in cases where the TOC gets in the way of other content or is detrimental to the layout of the page; it should
515: 36: 570: 554: 511: 32: 156: 166: 59: 313: 497: 40: 483: 152: 162: 305: 537: 224:
to prevent e.g. image collisions. To remove the small default margin/padding included above the box, set
68: 522: 64: 204:
at the point in the article where you want the top of the Table of Contents box to appear. Use with
479: 245: 145: 487: 309: 301: 76: 72: 550: 505: 289: 276:
simply be used for aesthetics since it tampers with the standard appearance of articles. See
96: 28: 475: 277: 124: 115: 8: 218: 469: 106: 501: 249: 208: 564: 15: 138: 63:
and changes may be widely noticed. Test changes in the template's
340:
This template prefers inline formatting of parameters.
562: 99:skin. Read the documentation for an explanation. 95:This template does not work properly in the 320:in articles based on its TemplateData. 521:Editors can experiment in this template's 18: 563: 576:Knowledge table of contents templates 75:. Consider discussing changes on the 314:See a monthly parameter usage report 133: 84: 46: 13: 248:, which redirects to your current 14: 587: 454: 431: 405: 381: 259:Unless the section in which the 137: 88: 50: 19: 295: 571:Templates using TemplateStyles 283: 60:approximately 3,100 pages 1: 278:Help:Section#Floating the TOC 153:Template:TOC limit/styles.css 163:Template:TOC left/styles.css 7: 462: 238: 10: 592: 495: 304:for this template used by 228:(or, to customize it, use 178: 104: 555:Subpages of this template 346: 323:TemplateData for TOC left 79:before implementing them. 71:subpages, or in your own 58:This template is used on 280:for further guidelines. 195: 423:Overrides the CSS width 246:Special:Mypage/skin.css 549:Add categories to the 24:Template documentation 506:Template:TOC left/doc 460: 343: 336:Template parameters 144:This template uses 470:Template:TOC right 334: 332: 327: 459: 458: 359: 328: 318:Template:TOC left 312:and other tools. 176: 175: 103: 102: 83: 82: 583: 546: 535: 519: 491: 472: 442: 419: 416: 392: 368: 360: 344: 341: 333: 268: 262: 234: 227: 223: 217: 213: 207: 203: 191: 185: 141: 134: 127: 118: 92: 91: 85: 54: 53: 47: 44: 25: 23: 22: 591: 590: 586: 585: 584: 582: 581: 580: 561: 560: 559: 558: 548: 540: 525: 520: 509: 494: 473: 468: 465: 440: 417: 414: 390: 366: 339: 326: 298: 286: 266: 260: 241: 229: 226:|top=0 225: 221: 215: 211: 205: 201: 198: 189: 183: 181: 172: 132: 131: 123: 114: 109: 89: 51: 45: 26: 20: 12: 11: 5: 589: 579: 578: 573: 493: 492: 464: 461: 457: 456: 453: 450: 449: 446:no description 443: 438: 434: 433: 430: 427: 426: 420: 412: 408: 407: 404: 401: 400: 393: 388: 384: 383: 380: 377: 376: 369: 364: 358: 357: 354: 351: 348: 306:TemplateWizard 299: 297: 294: 285: 282: 240: 237: 230:|top= 197: 194: 180: 177: 174: 173: 171: 170: 160: 149: 146:TemplateStyles 142: 130: 129: 120: 110: 105: 101: 100: 93: 81: 80: 55: 17: 16: 9: 6: 4: 3: 2: 588: 577: 574: 572: 569: 568: 566: 556: 552: 544: 539: 533: 529: 524: 517: 513: 507: 503: 499: 498:documentation 489: 485: 481: 477: 471: 467: 466: 451: 448: 447: 444: 439: 436: 435: 428: 425: 424: 421: 413: 410: 409: 402: 399: 398: 394: 389: 386: 385: 378: 375: 374: 370: 365: 362: 361: 355: 352: 349: 345: 342: 337: 331: 325: 324: 319: 315: 311: 307: 303: 293: 291: 281: 279: 275: 270: 265: 257: 253: 252:'s CSS file. 251: 247: 236: 233: 220: 210: 193: 188: 168: 164: 161: 158: 154: 151: 150: 147: 143: 140: 136: 135: 126: 121: 117: 112: 111: 108: 98: 94: 87: 86: 78: 74: 70: 66: 62: 61: 56: 49: 48: 42: 38: 34: 30: 445: 422: 395: 371: 338: 335: 329: 322: 321: 317: 310:VisualEditor 302:TemplateData 300:This is the 296:TemplateData 287: 273: 271: 267:}} 263: 261:{{ 258: 254: 242: 231: 222:}} 216:{{ 212:}} 206:{{ 202:{{TOC left}} 199: 190:}} 186: 184:{{ 182: 128:}} 122:{{ 119:}} 113:{{ 73:user subpage 57: 502:transcluded 437:Top spacing 350:Description 290:Vector 2022 284:Limitations 97:Vector 2022 39:] [ 35:] [ 31:] [ 565:Categories 496:The above 288:Since the 219:clear left 69:/testcases 553:subpage. 538:testcases 347:Parameter 232:(a value) 107:Shortcuts 77:talk page 463:See also 455:optional 432:optional 406:optional 382:optional 264:TOC left 239:Cautions 187:TOC left 65:/sandbox 530:| 523:sandbox 516:history 514:| 488:history 452:Unknown 429:Unknown 200:Insert 179:Purpose 167:sandbox 157:sandbox 125:TOCleft 116:tocleft 37:history 547:pages. 486:  482:  478:  403:Number 379:String 356:Status 504:from 484:links 415:width 411:Width 391:limit 387:Limit 373:none. 367:clear 363:Clear 209:clear 196:Usage 43:] 41:purge 27:[ 551:/doc 543:edit 536:and 532:diff 528:edit 512:edit 480:talk 476:edit 353:Type 316:for 250:skin 33:edit 29:view 500:is 441:top 397:CSS 274:not 235:). 214:or 67:or 567:: 508:. 308:, 148:: 557:. 545:) 541:( 534:) 526:( 518:) 510:( 490:) 474:( 418:1 169:) 165:( 159:) 155:(

Index

view
edit
history
purge
approximately 3,100 pages
/sandbox
/testcases
user subpage
talk page
Vector 2022
Shortcuts
tocleft
TOCleft
CSS
TemplateStyles
Template:TOC limit/styles.css
sandbox
Template:TOC left/styles.css
sandbox
TOC left
clear
clear left
Special:Mypage/skin.css
skin
TOC left
Help:Section#Floating the TOC
Vector 2022
TemplateData
TemplateWizard
VisualEditor

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.