Template:Navlist/Contents/doc

Usage
This template generates a table of contents for a book, derived from a navlist page; see /Doc.
 * Optional unnamed parameter specifies the name for the section heading; the default section heading is "Table of Contents".  If parameter  has value #nosection, no section heading is generated.
 * Optional named parameter specifies the navlist page; the default navlist page is Template:/Navlist .  When a parameter value is provided, the navlist page is assumed to be in mainspace unless another namespace is specified in the parameter value.
 * Optional named parameter specifies how the table of contents is presented.  The default format is a simple list.  Specifying format=block causes the contents to be presented as a two-column table, with each section heading on the left and its contents to its right.
 * Optional named parameter is ignored unless format=block .  It specifies the background color with which to shade the cells of the table; default background color is determined by the  parameter in the navlist (see here).

Examples (see note on editing):