Jump to content

Wikipedia:WikiProject Wikipedia-Books/Book-Class setup

From Wikipedia, the free encyclopedia

This is a small guide on how to set up your project's banner to support the book-class. This guide assumes that your project's banner is based on {{WPBannerMeta}} and the {{class mask}}. If your banner is not based on this, leave a message on the talk page of your banner and at Template talk:WPBannerMeta for help on how to convert your banner.

How to modify your class mask

[edit]

If your project's actual banner [not a redirected version] is located at, for example Template:WPAstronomy, then go at Template:WPAstronomy/class (class with a lowercase c). This is your class mask.

This page should look a bit like

{{class mask|{{{class|}}}
 |topic=Astronomy
 |FQS=yes
 |redirect=yes
}}

Two simple steps:

  1. Add <noinclude>/templatepage</noinclude> to the template call. This allows the subpage to provide appropriate documentation.
  2. Add |book=yes at the bottom

For example:

{{class mask<noinclude>/templatepage</noinclude> | {{{class|}}}
 |topic=Astronomy
 |FQS=yes
 |redirect=yes
 |book=yes
}}

and the book-class will be supported. You will still need to create the relevant categories, such as Category:Book-Class Astronomy articles.