Template:WikiProject Books/doc
Jump to navigation
Jump to search
| 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 82,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 source]| 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
|class =
|needs-infobox =
|needs-infobox-cover =
|listas =
|referencework=
}}
Optional parameters
[edit source]- 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. Setting an explicit value of NA is rarely necessary; for this, either leave
|class=blank or omit the parameter. - 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 source]- The parameter
|referenceworks=is recognised as an alias for|referencework=. If both|referencework=and|referenceworks=are present, there may be unexpected results.
Examples
[edit source]Example 1: Basic
[edit source]{{WikiProject Books}}
or
{{WikiProject Books|class=|needs-infobox=|needs-infobox-cover=|listas=|referencework=}}
| Books | ||||
| ||||
Example 2: Full
[edit source]{{WikiProject Books
|class = NA
|needs-infobox = yes
|needs-infobox-cover = yes
|referencework = yes
|listas = Presley, Elvis
}}
or
{{WikiProject Books|class=NA|needs-infobox=yes|needs-infobox-cover=yes|referencework=yes|listas=Presley, Elvis}}
| Books: Reference works | |||||||||||||
| |||||||||||||
See also
[edit source]- {{Reading}} – sidebar template


