Template:WikiProject Books/doc

From Infogalactic: the planetary knowledge core
(Redirected from Template:WPBooks/doc)
Jump to: navigation, search

Usage

WikiProject Books  
WikiProject icon This template is within the scope of WikiProject Books. To participate in the project, please visit its page, where you can join the project and discuss matters related to book articles. To use this banner, please refer to the documentation. For guidelines on this template's usage, see its documentation.
 ???  This template does not require a rating on the project's quality scale.
 

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 Script error: No such module "Template link general". 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=}}
WikiProject Books  
WikiProject icon This template is within the scope of WikiProject Books. To participate in the project, please visit its page, where you can join the project and discuss matters related to book articles. To use this banner, please refer to the documentation. For guidelines on this template's usage, see its documentation.
 ???  This template does not require a rating on the project's quality scale.
 

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}}
WikiProject Books (Rated NA-class)
WikiProject icon This template is within the scope of WikiProject Books.
 NA  Quality: rating not applicable

See also