Template:Which book/doc

This template tells which book a chapter belongs to.
 * Description

Chapter number
 * Syntax


 * Parameters
 * Chapter number/1= the number of the chapter - free.
 * ch= the chapter number can also be provided with this parameter - optional.
 * style= if set to qref, outputs "Book 6" if the book exists and nothing otherwise. Used in qref.
 * Book 0 has the chapters named 1 to 6
 * Book 1 has the chapters named 101 to 121
 * Book 2 has the chapters named 201 to 221


 * Samples
 * gives:


 * gives:
 * Book


 * gives:


 * gives:


 * gives:

To update the template change the last part: ( > X)		+ ( > Y)	        + }} Add "Y" to the sum after "X" with the same code, change the value of "Y" with the value of "Z" and then update "Z". So the result will be: ( > X)		+ ( > Y)		+ ( > Z)	        + }} Where Z' is the new Z.
 * Updating the template

The template will show as default the latest book, while for the chapter not yet in book format the message: "", or nothing if style is set to qref.
 * Note