Knowledge (XXG)

Template:Horizontal TOC

Source 📝

32: 63: 101: 150: 494:
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
134: 708: 406: 741: 693: 681: 47: 720: 677: 43: 128: 334: 736: 118: 51: 349:
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.
663: 124: 703: 79: 688: 330: 75: 639:
Specify a list of links for the table of contents instead of the section links automatically generated by the TOC magic word
114: 87: 716: 671: 39: 414: 377: 346: 156: 83: 358: 366: 166: 107: 667: 593:
Align underneath floating images and tables or not. Allowed values are left, right, both, none
399: 388: 423:
This template lays out the table of contents in a horizontal list rather than a vertical one.
17: 730: 550:
Which side of the page to align the ToC to. Allowed values are left, right, center
100: 263:
To limit the depth of the generated headings to the first headings only, use:
70: 26: 415:
Help:Tables and locations#Section link or map link to a row anchor
74:
and changes may be widely noticed. Test changes in the template's
329:
For country and state lists with flag icons, see these examples:
296:
To float the table of contents to the center of the page, use:
144: 95: 57: 237:
To suppress the parentheses around subsection lists, use:
521:
Separates entries by bullets, regardless of sub-sections.
135:
Template:Horizontal TOC/horizontal-toc-no-parentheses.css
697: 323: 290: 231: 198: 433:
This template prefers inline formatting of parameters.
409:
in the map caption. This method will also work with
165:This template lays out the table of contents in a 159:skin. Read the documentation for an explanation. 8: 420: 204:To hide the generated heading numbers, use: 194:: this template handles that automatically. 155:This template does not work properly in the 742:Knowledge (XXG) table of contents templates 687:Editors can experiment in this template's 426: 515: 335:Legality of cannabis by U.S. jurisdiction 86:. Consider discussing changes on the 7: 465:Hide the generated heading numbers 125:Template:Horizontal TOC/styles.css 25: 148: 99: 61: 30: 331:Legality of cannabis by country 737:Templates using TemplateStyles 71:approximately 6,400 pages 1: 115:Template:TOC limit/styles.css 190:There is no need to specify 169:rather than a vertical one. 672:Template:Horizontal TOC/doc 758: 661: 721:Subpages of this template 439: 90:before implementing them. 82:subpages, or in your own 69:This template is used on 298: 265: 239: 206: 176: 18:Template:Horizontal toc 715:Add categories to the 359:Help:Table of contents 35:Template documentation 659: 436: 429:Template parameters 413:as described here: 106:This template uses 427: 425: 658: 657: 452: 421: 163: 162: 143: 142: 94: 93: 16:(Redirected from 749: 712: 701: 685: 635: 611: 608: 605: 602: 597:Suggested values 589: 565: 562: 559: 554:Suggested values 546: 517: 514: 490: 461: 453: 437: 434: 404: 398: 393: 387: 382: 378:List TOC letters 376: 371: 365: 318: 314: 311: 308: 305: 302: 285: 281: 278: 275: 272: 269: 259: 255: 252: 249: 246: 243: 226: 222: 219: 216: 213: 210: 193: 186: 183: 180: 152: 151: 145: 103: 96: 65: 64: 58: 55: 36: 34: 33: 21: 757: 756: 752: 751: 750: 748: 747: 746: 727: 726: 725: 724: 714: 706: 691: 686: 675: 660: 633: 609: 606: 603: 600: 587: 563: 560: 557: 544: 512: 488: 459: 432: 402: 396: 391: 385: 380: 374: 369: 363: 355: 343: 320: 319: 316: 312: 309: 306: 303: 300: 287: 286: 283: 279: 276: 273: 270: 267: 261: 260: 257: 253: 250: 247: 244: 241: 228: 227: 224: 220: 217: 214: 211: 208: 191: 188: 187: 184: 181: 178: 175: 167:horizontal list 149: 139: 62: 56: 37: 31: 29: 23: 22: 15: 12: 11: 5: 755: 753: 745: 744: 739: 729: 728: 656: 655: 652: 649: 648: 647: 644: 636: 631: 627: 626: 623: 620: 619: 618: 615: 612: 598: 590: 585: 581: 580: 577: 574: 573: 572: 569: 566: 555: 547: 542: 538: 537: 534: 531: 530: 529: 526: 518: 513:no_parenthesis 510: 509:No parenthesis 506: 505: 502: 499: 498: 491: 486: 482: 481: 478: 475: 474: 473: 470: 462: 457: 451: 450: 447: 444: 441: 419: 418: 394: 383: 372: 361: 354: 351: 342: 339: 327: 326: 304:horizontal TOC 299: 294: 293: 271:horizontal TOC 266: 245:horizontal TOC 240: 235: 234: 212:horizontal TOC 207: 202: 201: 182:horizontal TOC 177: 174: 171: 161: 160: 153: 141: 140: 138: 137: 132: 122: 111: 108:TemplateStyles 104: 92: 91: 66: 28: 27: 24: 14: 13: 10: 9: 6: 4: 3: 2: 754: 743: 740: 738: 735: 734: 732: 722: 718: 710: 705: 699: 695: 690: 683: 679: 673: 669: 665: 664:documentation 653: 650: 645: 642: 641: 640: 637: 632: 629: 628: 624: 621: 616: 613: 599: 596: 595: 594: 591: 586: 583: 582: 578: 575: 570: 567: 556: 553: 552: 551: 548: 543: 540: 539: 535: 532: 527: 524: 523: 522: 519: 511: 508: 507: 503: 500: 497: 496: 492: 487: 484: 483: 479: 476: 471: 468: 467: 466: 463: 458: 455: 454: 448: 445: 442: 438: 435: 430: 424: 416: 412: 408: 401: 395: 390: 384: 379: 373: 368: 362: 360: 357: 356: 352: 350: 348: 340: 338: 336: 332: 325: 322: 321: 297: 292: 289: 288: 264: 238: 233: 230: 229: 205: 200: 197: 196: 195: 172: 170: 168: 158: 154: 147: 146: 136: 133: 130: 126: 123: 120: 116: 113: 112: 109: 105: 102: 98: 97: 89: 85: 81: 77: 73: 72: 67: 60: 59: 53: 49: 45: 41: 19: 638: 592: 549: 520: 493: 464: 431: 428: 422: 410: 403:}} 397:{{ 392:}} 386:{{ 381:}} 375:{{ 370:}} 364:{{ 344: 328: 295: 262: 236: 203: 189: 164: 84:user subpage 68: 668:transcluded 443:Description 367:Compact TOC 347:Vector 2022 341:Limitations 324:See example 291:See example 232:See example 199:See example 157:Vector 2022 50:] [ 46:] [ 42:] [ 731:Categories 662:The above 617:clear:both 571:align=left 456:No numbers 345:Since the 80:/testcases 719:subpage. 704:testcases 440:Parameter 192:__NOTOC__ 88:talk page 654:optional 625:optional 579:optional 536:optional 516:noparens 504:optional 480:optional 400:flatlist 389:Nonumtoc 353:See also 251:noparens 76:/sandbox 696:| 689:sandbox 682:history 680:| 643:Example 614:Example 568:Example 525:Example 469:Example 407:example 333:. And: 129:sandbox 119:sandbox 48:history 713:pages. 651:String 622:String 576:String 561:center 533:String 501:Number 477:String 449:Status 405:- see 315:center 670:from 634:links 630:Links 604:right 588:clear 584:Clear 564:right 545:align 541:Align 489:limit 485:Limit 460:nonum 310:align 277:limit 218:nonum 173:Usage 54:] 52:purge 38:[ 717:/doc 709:edit 702:and 698:diff 694:edit 678:edit 610:none 607:both 601:left 558:left 446:Type 44:edit 40:view 666:is 646:* ] 528:yes 495:CSS 472:yes 411:id= 256:yes 223:yes 78:or 733:: 674:. 337:. 317:}} 301:{{ 284:}} 268:{{ 258:}} 242:{{ 225:}} 209:{{ 185:}} 179:{{ 110:: 723:. 711:) 707:( 700:) 692:( 684:) 676:( 417:. 313:= 307:| 282:2 280:= 274:| 254:= 248:| 221:= 215:| 131:) 127:( 121:) 117:( 20:)

Index

Template:Horizontal toc
view
edit
history
purge
approximately 6,400 pages
/sandbox
/testcases
user subpage
talk page
CSS
TemplateStyles
Template:TOC limit/styles.css
sandbox
Template:Horizontal TOC/styles.css
sandbox
Template:Horizontal TOC/horizontal-toc-no-parentheses.css
Vector 2022
horizontal list
See example
See example
See example
See example
Legality of cannabis by country
Legality of cannabis by U.S. jurisdiction
Vector 2022
Help:Table of contents
Compact TOC
List TOC letters
Nonumtoc

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