Usage
Please note: This template should be transcluded ({{WikiProject Books}}) and not substituted (subst) because it employs conditional code. Transclusion also allows easy updating of all the Project's talk pages without having to edit hundreds of pages.
{{WikiProject Books
|small =
|class =
|needs-infobox =
|needs-infobox-cover =
|listas =
}}
Optional parameters
- small – set
|small=yes
to display a small version of the template aligned along the right side of the page (as opposed to at the top). This parameter does not work as expected if the banner template is enclosed in {{WikiProject banner shell}}
or any of its redirects.
- class – valid values are: fa, a, ga, b, c, start, stub, fl, list, category, disambig, draft, file, portal, project, template, na (case-insensitive). See the project's quality scale for details.
- needs-infobox – set
|needs-infobox=yes
if the article needs an infobox. Remember that infoboxes are not suitable for all articles, and can overwhelm short articles.
Template:WPBannerDoc/note
- listas – This parameter, which is the equivalent of the DEFAULTSORT sortkey that should be placed on all biographical articles, is a sortkey for the article talk page (e.g. for Johannes Gutenberg, use
|listas=Gutenberg, Johannes
so that the talk page will show up in the G's and not the J's of the various assessment and administrative categories). This is important because it is one source used by those who set DEFAULTSORT on the article; consider also setting the DEFAULTSORT for the article when setting this parameter. For more information about this, please see Wikipedia:Categorization of people#Ordering names in a category.
It is not required if another WikiProject template on the same page has its own |listas=
set, since it not only affects categories used by the banner in which it is set, but it also affects the sortkey of all other banners and templates.
- category – set
|category=no
if, and only if, a banner is being used for demonstration or testing purposes, to prevent unnecessary or undesirable categorization. Otherwise, omit this parameter.
Example 1: Basic
{{WikiProject Books}}
or
{{WikiProject Books|small=|class=|needs-infobox=|needs-infobox-cover=|listas=}}
Example 2: Full
{{WikiProject Books
|small = yes
|class = NA
|needs-infobox = yes
|needs-infobox-cover = yes
|listas = Presley, Elvis
}}
or
{{WikiProject Books|small=yes|class=NA|needs-infobox=yes|needs-infobox-cover=yes|listas=Presley, Elvis}}
See also