Module contents Maintenance Wikibooks community

Book information | General | Sources | Links | Navigation | Files | Media

Maintenance | Licensing | Deletion | Stubs

User messages | User notices | User pages | Discussion | Featured books | Policies/Guidelines

Indexed navigation

Look in the Table of Contents templates category for a more extensive list.

The MediaWiki software automatically generates a table of contents on pages with several sections. These appear by default right before the first section. Floating these to either side is easy to do using HTML markup, but to simplify matters further Wikibookians can use these templates to automatically generate the necessary code.

The "compact" templates work on pages that have sections with single, upper-case characters.

Wikitext markup Renders as
{{CompactTOC8}}

{{CompactTOC8|center=yes}}
{{CompactTOC8|side=yes}}
{{CompactTOC8|top=yes}}
{{CompactTOC8|num=yes}}
{{CompactTOC8|center=yes|side=yes|top=yes|num=yes}}

Contents
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

Contents
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
Contents:
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
Contents
Top   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
Contents
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
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
{{CompactTOC}} (≆ {{CompactTOC8|side=yes|num=yes|top=yes}})
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
{{TOC right}}
{{Tocbox|width=200px|align=left|Other pages|
[[Editing Wikitext/Pictures/The Quick Course|The Quick Course]]<br /> [[Editing Wikitext/Pictures/Tiled Images|Tiled Images]]<br /> [[Editing Wikitext/Pictures/Images in Containers|Images in Containers]]
}}
Other pages
The Quick Course
Tiled Images
Images in Containers

Linear navigation

Look in the Navigational templates category for a more extensive list.

While wikibooks are not made of paper, many are read in a linear fashion similar to traditionally printed and bound books. For this reason and many others, it's important to provide some form of page navigation mechanism in your wikibooks that functions the same way flipping a page in a printed book does. Sometimes wikibook editors create their own custom navigation templates, but the ones featured below provide a good assortment of the extra features that motivate people to create those custom templates and have demonstrated reliability in doing so, making them an excellent place to start when looking to choose a page navigation style.

Wikitext markup Renders as
{{Simple Page Navigation | book = Wikibooks:Templates | book_disp = Templates | current = Navigation | prev = Wikibooks:Templates/Deletion | prev_disp = Deletion | next = Wikibooks:Templates/User pages | next_disp = User pages
}}
 
Deletion
Templates  
User pages
Navigation
{{Navigate | Book = Wikibooks:Templates | Curr = Navigation | Prev = Deletion | Next = User pages
}}
Wikibooks:Templates
Deletion Navigation User pages
{{{Navigation | Book = Wikibooks:Templates | previous = Templates/Deletion | next = Templates/User pages
}}
Wikibooks:Templates
 ← Deletion Navigation User pages → 
{{TopNav|prev=Deletion|next=User pages}} ← Deletion | User pages →
{{Simple chapter navigation | previous=Deletion | next=User pages
}}
{{Auto navigation|User pages|Deletion}}
Next Page: User pages | Previous Page: Deletion
Home: Wikibooks:Templates
{{Chapter navigation|Deletion|User pages}} Deletion · User pages
Deletion · Templates · User pages
This template uses CSS classes to place chapter links at the very top and bottom of any page that transcludes it, no matter its placement within that page's wikitext. At the bottom it also adds a link to the Table of Contents; look under the 'Wikibooks editor navigation' navbox at the bottom of this page to see it in action.
{{Chapter navigation with TOC | Deletion | User pages | Wikibooks:Templates/MiniTOC
}}
This template is targeted at advanced WikiBooks editors and differs from the one directly above in two key ways:
  1. It accepts a third unnamed parameter, the intended value of which is the title of a sibling page in the same book in which resides a custom, compact Table of Contents that it will transclude onto the calling page along with its forward and back links.
  2. Due to working through transclusion rather than CSS injection, placement matters. This template is designed to be invoked at the very bottom of a page, below even category inclusion links.

It is not invoked on this page and the third parameter shown at left does not exist; it's only there to demonstrate how this template could've been used on this page.

See also

  • Using Wikibooks/Shelves, Categories, and Classifications, which explains the use of {{BookCat}} and other templates that help to integrate a book with the WikiBooks content indices and directories, making it more visible to prospective readers and contributors.
  • {{Navbox}}, which can also be used to create custom navigation templates for wikibooks that provide the same functionality as the templates shown above.