Knowledge

Template:TOC left/sandbox

Source 📝

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

Index

Template:TOC left
template sandbox
Template:TOC left
diff
test cases
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

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