Template:User book/doc

This userbox declares that the user contributes to a certain wikibook, and adds the user to a category associated with that book. The appearance of the userbox for a given book can be customized by that book.

Usage
The template takes one required, unnamed parameter, which is the title of the book. For example,

would produce

The template adds the user to, where  is the title specified. In the example above, the user would be added to /Users. Calling the template with parameter  set to any non-null value will suppress this category, as in

Customization per book
By default, the userbox looks like this:

To specify a different appearance for a book called, create a template called , containing markup

where  are named parameters that will be passed to template Userbox. The parameters supported are (as of this writing) all those documented for Userbox except

,, and.

If  is specified, it overrides the default name for the category; and if   is specified with a non-null value, it prevents the category from ever being used (so that it then doesn't matter whether or not the call to User book uses  ).

For example, the userbox is customized for Wikijunior:Languages by means of Wikijunior:Languages/User book, so that

produces

A list of all these customizing templates is provided by Category:User book templates.

Internals
If the book has no customizing user template, this template calls User book/Custom. If the book does have a customizing user template, this template calls that customizing template. Either way, the first unnamed parameter to the called template is the book name (the first unnamed parameter to this template); and the second unnamed parameter to the called template is the value of the  parameter to this template. User book/Custom suppresses categorization in response to either the second unnamed parameter or to parameter.