Template:WikiProject Books/doc
(Redirected from Template:WPBooks/doc)
| This is a documentation subpage for Template:WikiProject Books. It may contain usage information, categories and other content that is not part of the original template page. |
| This template is used on approximately 85,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
edit| Books | ||||
| ||||
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
|needs-infobox =
|needs-infobox-cover =
|referencework=
}}
Optional parameters
edit- class – This WikiProject follows Project-Independent Quality Assessment. Please add valid
|class=values to {{WikiProject banner shell}} instead of this WikiProject. Valid class values can be found at Wikipedia:Content assessment. - needs-infobox – set
|needs-infobox=yesif the article needs an infobox. Remember that infoboxes are not suitable for all articles, and can overwhelm short articles.- This parameter populates Category:Book articles needing infoboxes.
- needs-infobox-cover – set
|needs-infobox-cover=yesto requested that a picture or pictures be included in this article to improve its quality.- This parameter populates Category:Wikipedia requested photographs of publications.
- referencework – set
|referencework =yesif the article is supported by the Reference works task force.- This parameter populates Category:Reference works task force articles, and the relevant subcategory of Category:by quality based upon the
|class=parameter.
- This parameter populates Category:Reference works task force articles, and the relevant subcategory of Category:by quality based upon the
- 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, Johannesso 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.
If the article is using {{WikiProject banner shell}} then it is preferable to add|listas=to that template instead of a project banner template. Putting the parameter on more than one template is not required. - category – set
|category=noif, and only if, a banner is being used for demonstration or testing purposes, to prevent unnecessary or undesirable categorization. Otherwise, omit this parameter.
Aliases
edit- The parameter
|referenceworks=is recognised as an alias for|referencework=. If both|referencework=and|referenceworks=are present, there may be unexpected results.
Examples
editExample 1: Basic
edit{{WikiProject Books}}
or
{{WikiProject Books|needs-infobox=|needs-infobox-cover=|referencework=}}
| Books | ||||
| ||||
Example 2: Full
edit{{WikiProject Books
|needs-infobox = yes
|needs-infobox-cover = yes
|referencework = yes
}}
or
{{WikiProject Books|needs-infobox=yes|needs-infobox-cover=yes|referencework=yes}}
| Books: Reference works | |||||||||||||
| |||||||||||||
See also
edit- {{Reading}} – sidebar template


