Template:WikiProject Books/doc

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Usage[edit]

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[edit]

  • 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 {{WikiProjectBannerShell}} or {{WikiProjectBanners}}.
  • 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.
  • needs-infobox-cover – set |needs-infobox-cover=yes to requested that a picture or pictures be included in this article to improve its quality.
  • 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[edit]

{{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[edit]

{{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[edit]