Template:WikiProject Psychology/doc
This is a documentation subpage for Template:WikiProject Psychology. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 20,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]Please note: This template categorizes pages using assessment grades and importance through built-in transclusion. An article's assessment is generated from the class and importance parameters in the {{WikiProject Psychology |class= |importance=}} banner on its talk page. This template should be transcluded 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.
Full code
{{WikiProject Psychology
|class=
|importance= <!-- or |imp= -->
|attention=
|needs-infobox=
|category=
|listas=
}}
Quality
[edit]An article's quality assessment is generated from the class parameter in the {{WikiProject Banner Shell}}. Articles that have the {{WikiProject Psychology}} project banner on their talk page will be added to the appropriate categories by quality.
The following values may be used for the class parameter to describe the quality of the article (see Wikipedia:Content assessment for assessment criteria):
FA (for featured articles only; adds articles to Category:FA-Class psychology articles) | FA | |
A (adds articles to Category:A-Class psychology articles) | A | |
GA (for good articles only; adds articles to Category:GA-Class psychology articles) | GA | |
B (adds articles to Category:B-Class psychology articles) | B | |
C (adds articles to Category:C-Class psychology articles) | C | |
Start (adds articles to Category:Start-Class psychology articles) | Start | |
Stub (adds articles to Category:Stub-Class psychology articles) | Stub | |
FL (for featured lists only; adds articles to Category:FL-Class psychology articles) | FL | |
List (adds articles to Category:List-Class psychology articles) | List |
For non-standard grades and non-mainspace content, the following values may be used for the class parameter:
Category (for categories; adds pages to Category:Category-Class psychology articles) | Category | |
Disambig (for disambiguation pages; adds pages to Category:Disambig-Class psychology articles) | Disambig | |
Draft (for drafts; adds pages to Category:Draft-Class psychology articles) | Draft | |
File (for files and timed text; adds pages to Category:File-Class psychology articles) | File | |
Portal (for portal pages; adds pages to Category:Portal-Class psychology articles) | Portal | |
Project (for project pages; adds pages to Category:Project-Class psychology articles) | Project | |
Template (for templates and modules; adds pages to Category:Template-Class psychology articles) | Template | |
NA (for any other pages where assessment is unnecessary; adds pages to Category:NA-Class psychology articles) | NA | |
??? (articles for which a valid class has not yet been provided are listed in Category:Unassessed psychology articles) | ??? |
Importance
[edit]An article's importance assessment is generated from the importance parameter in the {{WikiProject Psychology}} project banner on its talk page:
The following values may be used for the importance parameter to describe the relative importance of the article within the project (see Wikipedia:Version 1.0 Editorial Team/Priority of topic for assessment criteria):
Top (adds articles to Category:Top-importance psychology articles) | Top | |
High (adds articles to Category:High-importance psychology articles) | High | |
Mid (adds articles to Category:Mid-importance psychology articles) | Mid | |
Low (adds articles to Category:Low-importance psychology articles) | Low | |
NA (adds articles to Category:NA-importance psychology articles) | NA | |
??? (articles for which a valid importance rating has not yet been provided are listed in Category:Unknown-importance psychology articles) | ??? |
Optional parameters
[edit]- attention – set
|attention=yes
if the article needs immediate attention from experienced editors. Use only if another parameter does not cover the need for attention; this should be used sparingly. It is strongly encouraged to also add a section to the talk page explaining what needs attention.- This parameter populates Category:Psychology articles needing attention.
- 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. - importance – valid values are: top, high, mid, low, na (case-insensitive). See the project's importance scale for details. Setting an explicit value of NA is rarely necessary; for this, either leave
|importance=
blank or omit the parameter.|imp=
can be used in place of|importance=
- 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 Sigmund Freud, use
|listas=Freud, Sigmund
so that the talk page will show up in the F's and not the S'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. - 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:Psychology articles needing infoboxes.
- 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.
TemplateData
[edit]The banner for WikiProject Psychology
Parameter | Description | Type | Status | |
---|---|---|---|---|
class | class | The article's quality rating.
| String | required |
importance | importance imp | How important the article is for WikiProject Psychology.
| String | suggested |
category | category | no description | Unknown | optional |
listas | listas | no description | Unknown | optional |
attention | attention | Whether the article requires immediate attention from WikiProject Psychology. | Unknown | optional |
needs-infobox | needs-infobox | Whether the article requires an infobox | Unknown | optional |