Jump to content

Wikipedia:Template index/Compact tables of contents

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by WOSlinker (talk | contribs) at 21:15, 4 March 2012 (Numeric lists: update link). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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.

Non-category pages

These should work on pages whose title does not begin with "Category:".

What to type What it makes Notes
{{CompactTOC8}}
Talk

See template page for numerous examples. This highly customizable template can replace most other templates listed below, which are in the process of being switched over to its code.

 
{{AlphanumericTOC}}
Talk
Variable, see template page for examples  
{{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.
{{TOC US states|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]], [[#References]] and [[#External links]] may also be generated using optional parameters.

Category pages

Use one of these on pages whose title begins with "Category:".

What to type What it makes
{{Category TOC}}
Talk
{{Category TOC lower case}}
Talk

Template:Category TOC lower case

{{Category A-Z TOC}}
Talk

Template:Category A-Z TOC

{{Category year TOC}}
Talk

Template:Category year TOC

{{Large category TOC}}

What to type What it makes
{{Category TOC numeric}}
Talk

Template:Category TOC numeric

{{Category IP TOC}}
Talk