Template:WikiProject Books: Difference between revisions
Appearance
Content deleted Content added
Stemonitis (talk | contribs) remove {{DEFAULTSORT}} - should not be used within templates |
Stemonitis (talk | contribs) m Reverted edits by Stemonitis (talk) to last version by Malyctenar |
||
Line 20: | Line 20: | ||
--> article has not yet '''[[Wikipedia:WikiProject Books/Assessment|received a rating]]''' on the Project's [[Wikipedia:WikiProject Books/Assessment#Quality scale|quality scale]]. Please rate the article and then leave a '''short''' summary at [{{fullurl:{{FULLPAGENAME}}/Comments|action=edit}} in the comments] to explain the ratings and/or to identify the strengths and weaknesses of the article. |
--> article has not yet '''[[Wikipedia:WikiProject Books/Assessment|received a rating]]''' on the Project's [[Wikipedia:WikiProject Books/Assessment#Quality scale|quality scale]]. Please rate the article and then leave a '''short''' summary at [{{fullurl:{{FULLPAGENAME}}/Comments|action=edit}} in the comments] to explain the ratings and/or to identify the strengths and weaknesses of the article. |
||
}} |
}} |
||
|}<noinclude>{{esoteric}} |
|}{{DEFAULTSORT:{{{sortkey|{{PAGENAME}}}}}}}<noinclude>{{esoteric}} |
||
== Usage == |
== Usage == |
||
Line 28: | Line 28: | ||
[[Category:Templates using ParserFunctions]] |
[[Category:Templates using ParserFunctions]] |
||
</noinclude><includeonly> |
</noinclude><includeonly> |
||
[[Category:WikiProject Books articles |
[[Category:WikiProject Books articles]] |
||
{{#ifeq:{{{needs-infobox|}}}|yes| |
{{#ifeq:{{{needs-infobox|}}}|yes| |
||
[[Category:Book articles needing infoboxes |
[[Category:Book articles needing infoboxes]] |
||
}}<!-- |
}}<!-- |
||
-->{{#switch:{{{class}}} |
-->{{#switch:{{{class}}} |
||
|FA=[[Category:FA-Class Book articles |
|FA=[[Category:FA-Class Book articles]] |
||
|A=[[Category:A-Class Book articles |
|A=[[Category:A-Class Book articles]] |
||
|GA=[[Category:GA-Class Book articles |
|GA=[[Category:GA-Class Book articles]] |
||
|B|b=[[Category:B-Class Book articles |
|B|b=[[Category:B-Class Book articles]] |
||
|Start|start=[[Category:Start-Class Book articles |
|Start|start=[[Category:Start-Class Book articles]] |
||
|Stub|stub=[[Category:Stub-Class Book articles |
|Stub|stub=[[Category:Stub-Class Book articles]] |
||
|Dab|dab=[[Category:Disambig-Class Book articles |
|Dab|dab=[[Category:Disambig-Class Book articles]] |
||
|Template=[[Category:Template-Class Book articles |
|Template=[[Category:Template-Class Book articles]] |
||
|Cat=[[Category:Category-Class Book articles |
|Cat=[[Category:Category-Class Book articles]] |
||
|#default=[[Category:Unassessed Book articles |
|#default=[[Category:Unassessed Book articles]] |
||
}}</includeonly> |
}}</includeonly> |
Revision as of 11:05, 7 August 2007
This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Usage
This template is used on approximately 69,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
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 =
}}
Optional parameters
- 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=yes
if 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 without infoboxes.
- needs-infobox-cover – set
|needs-infobox-cover=yes
to requested that a picture or pictures be included in this article to improve its quality.- This parameter populates Category:Wikipedia requested photographs of publications.
- 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.
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=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|class=|needs-infobox=|needs-infobox-cover=|listas=}}
Example 2: Full
{{WikiProject Books
|class = NA
|needs-infobox = yes
|needs-infobox-cover = yes
|listas = Presley, Elvis
}}
or
{{WikiProject Books|class=NA|needs-infobox=yes|needs-infobox-cover=yes|listas=Presley, Elvis}}
See also
- {{Reading}}