shortcuts: {{WPB}} {{WPBS}} {{Bannershell}} {{WikiProject Shell}}

Template:WikiProject banner shell/doc

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search

Usage

This template combines talk page banners into a nested shell and/or displays a general quality assessment for an article. It was designed for WikiProject banners and will only work reliably with such templates. WikiProject banner shell may be added to an article talk page with no wikiproject banners, but with a |class= quality assessment value, in which case it will populate a general category like Category:C-Class articles

WikiProject assessment bots may change shell templates per this usage guideline when the bot is editing the talk page for other reasons. If local consensus on a talk page is to not follow this guideline, please specify |collapsed=yes or |collapsed=no explicitly to override the bots.

Syntax

The |1= parameter is not optional and must be included at the end of the first line.

Basic

{{WikiProject banner shell|class=|1=
{{FirstProjectBanner}}
{{SecondProjectBanner}}
{{ThirdProjectBanner}}
…
}}

Full

{{WikiProject banner shell|class=|blp=|blpo=|activepol=|collapsed=|1=
{{FirstProjectBanner}}
{{SecondProjectBanner}}
{{ThirdProjectBanner}}
…
|header=
}}

Optional parameters

  1. Adding a quality rating after |class= will cause the banner shell to display the quality rating for the article (e.g. Start, C, GA etc.) based on Wikipedia:Content assessment. This value will be available to the project banner templates, which may use it in forming categories like Category:Start-class Ruritania articles.
  2. Adding |blp=yes or its alias |living=yes will display the {{BLP}} banner above the shell, detailing Wikipedia's official policies regarding biographies of living persons. This must be added for articles about living people.
  3. Adding |blpo=yes will display the {{BLP others}} banner above the shell. This should be used for articles where {{BLP}} does not apply directly to the subject, but which nevertheless have content that directly relates to other living persons. It is mutually-exclusive with |blp=yes.
  4. Adding |activepol=yes will display the {{Active politician}} banner above the shell.
  5. Adding |collapsed=yes will cause the outer table to be collapsed, hiding even the project names. Explicitly adding |collapsed=no (the default) will cause the outer table to not be collapsed, showing the summary of the banners, and prevent any bots that might have logic that would cause them to assign a value of yes from doing so.
  6. Adding |header=Custom header text allows for the replacement of the default table title text ("This {{PAGETYPE}} is of interest to the following WikiProjects:") with whatever is supplied as its value.

Limitations and bugs

  • Pages where expansion depth is exceeded issue: This "shell template" adds to the "expansion depth" of the page. In certain circumstances, it can cause the page to exceed the limit. If this happens, find out which enclosed template is already "near the limit" and notify the WikiProject responsible for that template that there is an issue. Include details, as some WikiProject templates only get "close to the limit" with uncommon combinations of parameters. (Example report) –davidwr (talk/contribs) 16:24, 8 January 2021 (UTC)

TemplateData

TemplateData used by TemplateWizard, VisualEditor and other tools

This is the TemplateData documentation for this template used by VisualEditor and other tools.

WikiProject banner shell

Aggregates and compresses the display of multiple, vertically-stacked WikiProject banner templates on pages in odd-numbered namespaces into a more information dense layout
WikiProject banners1
Place the individual project banners here, one per line
Living subjectliving
blp
Triggers the display of more verbose warnings about the extra editing constraints on these articles when set to: ['yes']
Default
no
Example
yes
Deceased subject with living familyblpo
This triggers a warning to appear above the shell reminding editors that extra restraints remain in effect for details about living family of deceased persons when set to: ['yes']
Default
no
Example
yes
Active politicianactivepol
Causes the active politician notice to appear above the shell, with warnings about extra editing restrictions, when set to: ['yes']
Default
no
Example
yes
Collapse project bannerscollapsed
Load template in its collapsed state, hiding even the name, class and importance values for the individual WikiProjects contained within; set to one of: ['yes', 'no']
Default
no
Example
yes
Custom header textheader
Replaces the default preamble ("This {{PAGETYPE}} is of interest to the following WikiProjects:") with the value given here

See also

Other shell templates