User:Robbiemuffin/Templates/Contents Block/doc



— Content Block

Purpose
To separate substance from style in Book Contents. The intended use is (for example) for the book to handle loosely organized (or even unorganized) pages with category tags, where the category is transcluded through a list formatter into the contents, TOC, and index.

Specification






Usage
 

Example
Prep

First, you need to make a page that lists your contents. In this example we use: User:Robbiemuffin/Templates/Contents Block/doc/SampleContents, but normally you would have some form of transclusion and category automatically generate the list.

Code

note that the content tag is actually space- and case-sensitive!

Output