Wikipedia:Template messages/Compact table of contents
From Wikipedia, the free encyclopedia
This page lists ways to create several kinds of compact tables of contents (TOC). Please note that a normal compact TOC will not work when put on Category pages; this page contains a separate section instructing you how to put a compact TOC on Category pages.
Contents |
[edit] To use on non-Category pages
These should work on pages whose title does not begin with "Category:".
[edit] Alphabetical lists
What to type | What it makes | Notes | ||
---|---|---|---|---|
{{AlphanumericTOC}} Talk |
(Appearance is customizable.) | See the discussion page for examples and usage details. | ||
{{compactTOC}} Talk |
Contents: Top - 0–9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z |
|||
{{compactTOC2}} Talk |
|
|||
{{compactTOC3|Sec1=See also|Sec2=References|Sec3=External links}} Talk |
|
Takes zero to three parameters named Sec1, Sec2, and Sec3 for extra sections at the end of the page. | ||
{{CompactTOC4}} Talk |
|
|||
{{compactTOC5}} Talk |
|
|||
{{compactTOC5T}} Talk |
|
Decreases white space in CompactTOC5. | ||
{{compactTOC6|Sec1=See also|Sec2=References|Sec3=External links}} Talk |
|
CompactTOC3 without numbers; mainly for names-only lists. Takes zero to three parameters named Sec1, Sec2, and Sec3 for extra sections at the end of the page. | ||
{{compactTOCrefs}} Talk |
|
CompactTOC5T with a References section and forced linebreak. | ||
{{compactTOCrefs2}} Talk |
|
CompactTOCrefs without the forced linebreak. | ||
{{compactTOCrefs3}} Talk |
|
CompactTOCrefs without the forced linebreak and withouth alphabetical sections. | ||
{{CompactTOC2wprefix|prefix=!}} Talk |
|
Extends CompactTOC2 by adding a prefix parameter. | ||
{{CompactTOCprefix|prefix=!}} Talk |
|
Similar to the above, includes the prefix in the links: designed for use with pages such as List of acronyms and initialisms: A. | ||
{{compactTOCbody}} Talk |
|
CompactTOC2 with 'Top' activated. For use within the body of list articles, and sited after the alphabetic section header. | ||
{{TOCStates|before=|after=[[#Other section|Other section]]|noendlinks=}} Talk |
|
Use before= or after= to manually create links to other sections on the page. If after is left blank, links to [[#See also]] and [[#External links]] are automatically created unless you also set noendlinks=true. | ||
{{TOCDecades}} Talk |
|
Based on CompactTOC3. Up to 3 optional extra section links. |
[edit] To use on Category pages
Use one of these on pages whose title begins with "Category:".
[edit] Alphabetical lists
What to type | What it makes | |||
---|---|---|---|---|
{{CategoryTOC}} Talk |
|
|||
{{CategoryTOClc}} Talk |
|
|||
{{CatAZ}} Talk |
|
|||
{{CategoryYearTOC}} Talk |
|