Wikibooks:Templates/Navigation
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}} |
| ||
{{CompactTOC}} (≆ {{CompactTOC8|side=yes|num=yes|top=yes}}) | |||
{{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]] }} |
|
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 }} |
|
{{Navigate
| Book = Wikibooks:Templates
| Curr = Navigation
| Prev = Deletion
| Next = User pages }} |
|
{{{Navigation
| Book = Wikibooks:Templates
| previous = Templates/Deletion
| next = Templates/User pages }} |
|
{{TopNav|prev=Deletion|next=User pages}} | ← Deletion | User pages → |
{{Simple chapter navigation
| previous=Deletion
| next=User pages }} |
|
{{Auto navigation|User pages|Deletion}} | |
{{Chapter navigation|Deletion|User pages}} | 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. | This template uses
{{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:
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.