Template:Tocbox/doc

This template produces a table of contents box, for navigation between pages within a book. Has the same color and font format as the Table of Contents (TOC). As a result it matches it well and can be used for other links. Use  tags for hard returns within the content. An example of its use and the result are shown below.

This box was made to place adjacent to the page Table of Contents, in a table cell, to hold links to other pages in the book. The colors are taken from class="toccolors" :

.toccolours { border: 1px solid #aaa; background-color: #f9f9f9; padding: 5px; font-size: 95%;}

A top-margin was added to give vertical separation.

Parameters

 * Heading:  parameter 1;  the top heading of the list (default: centered, bold, TOC size)
 * Content:  parameter 2;  the content, eg; a list of links (default: left, normal, TOC size)

Options

 * align:    horizontal position on the page or container; left,right, or center; (default left)
 * width:    the width of the box (default: 150px)