Knowledge (XXG)

Template:TOC right

Source 📝

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

Index

Template:TOCRIGHT
view
edit
history
purge
approximately 48,000 pages
/sandbox
/testcases
user subpage
talk page
Vector 2022
Shortcuts
tocr
tocright
TOCright
CSS
TemplateStyles
Template:TOC limit/styles.css
sandbox
Template:TOC right/styles.css
sandbox
TOC right
Vector 2022
MOS:LEADELEMENTS
-
clear
Template:TOC limit/styles.css
TOC right
Help:Section#Floating the TOC
TemplateData

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